wok-6.x annotate krb5/receipt @ rev 12776

Remove cross linux headers
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 13 12:20:38 2012 +0200 (2012-05-13)
parents b7319995b37e
children b22851d31b7e
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 .
gokhlayeh@11578 25 else
gokhlayeh@11578 26 mv $srcdir/* .
pankso@9736 27 fi
pascal@1335 28 cd $src/src
gokhlayeh@11573 29 ./configure --localstatedir=/var $CONFIGURE_ARGS &&
gokhlayeh@11573 30 make $MAKEFLAGS && make install
pascal@1335 31 }
pascal@1335 32
pascal@1335 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1335 34 genpkg_rules()
pascal@1335 35 {
pascal@1335 36 mkdir -p $fs/usr $fs/etc
pascal@1335 37 cp -a $_pkg/usr/share/examples/krb5 $fs/etc
pascal@1335 38 cp -a $_pkg/usr/bin $fs/usr
pascal@1335 39 cp -a $_pkg/usr/sbin $fs/usr
pascal@1335 40 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@9700 41 cat $stuff/*.files-list | while read file; do
pankso@9736 42 rm -rf ${fs}$file
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 cat <<EOF
pascal@1335 50 ----
pascal@1335 51 To start $PACKAGE server you can run :
pascal@1335 52
pascal@1335 53 /etc/init.d/$PACKAGE start
pascal@1335 54
pascal@1335 55 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1335 56 ----
pascal@1335 57 EOF
pascal@1335 58 }