wok-stable annotate krb5/receipt @ rev 10943

asterisk: store ilbc sources in src cache (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 29 18:23:58 2011 +0200 (2011-08-29)
parents d1768332cee0
children b7319995b37e
rev   line source
pascal@1335 1 # SliTaz package receipt.
pascal@1335 2
pascal@1335 3 PACKAGE="krb5"
rcx@5993 4 VERSION="1.8.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@5736 11 WGET_URL="${WEB_SITE}dist/$PACKAGE/${VERSION%.*}/$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 {
pankso@9736 18 srcdir=$PACKAGE-$VERSION
pankso@9736 19 [ -d $src/src ] || tar xzf $src/$srcdir.tar.gz
pankso@9736 20 # This is for cookutils. If more than one file was extracted it create
pankso@9736 21 # $PACKAGE-$VERSION to move files in it. Krb5 is the only package like
pankso@9736 22 # that so we do the trick here.
pankso@9736 23 if [ -d "$srcdir" -a -x /usr/bin/cook ]; then
pankso@9736 24 mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir .
pankso@9736 25 fi
pascal@1335 26 cd $src/src
pankso@9736 27 ./configure --localstatedir=/var &&
pankso@9736 28 make -j 4 && make install
pascal@1335 29 }
pascal@1335 30
pascal@1335 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1335 32 genpkg_rules()
pascal@1335 33 {
pascal@1335 34 mkdir -p $fs/usr $fs/etc
pascal@1335 35 cp -a $_pkg/usr/share/examples/krb5 $fs/etc
pascal@1335 36 cp -a $_pkg/usr/bin $fs/usr
pascal@1335 37 cp -a $_pkg/usr/sbin $fs/usr
pascal@1335 38 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@9700 39 cat $stuff/*.files-list | while read file; do
pankso@9736 40 rm -rf ${fs}$file
pascal@1335 41 done
pascal@1335 42 }
pascal@1335 43
pascal@1335 44 # Pre and post install commands for Tazpkg.
pascal@1335 45 post_install()
pascal@1335 46 {
pascal@1335 47 cat <<EOF
pascal@1335 48 ----
pascal@1335 49 To start $PACKAGE server you can run :
pascal@1335 50
pascal@1335 51 /etc/init.d/$PACKAGE start
pascal@1335 52
pascal@1335 53 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1335 54 ----
pascal@1335 55 EOF
pascal@1335 56 }