wok-next annotate krb5/receipt @ rev 1760
Up: automake (1.10.2)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Nov 24 22:20:53 2008 +0100 (2008-11-24) |
parents | 23798260cf7d |
children | bd6010223726 |
rev | line source |
---|---|
pascal@1335 | 1 # SliTaz package receipt. |
pascal@1335 | 2 |
pascal@1335 | 3 PACKAGE="krb5" |
pascal@1335 | 4 VERSION="1.6.3" |
pascal@1335 | 5 CATEGORY="security" |
pascal@1335 | 6 SHORT_DESC="Network authentication protocol with strong authentication." |
pascal@1335 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1335 | 8 TARBALL="$PACKAGE-$VERSION-signed.tar" |
pascal@1447 | 9 BUILD_DEPENDS="perl bison" |
pascal@1335 | 10 WEB_SITE="http://web.mit.edu/Kerberos/" |
pascal@1335 | 11 WGET_URL="${WEB_SITE}dist/$PACKAGE/1.6/$TARBALL" |
pascal@1335 | 12 DEPENDS="libkrb5" |
pascal@1335 | 13 CONFIG_FILES="/etc/krb5" |
pascal@1335 | 14 |
pascal@1335 | 15 # Rules to configure and make the package. |
pascal@1335 | 16 compile_rules() |
pascal@1335 | 17 { |
pascal@1335 | 18 [ -d $src ] || tar xzf $PACKAGE-$VERSION.tar.gz |
pascal@1335 | 19 cd $src/src |
pascal@1335 | 20 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1335 | 21 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1447 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1447 | 23 make && |
pascal@1447 | 24 make DESTDIR=$PWD/../_pkg install && |
pascal@1335 | 25 cp ../../stuff/*.files-list .. |
pascal@1335 | 26 } |
pascal@1335 | 27 |
pascal@1335 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1335 | 29 genpkg_rules() |
pascal@1335 | 30 { |
pascal@1335 | 31 mkdir -p $fs/usr $fs/etc |
pascal@1335 | 32 cp -a $_pkg/usr/share/examples/krb5 $fs/etc |
pascal@1335 | 33 cp -a $_pkg/usr/bin $fs/usr |
pascal@1335 | 34 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1335 | 35 cp -a $_pkg/usr/lib $fs/usr |
pascal@1335 | 36 cat $src/*.files-list | while read file; do |
pascal@1335 | 37 rm -rf $fs$file |
pascal@1335 | 38 done |
pascal@1335 | 39 # Package all krb5 pkgs |
pascal@1335 | 40 for i in $(cd $WOK; grep -l '^WANTED="krb5"$' */receipt) |
pascal@1335 | 41 do |
pascal@1335 | 42 tazwok cook ${i%/receipt} |
pascal@1335 | 43 done |
pascal@1335 | 44 } |
pascal@1335 | 45 |
pascal@1335 | 46 # Pre and post install commands for Tazpkg. |
pascal@1335 | 47 post_install() |
pascal@1335 | 48 { |
pascal@1335 | 49 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ |
pascal@1335 | 50 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT |
pascal@1335 | 51 $(cd $1/ ; find etc/krb5 -type f) |
pascal@1335 | 52 EOT |
pascal@1335 | 53 cat <<EOF |
pascal@1335 | 54 ---- |
pascal@1335 | 55 To start $PACKAGE server you can run : |
pascal@1335 | 56 |
pascal@1335 | 57 /etc/init.d/$PACKAGE start |
pascal@1335 | 58 |
pascal@1335 | 59 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1335 | 60 ---- |
pascal@1335 | 61 EOF |
pascal@1335 | 62 } |
pascal@1335 | 63 |
pascal@1335 | 64 repack_cleanup() |
pascal@1335 | 65 { |
pascal@1335 | 66 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) |
pascal@1335 | 67 } |