wok annotate krb5/receipt @ rev 19514

kamailio: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 22 18:08:00 2016 +0100 (2016-11-22)
parents 205d192370e5
children ff8dc62daa05
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@15068 8 LICENSE="MIT"
pascal@1335 9 TARBALL="$PACKAGE-$VERSION-signed.tar"
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 CONFIG_FILES="/etc/krb5"
slaxemulator@12993 13 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
slaxemulator@12993 14 CXXFLAGS="$CFLAGS"
pascal@1335 15
pascal@15068 16 DEPENDS="libkrb5"
pascal@15068 17 BUILD_DEPENDS="perl bison"
pascal@15068 18
pascal@1335 19 # Rules to configure and make the package.
pascal@1335 20 compile_rules()
pascal@1335 21 {
pankso@9736 22 srcdir=$PACKAGE-$VERSION
slaxemulator@12993 23 [ -d $src/src ] || tar xzf $src/$srcdir.tar.gz
pankso@9736 24 # This is for cookutils. If more than one file was extracted it create
pankso@9736 25 # $PACKAGE-$VERSION to move files in it. Krb5 is the only package like
pankso@9736 26 # that so we do the trick here.
pankso@9736 27 if [ -d "$srcdir" -a -x /usr/bin/cook ]; then
pankso@9736 28 mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir .
gokhlayeh@11578 29 else
gokhlayeh@11578 30 mv $srcdir/* .
pankso@9736 31 fi
pascal@1335 32 cd $src/src
slaxemulator@12993 33
slaxemulator@12993 34 # FS#25384
slaxemulator@12993 35 sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
slaxemulator@12993 36
gokhlayeh@11573 37 ./configure --localstatedir=/var $CONFIGURE_ARGS &&
gokhlayeh@11573 38 make $MAKEFLAGS && make install
pascal@1335 39 }
pascal@1335 40
pascal@1335 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1335 42 genpkg_rules()
pascal@1335 43 {
pascal@1335 44 mkdir -p $fs/usr $fs/etc
pascal@15068 45 cp -a $install/usr/share/examples/krb5 $fs/etc
pascal@15068 46 cp -a $install/usr/bin $fs/usr
pascal@15068 47 cp -a $install/usr/sbin $fs/usr
pascal@15068 48 cp -a $install/usr/lib $fs/usr
slaxemulator@9700 49 cat $stuff/*.files-list | while read file; do
pankso@9736 50 rm -rf ${fs}$file
pascal@1335 51 done
pascal@1335 52 }
pascal@1335 53
pascal@1335 54 # Pre and post install commands for Tazpkg.
pascal@1335 55 post_install()
pascal@1335 56 {
al@18964 57 [ -z "$quiet" ] && cat <<EOF
pascal@1335 58 ----
al@18964 59 To start $PACKAGE server you can run:
pascal@1335 60
pascal@1335 61 /etc/init.d/$PACKAGE start
pascal@1335 62
pascal@1335 63 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1335 64 ----
pascal@1335 65 EOF
pascal@1335 66 }