wok-6.x annotate krb5/receipt @ rev 24554
updated flac and flac-dev again (1.3.3 -> 1.3.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 11:25:23 2022 +0100 (2022-02-25) |
parents | 5e70242061ce |
children |
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@24436 | 19 # What is the latest version available today? |
pascal@24436 | 20 current_version() |
pascal@24436 | 21 { |
pascal@24436 | 22 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24436 | 23 sed '/Current release/!d;/.*krb5-[0-9]/!d;s|.*>krb5-||;s|<.*||' |
pascal@24436 | 24 } |
pascal@24436 | 25 |
pascal@1335 | 26 # Rules to configure and make the package. |
pascal@1335 | 27 compile_rules() |
pascal@1335 | 28 { |
pascal@1335 | 29 cd $src/src |
slaxemulator@12993 | 30 |
slaxemulator@12993 | 31 # FS#25384 |
Hans-G?nter@21093 | 32 # sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4 |
Hans-G?nter@22990 | 33 |
Hans-G?nter@22990 | 34 # patch --input=$stuff/krb5-1.17-ac_check_krb5.m4.patch \ |
Hans-G?nter@22990 | 35 # util/ac_check_krb5.m4 |
Hans-G?nter@22990 | 36 # in 1.18 replaced by: |
Hans-G?nter@22990 | 37 # --with-kerberos5=/usr |
slaxemulator@12993 | 38 |
Hans-G?nter@21093 | 39 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer" |
Hans-G?nter@21093 | 40 CXXFLAGS="$CFLAGS" |
Hans-G?nter@21093 | 41 |
Hans-G?nter@21093 | 42 ./configure \ |
Hans-G?nter@22990 | 43 --with-kerberos5=/usr \ |
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 { |
Hans-G?nter@22990 | 53 mkdir -p $fs/usr |
Hans-G?nter@22990 | 54 mkdir -p $fs/etc |
Hans-G?nter@21093 | 55 |
Hans-G?nter@21093 | 56 cp -a $install/usr/share/examples/krb5 $fs/etc |
Hans-G?nter@21093 | 57 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21093 | 58 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21093 | 59 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21093 | 60 |
Hans-G?nter@22990 | 61 cat $stuff/*.files-list | while read file |
Hans-G?nter@22990 | 62 do |
pankso@9736 | 63 rm -rf ${fs}$file |
Hans-G?nter@22990 | 64 done |
pascal@1335 | 65 } |
pascal@1335 | 66 |
pascal@1335 | 67 # Pre and post install commands for Tazpkg. |
pascal@1335 | 68 post_install() |
pascal@1335 | 69 { |
al@18964 | 70 [ -z "$quiet" ] && cat <<EOF |
pascal@1335 | 71 ---- |
al@18964 | 72 To start $PACKAGE server you can run: |
pascal@1335 | 73 |
pascal@1335 | 74 /etc/init.d/$PACKAGE start |
pascal@1335 | 75 |
pascal@1335 | 76 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1335 | 77 ---- |
pascal@1335 | 78 EOF |
pascal@1335 | 79 } |