wok annotate krb5/receipt @ rev 24083

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 11:40:16 2021 +0000 (2021-07-10)
parents ff8dc62daa05
children 2a0479881723
rev   line source
pascal@1335 1 # SliTaz package receipt.
pascal@1335 2
pascal@1335 3 PACKAGE="krb5"
Hans-G?nter@22990 4 VERSION="1.18"
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@15068 14 DEPENDS="libkrb5"
Hans-G?nter@21093 15 BUILD_DEPENDS="bison openssl-dev perl"
Hans-G?nter@22990 16
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 {
pascal@1335 22 cd $src/src
slaxemulator@12993 23
slaxemulator@12993 24 # FS#25384
Hans-G?nter@21093 25 # sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
Hans-G?nter@22990 26
Hans-G?nter@22990 27 # patch --input=$stuff/krb5-1.17-ac_check_krb5.m4.patch \
Hans-G?nter@22990 28 # util/ac_check_krb5.m4
Hans-G?nter@22990 29 # in 1.18 replaced by:
Hans-G?nter@22990 30 # --with-kerberos5=/usr
slaxemulator@12993 31
Hans-G?nter@21093 32 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
Hans-G?nter@21093 33 CXXFLAGS="$CFLAGS"
Hans-G?nter@21093 34
Hans-G?nter@21093 35 ./configure \
Hans-G?nter@22990 36 --with-kerberos5=/usr \
Hans-G?nter@21093 37 --localstatedir=/var \
Hans-G?nter@21093 38 $CONFIGURE_ARGS &&
Hans-G?nter@21093 39 make $MAKEFLAGS -j 1 &&
Hans-G?nter@21093 40 make install
pascal@1335 41 }
pascal@1335 42
pascal@1335 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1335 44 genpkg_rules()
pascal@1335 45 {
Hans-G?nter@22990 46 mkdir -p $fs/usr
Hans-G?nter@22990 47 mkdir -p $fs/etc
Hans-G?nter@21093 48
Hans-G?nter@21093 49 cp -a $install/usr/share/examples/krb5 $fs/etc
Hans-G?nter@21093 50 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21093 51 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21093 52 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21093 53
Hans-G?nter@22990 54 cat $stuff/*.files-list | while read file
Hans-G?nter@22990 55 do
pankso@9736 56 rm -rf ${fs}$file
Hans-G?nter@22990 57 done
pascal@1335 58 }
pascal@1335 59
pascal@1335 60 # Pre and post install commands for Tazpkg.
pascal@1335 61 post_install()
pascal@1335 62 {
al@18964 63 [ -z "$quiet" ] && cat <<EOF
pascal@1335 64 ----
al@18964 65 To start $PACKAGE server you can run:
pascal@1335 66
pascal@1335 67 /etc/init.d/$PACKAGE start
pascal@1335 68
pascal@1335 69 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1335 70 ----
pascal@1335 71 EOF
pascal@1335 72 }