wok-next annotate krb5/receipt @ rev 20364
Up palemoon (27.6.1)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Nov 24 05:32:16 2017 +0100 (2017-11-24) |
parents | daa754d4b004 |
children | 0e7893ac206d |
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 |
pascal@1335 | 18 # Rules to configure and make the package. |
pascal@1335 | 19 compile_rules() |
pascal@1335 | 20 { |
al@19767 | 21 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer" |
al@19767 | 22 CXXFLAGS="$CFLAGS" |
slaxemulator@12993 | 23 |
al@19767 | 24 cd src && |
slaxemulator@12993 | 25 |
al@19767 | 26 sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \ |
al@19767 | 27 -e "s@-lpython2.5]@&,\n AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \ |
al@19767 | 28 -i configure.in && |
al@19767 | 29 |
al@19767 | 30 sed -e 's@\^u}@^u cols 300}@' \ |
al@19767 | 31 -i tests/dejagnu/config/default.exp && |
al@19767 | 32 |
al@19767 | 33 sed -e '/eq 0/{N;s/12 //}' \ |
al@19767 | 34 -i plugins/kdb/db2/libdb2/test/run.test && |
al@19767 | 35 |
al@19767 | 36 autoconf && |
al@19767 | 37 ./configure \ |
al@19767 | 38 --sysconfdir=/etc \ |
al@19767 | 39 --localstatedir=/var/lib \ |
al@19767 | 40 --with-system-et=no \ |
al@19767 | 41 --with-system-ss=no \ |
al@19767 | 42 --with-system-verto=no \ |
al@19767 | 43 --enable-dns-for-realm \ |
al@19767 | 44 $CONFIGURE_ARGS && |
al@19767 | 45 make $MAKEFLAGS && |
al@19767 | 46 make install && |
al@19767 | 47 |
al@19767 | 48 for f in gssapi_krb5 gssrpc k5crypto kadm5clnt kadm5srv \ |
al@19767 | 49 kdb5 kdb_ldap krad krb5 krb5support verto; do |
al@19767 | 50 find $install/usr/lib -type f -name "lib$f*.so*" -exec chmod -v 755 '{}' \; |
al@19767 | 51 done && |
al@19767 | 52 |
al@19767 | 53 mkdir -p $install/lib && |
al@19767 | 54 mv -v $install/usr/lib/libkrb5.so.3* $install/lib && |
al@19767 | 55 mv -v $install/usr/lib/libk5crypto.so.3* $install/lib && |
al@19767 | 56 mv -v $install/usr/lib/libkrb5support.so.0* $install/lib && |
al@19767 | 57 |
al@19767 | 58 ln -v -sf ../../lib/libkrb5.so.3.3 $install/usr/lib/libkrb5.so && |
al@19767 | 59 ln -v -sf ../../lib/libk5crypto.so.3.1 $install/usr/lib/libk5crypto.so && |
al@19767 | 60 ln -v -sf ../../lib/libkrb5support.so.0.1 $install/usr/lib/libkrb5support.so && |
al@19767 | 61 |
al@19767 | 62 mkdir -p $install/bin && |
al@19767 | 63 mv -v $install/usr/bin/ksu $install/bin && |
al@19767 | 64 chmod -v 755 $install/bin/ksu && |
al@19767 | 65 |
al@19767 | 66 chmod -v 755 $install/usr/lib/libcom_err.so.3.0 && |
al@19767 | 67 find $install/usr/lib/krb5/plugins -name '*.so' -exec chmod 755 '{}' \; && |
al@19767 | 68 |
al@19767 | 69 mkdir -p $install/etc && |
al@19767 | 70 touch $install/etc/krb5.conf && |
al@19767 | 71 |
al@19767 | 72 install -v -dm755 $install/usr/share/doc/krb5-$VERSION && |
al@19767 | 73 cp -vfr ../doc/* $install/usr/share/doc/krb5-$VERSION |
pascal@1335 | 74 } |
pascal@1335 | 75 |
pascal@1335 | 76 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1335 | 77 genpkg_rules() |
pascal@1335 | 78 { |
al@19767 | 79 case $PACKAGE in |
al@19767 | 80 krb5-plugins) |
al@19767 | 81 copy plugins/ |
al@19767 | 82 CAT="security|plugins" |
al@19767 | 83 DEPENDS="krb5 libcomerr3 libkrb5support libcrypto libkrb5 libssl" |
al@19767 | 84 ;; |
al@19767 | 85 krb5-clients) |
al@19767 | 86 copy gss-client sclient sim_client uuclient |
al@19767 | 87 CAT="security|misc clients" |
al@19767 | 88 DEPENDS="libcomerr3 libkrb5support libkrb5" |
al@19767 | 89 ;; |
al@19767 | 90 krb5-user) |
al@19767 | 91 copy k5srvutil kadmin kdestroy kinit klist kpasswd ksu kvno |
al@19767 | 92 CAT="security|basic programs to authenticate" |
al@19767 | 93 DEPENDS="krb5 libcomerr3 libkrb5support libkrb5" |
al@19767 | 94 ;; |
al@19767 | 95 libcomerr3) |
al@19767 | 96 copy libcom_err.so* |
al@19767 | 97 CAT="security|the libcomerr v3 library" |
al@19767 | 98 PROVIDE="libcomerr" |
al@19767 | 99 DEPENDS="libkrb5support" |
al@19767 | 100 ;; |
al@19767 | 101 libkrb5) |
al@19767 | 102 copy libgssrpc.so* libk5crypto.so* libkrb5.so* libgssapi_krb5.so* \ |
al@19767 | 103 libkdb5.so* |
al@19767 | 104 CAT="security|libraries" |
al@19767 | 105 DEPENDS="libcomerr3 libkrb5support" |
al@19767 | 106 ;; |
al@19767 | 107 libkrb5support) |
al@19767 | 108 copy libkrb5support.so* |
al@19767 | 109 CAT="security|support libraries" |
al@19767 | 110 DEPENDS=" " |
al@19767 | 111 ;; |
al@19767 | 112 krb5) |
al@19767 | 113 copy @std |
al@19767 | 114 remove_already_packed |
al@19767 | 115 DEPENDS="libcomerr3 libkrb5support libkrb5" |
al@19767 | 116 CONFIG_FILES="/etc/krb5.conf" |
al@19767 | 117 ;; |
al@19767 | 118 krb5-dev) |
al@19767 | 119 copy @dev |
al@19767 | 120 ;; |
al@19767 | 121 esac |
pascal@1335 | 122 } |
pascal@1335 | 123 |
pascal@1335 | 124 # Pre and post install commands for Tazpkg. |
al@19767 | 125 post_install_krb5() { |
al@19767 | 126 [ -n "$quiet" ] || cat <<EOF |
pascal@1335 | 127 ---- |
al@19767 | 128 To start krb5 server you can run: |
pascal@1335 | 129 |
al@19767 | 130 /etc/init.d/krb5 start |
pascal@1335 | 131 |
al@19767 | 132 Or add krb5 to RUN_DAEMONS in /etc/rcS.conf |
pascal@1335 | 133 ---- |
pascal@1335 | 134 EOF |
pascal@1335 | 135 } |