wok-next annotate krb5/receipt @ rev 21016
Small updates; mdocml -> mandoc
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 15 16:44:45 2018 +0300 (2018-10-15) |
parents | 757d032c55c7 |
children | d5aab818505e |
rev | line source |
---|---|
al@19767 | 1 # SliTaz package receipt v2. |
pascal@1335 | 2 |
pascal@1335 | 3 PACKAGE="krb5" |
al@19678 | 4 VERSION="1.15.1" |
pascal@1335 | 5 CATEGORY="security" |
al@19767 | 6 SHORT_DESC="Network authentication protocol" |
pascal@1335 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15068 | 8 LICENSE="MIT" |
al@19767 | 9 WEB_SITE="http://web.mit.edu/Kerberos/" |
al@19767 | 10 |
al@19678 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19767 | 12 WGET_URL="http://web.mit.edu/kerberos/dist/krb5/${VERSION%.*}/$TARBALL" |
pascal@1335 | 13 |
al@19767 | 14 BUILD_DEPENDS="automake perl gettext openssl-dev" |
al@19767 | 15 SPLIT="krb5-plugins krb5-clients krb5-user libcomerr3 libkrb5 libkrb5support \ |
al@19767 | 16 krb5 krb5-dev" |
pascal@15068 | 17 |
al@20443 | 18 compile_rules() { |
al@20535 | 19 cd $src/src |
al@20443 | 20 CFLAGS="${CFLAGS/-Os/-O2}" |
al@19767 | 21 CXXFLAGS="$CFLAGS" |
slaxemulator@12993 | 22 |
al@19767 | 23 sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \ |
al@19767 | 24 -e "s@-lpython2.5]@&,\n AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \ |
al@20534 | 25 -i configure.in |
al@19767 | 26 sed -e 's@\^u}@^u cols 300}@' \ |
al@20534 | 27 -i tests/dejagnu/config/default.exp |
al@19767 | 28 sed -e '/eq 0/{N;s/12 //}' \ |
al@20534 | 29 -i plugins/kdb/db2/libdb2/test/run.test |
al@19767 | 30 |
al@19767 | 31 autoconf && |
al@19767 | 32 ./configure \ |
al@19767 | 33 --localstatedir=/var/lib \ |
al@19767 | 34 --with-system-et=no \ |
al@19767 | 35 --with-system-ss=no \ |
al@19767 | 36 --with-system-verto=no \ |
al@19767 | 37 --enable-dns-for-realm \ |
al@19767 | 38 $CONFIGURE_ARGS && |
al@19767 | 39 make $MAKEFLAGS && |
al@20443 | 40 make install || return 1 |
al@19767 | 41 |
al@19767 | 42 for f in gssapi_krb5 gssrpc k5crypto kadm5clnt kadm5srv \ |
al@19767 | 43 kdb5 kdb_ldap krad krb5 krb5support verto; do |
al@19767 | 44 find $install/usr/lib -type f -name "lib$f*.so*" -exec chmod -v 755 '{}' \; |
al@20443 | 45 done |
al@19767 | 46 |
al@20443 | 47 mkdir -p $install/lib |
al@20443 | 48 mv -v $install/usr/lib/libkrb5.so.3* $install/lib |
al@20443 | 49 mv -v $install/usr/lib/libk5crypto.so.3* $install/lib |
al@20443 | 50 mv -v $install/usr/lib/libkrb5support.so.0* $install/lib |
al@19767 | 51 |
al@20443 | 52 ln -v -sf ../../lib/libkrb5.so.3.3 $install/usr/lib/libkrb5.so |
al@20443 | 53 ln -v -sf ../../lib/libk5crypto.so.3.1 $install/usr/lib/libk5crypto.so |
al@20443 | 54 ln -v -sf ../../lib/libkrb5support.so.0.1 $install/usr/lib/libkrb5support.so |
al@19767 | 55 |
al@20443 | 56 mkdir -p $install/bin |
al@20443 | 57 mv -v $install/usr/bin/ksu $install/bin |
al@20443 | 58 chmod -v 755 $install/bin/ksu |
al@19767 | 59 |
al@20443 | 60 chmod -v 755 $install/usr/lib/libcom_err.so.3.0 |
al@20443 | 61 find $install/usr/lib/krb5/plugins -name '*.so' -exec chmod 755 '{}' \; |
al@19767 | 62 |
al@20443 | 63 mkdir -p $install/etc |
al@20443 | 64 touch $install/etc/krb5.conf |
al@19767 | 65 |
al@20443 | 66 install -v -dm755 $install/usr/share/doc/krb5-$VERSION |
al@19767 | 67 cp -vfr ../doc/* $install/usr/share/doc/krb5-$VERSION |
pascal@1335 | 68 } |
pascal@1335 | 69 |
al@20443 | 70 genpkg_rules() { |
al@19767 | 71 case $PACKAGE in |
al@19767 | 72 krb5-plugins) |
al@19767 | 73 copy plugins/ |
al@19767 | 74 CAT="security|plugins" |
al@20453 | 75 DEPENDS="krb5 libcomerr3 libkrb5support openssl libkrb5" |
al@19767 | 76 ;; |
al@19767 | 77 krb5-clients) |
al@19767 | 78 copy gss-client sclient sim_client uuclient |
al@19767 | 79 CAT="security|misc clients" |
al@19767 | 80 DEPENDS="libcomerr3 libkrb5support libkrb5" |
al@19767 | 81 ;; |
al@19767 | 82 krb5-user) |
al@19767 | 83 copy k5srvutil kadmin kdestroy kinit klist kpasswd ksu kvno |
al@19767 | 84 CAT="security|basic programs to authenticate" |
al@19767 | 85 DEPENDS="krb5 libcomerr3 libkrb5support libkrb5" |
al@19767 | 86 ;; |
al@19767 | 87 libcomerr3) |
al@19767 | 88 copy libcom_err.so* |
al@19767 | 89 CAT="security|the libcomerr v3 library" |
al@19767 | 90 PROVIDE="libcomerr" |
al@19767 | 91 DEPENDS="libkrb5support" |
al@19767 | 92 ;; |
al@19767 | 93 libkrb5) |
al@19767 | 94 copy libgssrpc.so* libk5crypto.so* libkrb5.so* libgssapi_krb5.so* \ |
al@19767 | 95 libkdb5.so* |
al@19767 | 96 CAT="security|libraries" |
al@19767 | 97 DEPENDS="libcomerr3 libkrb5support" |
al@19767 | 98 ;; |
al@19767 | 99 libkrb5support) |
al@19767 | 100 copy libkrb5support.so* |
al@19767 | 101 CAT="security|support libraries" |
al@19767 | 102 DEPENDS=" " |
al@19767 | 103 ;; |
al@19767 | 104 krb5) |
al@20513 | 105 copy @std @rm |
al@19767 | 106 DEPENDS="libcomerr3 libkrb5support libkrb5" |
al@19767 | 107 CONFIG_FILES="/etc/krb5.conf" |
al@19767 | 108 ;; |
al@19767 | 109 krb5-dev) |
al@19767 | 110 copy @dev |
al@19767 | 111 ;; |
al@19767 | 112 esac |
pascal@1335 | 113 } |
pascal@1335 | 114 |
al@19767 | 115 post_install_krb5() { |
al@19767 | 116 [ -n "$quiet" ] || cat <<EOF |
pascal@1335 | 117 |
al@20443 | 118 .---------------------------------------------. |
al@20443 | 119 | To start krb5 server you can run: | |
al@20443 | 120 | /etc/init.d/krb5 start | |
al@20443 | 121 | | |
al@20443 | 122 | Or add krb5 to RUN_DAEMONS in /etc/rcS.conf | |
al@20443 | 123 '---------------------------------------------' |
pascal@1335 | 124 EOF |
pascal@1335 | 125 } |