wok annotate krb5/receipt @ rev 11573

Fix build/host configure option in recipes which was not detecting the right ones well + tiny fixes.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 02 23:06:18 2012 +0100 (2012-01-02)
parents cba14e272d6e
children 68e8b7bddb27
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
gokhlayeh@11573 27 ./configure --localstatedir=/var $CONFIGURE_ARGS &&
gokhlayeh@11573 28 make $MAKEFLAGS && 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 }