wok annotate krb5/receipt @ rev 13725

busybox: fix nfs mount (bug 26)
author Richard Dunbar <mojo@slitaz.org>
date Fri Dec 21 02:27:20 2012 +0000 (2012-12-21)
parents b22851d31b7e
children 205d192370e5
rev   line source
pascal@1335 1 # SliTaz package receipt.
pascal@1335 2
pascal@1335 3 PACKAGE="krb5"
slaxemulator@13266 4 VERSION="1.10.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/"
slaxemulator@12993 11 WGET_URL="${WEB_SITE}dist/$PACKAGE/${VERSION:0:4}/$TARBALL"
pascal@1335 12 DEPENDS="libkrb5"
pascal@1335 13 CONFIG_FILES="/etc/krb5"
slaxemulator@12993 14 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
slaxemulator@12993 15 CXXFLAGS="$CFLAGS"
pascal@1335 16
pascal@1335 17 # Rules to configure and make the package.
pascal@1335 18 compile_rules()
pascal@1335 19 {
pankso@9736 20 srcdir=$PACKAGE-$VERSION
slaxemulator@12993 21 [ -d $src/src ] || tar xzf $src/$srcdir.tar.gz
pankso@9736 22 # This is for cookutils. If more than one file was extracted it create
pankso@9736 23 # $PACKAGE-$VERSION to move files in it. Krb5 is the only package like
pankso@9736 24 # that so we do the trick here.
pankso@9736 25 if [ -d "$srcdir" -a -x /usr/bin/cook ]; then
pankso@9736 26 mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir .
gokhlayeh@11578 27 else
gokhlayeh@11578 28 mv $srcdir/* .
pankso@9736 29 fi
pascal@1335 30 cd $src/src
slaxemulator@12993 31
slaxemulator@12993 32 # FS#25384
slaxemulator@12993 33 sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
slaxemulator@12993 34
gokhlayeh@11573 35 ./configure --localstatedir=/var $CONFIGURE_ARGS &&
gokhlayeh@11573 36 make $MAKEFLAGS && make install
pascal@1335 37 }
pascal@1335 38
pascal@1335 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1335 40 genpkg_rules()
pascal@1335 41 {
pascal@1335 42 mkdir -p $fs/usr $fs/etc
pascal@1335 43 cp -a $_pkg/usr/share/examples/krb5 $fs/etc
pascal@1335 44 cp -a $_pkg/usr/bin $fs/usr
pascal@1335 45 cp -a $_pkg/usr/sbin $fs/usr
pascal@1335 46 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@9700 47 cat $stuff/*.files-list | while read file; do
pankso@9736 48 rm -rf ${fs}$file
pascal@1335 49 done
pascal@1335 50 }
pascal@1335 51
pascal@1335 52 # Pre and post install commands for Tazpkg.
pascal@1335 53 post_install()
pascal@1335 54 {
pascal@1335 55 cat <<EOF
pascal@1335 56 ----
pascal@1335 57 To start $PACKAGE server you can run :
pascal@1335 58
pascal@1335 59 /etc/init.d/$PACKAGE start
pascal@1335 60
pascal@1335 61 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1335 62 ----
pascal@1335 63 EOF
pascal@1335 64 }