wok annotate krb5/receipt @ rev 21093

updated kerberos5 packages (1.10.3 -> 1.17)
author Hans-G?nter Theisgen
date Sat Mar 16 16:04:43 2019 +0100 (22 months ago)
parents 77be6b57303b
children 5e70242061ce
rev   line source
pascal@1335 1 # SliTaz package receipt.
pascal@1335 2
pascal@1335 3 PACKAGE="krb5"
Hans-G?nter@21093 4 VERSION="1.17"
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"
Hans-G?nter@21093 9 WEB_SITE="https://web.mit.edu/kerberos/"
Hans-G?nter@21093 10
Hans-G?nter@21093 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21093 12 WGET_URL="${WEB_SITE}dist/$PACKAGE/$VERSION/$TARBALL"
Hans-G?nter@21093 13
pascal@1335 14
pascal@15068 15 DEPENDS="libkrb5"
Hans-G?nter@21093 16 BUILD_DEPENDS="bison openssl-dev perl"
Hans-G?nter@21093 17 CONFIG_FILES="/etc/krb5"
pascal@15068 18
pascal@1335 19 # Rules to configure and make the package.
pascal@1335 20 compile_rules()
pascal@1335 21 {
Hans-G?nter@21093 22 # srcdir=$PACKAGE-$VERSION
Hans-G?nter@21093 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.
Hans-G?nter@21093 27 # if [ -d "$srcdir" -a -x /usr/bin/cook ]; then
Hans-G?nter@21093 28 # mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir .
Hans-G?nter@21093 29 # else
Hans-G?nter@21093 30 # mv $srcdir/* .
Hans-G?nter@21093 31 # fi
Hans-G?nter@21093 32
pascal@1335 33 cd $src/src
slaxemulator@12993 34
slaxemulator@12993 35 # FS#25384
Hans-G?nter@21093 36 # sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
Hans-G?nter@21093 37 patch --input=$stuff/krb5-1.17-ac_check_krb5.m4.patch \
Hans-G?nter@21093 38 util/ac_check_krb5.m4
slaxemulator@12993 39
Hans-G?nter@21093 40 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
Hans-G?nter@21093 41 CXXFLAGS="$CFLAGS"
Hans-G?nter@21093 42
Hans-G?nter@21093 43 ./configure \
Hans-G?nter@21093 44 --localstatedir=/var \
Hans-G?nter@21093 45 $CONFIGURE_ARGS &&
Hans-G?nter@21093 46 make $MAKEFLAGS -j 1 &&
Hans-G?nter@21093 47 make install
pascal@1335 48 }
pascal@1335 49
pascal@1335 50 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1335 51 genpkg_rules()
pascal@1335 52 {
pascal@1335 53 mkdir -p $fs/usr $fs/etc
Hans-G?nter@21093 54
Hans-G?nter@21093 55 cp -a $install/usr/share/examples/krb5 $fs/etc
Hans-G?nter@21093 56 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21093 57 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21093 58 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21093 59
slaxemulator@9700 60 cat $stuff/*.files-list | while read file; do
pankso@9736 61 rm -rf ${fs}$file
pascal@1335 62 done
pascal@1335 63 }
pascal@1335 64
pascal@1335 65 # Pre and post install commands for Tazpkg.
pascal@1335 66 post_install()
pascal@1335 67 {
al@18964 68 [ -z "$quiet" ] && cat <<EOF
pascal@1335 69 ----
al@18964 70 To start $PACKAGE server you can run:
pascal@1335 71
pascal@1335 72 /etc/init.d/$PACKAGE start
pascal@1335 73
pascal@1335 74 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1335 75 ----
pascal@1335 76 EOF
pascal@1335 77 }