wok-stable view krb5/receipt @ rev 1718

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