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