wok-next view krb5/receipt @ rev 21456

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