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

Revision 23068, 2.0 KB checked in by ghudson, 16 years ago (diff)
Add a debathenify script for alpine. Currently only works for hardy and lenny.
  • Property svn:executable set to *
RevLine 
[23068]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  # alpine versions prior to 1.10 have broken krb5 detection.
14  # Versions prior to 1.0 can be patched in a similar fashion (though
15  # not with exactly the same patch) but we're not currently
16  # integrating those.
17  case $version in
18  1.0*)  patch -p1 < $dir/alpine-1.00-krb5-configure.patch ;;
19  esac
20
21  # Integrate krb4 support.
22  tar -C imap/src -xzf "$dir/kerberos4-patches.tar.Z"
23  patch -p1 < $dir/alpine-1.00-krb4-build.patch
24  echo 'DEFAULTAUTHENTICATORS+=krb' >> imap/src/osdep/unix/Makefile
25
26  # Ensure newly created mail directories in AFS are private.
27  patch -p1 < $dir/alpine-1.00-creatdir.patch
28
29  # Integrate Hesiod support.
30  patch -p1 < $dir/alpine-1.00-hesiod.patch
31
32  # Turn on Hesiod and krb4 suppport in the build.
33  perl -0pe 's|./configure|./configure alpine_c_client_cflags="-DHESIOD -DKERBEROS" alpine_c_client_ldflags="-lhesiod" LIBS="-lhesiod -lkrb4"|m or die' -i debian/rules
34  append_description <<EOF
35 .
36 This package was rebuilt for the Debian-Athena project to add Hesiod
37 support, to add krb4 IMAP support, and to ensure that newly-created
38 mail directories in AFS are private.
39EOF
40  add_changelog 'Add Hesiod support.'
41  add_changelog 'Add krb4 IMAP support.'
42  add_changelog 'Make newly-created mail directories private in AFS.'
43  add_debathena_provides
44  munge_sections
45}
46
47# dapper has no alpine package.
48# etch has an alpine package in backports (which we're not currently
49#  set up to use).
50# feisty has a package based on 0.82.  gutsy has one based on 0.99,
51#  with a 1.0 one in backports.  Both would require additional build
52#  system work to integrate due to differences in how they handle
53#  CFLAGS for c-client.
54case $1 in
55etch-*|dapper-*)
56  echo "No alpine package for $1; skipping"
57  exit
58  ;;
59feisty-*|gutsy-*)
60  echo "alpine package too broken for $1; skipping"
61  exit
62  ;;
63esac
64
65. ../common/debathenificator.sh
Note: See TracBrowser for help on using the repository browser.