source: trunk/debathena/third/alpine/debathenify-alpine @ 23645

Revision 23645, 1.9 KB checked in by geofft, 15 years ago (diff)
alpine: Punt our krb5 patch, because Hardy upstream has it.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2set -e
3
4name=alpine
5daversionappend=debathena1
6
7dir=$(cd "$(dirname "$0")"; pwd)
8
9hack_package () {
10  add_build_depends libhesiod-dev
11  add_build_depends libkrb5-dev
12
13  # Integrate krb4 support.
14  tar -C imap/src -xzf "$dir/kerberos4-patches.tar.Z"
15  patch -p1 < $dir/alpine-1.00-krb4-build.patch
16  echo 'DEFAULTAUTHENTICATORS+=krb' >> imap/src/osdep/unix/Makefile
17
18  # Ensure newly created mail directories in AFS are private.
19  patch -p1 < $dir/alpine-1.00-creatdir.patch
20
21  # Integrate Hesiod support.
22  patch -p1 < $dir/alpine-1.00-hesiod.patch
23
24  # Turn on Hesiod and krb4 suppport in the build.
25  configure_flags='alpine_c_client_cflags="-DHESIOD -DKERBEROS" alpine_c_client_ldflags="-lhesiod" LIBS="-lhesiod -lkrb4"'
26  if grep -Fq DEB_CONFIGURE_EXTRA_FLAGS debian/rules; then
27    echo "DEB_CONFIGURE_EXTRA_FLAGS += $configure_flags" >> debian/rules
28  else
29    perl -0pe "s|./configure|./configure $configure_flags|m or die" -i debian/rules
30  fi
31  append_description <<EOF
32 .
33 This package was rebuilt for the Debathena project to add Hesiod
34 support, to add krb4 IMAP support, and to ensure that newly-created
35 mail directories in AFS are private.
36EOF
37  add_changelog 'Add Hesiod support.'
38  add_changelog 'Add krb4 IMAP support.'
39  add_changelog 'Make newly-created mail directories private in AFS.'
40  add_debathena_provides
41  munge_sections
42}
43
44# dapper has no alpine package.
45# etch has an alpine package in backports (which we're not currently
46#  set up to use).
47# feisty has a package based on 0.82.  gutsy has one based on 0.99,
48#  with a 1.0 one in backports.  Both would require additional build
49#  system work to integrate due to differences in how they handle
50#  CFLAGS for c-client.
51case $1 in
52etch-*|dapper-*)
53  echo "No alpine package for $1; skipping"
54  exit
55  ;;
56feisty-*|gutsy-*)
57  echo "alpine package too broken for $1; skipping"
58  exit
59  ;;
60esac
61
62. ../common/debathenificator.sh
Note: See TracBrowser for help on using the repository browser.