wok-next view 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
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 BUILD_DEPENDS="automake perl gettext openssl-dev"
15 SPLIT="krb5-plugins krb5-clients krb5-user libcomerr3 libkrb5 libkrb5support \
16 krb5 krb5-dev"
18 compile_rules() {
19 cd $src/src
20 CFLAGS="${CFLAGS/-Os/-O2}"
21 CXXFLAGS="$CFLAGS"
23 sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \
24 -e "s@-lpython2.5]@&,\n AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \
25 -i configure.in
26 sed -e 's@\^u}@^u cols 300}@' \
27 -i tests/dejagnu/config/default.exp
28 sed -e '/eq 0/{N;s/12 //}' \
29 -i plugins/kdb/db2/libdb2/test/run.test
31 autoconf &&
32 ./configure \
33 --localstatedir=/var/lib \
34 --with-system-et=no \
35 --with-system-ss=no \
36 --with-system-verto=no \
37 --enable-dns-for-realm \
38 $CONFIGURE_ARGS &&
39 make $MAKEFLAGS &&
40 make install || return 1
42 for f in gssapi_krb5 gssrpc k5crypto kadm5clnt kadm5srv \
43 kdb5 kdb_ldap krad krb5 krb5support verto; do
44 find $install/usr/lib -type f -name "lib$f*.so*" -exec chmod -v 755 '{}' \;
45 done
47 mkdir -p $install/lib
48 mv -v $install/usr/lib/libkrb5.so.3* $install/lib
49 mv -v $install/usr/lib/libk5crypto.so.3* $install/lib
50 mv -v $install/usr/lib/libkrb5support.so.0* $install/lib
52 ln -v -sf ../../lib/libkrb5.so.3.3 $install/usr/lib/libkrb5.so
53 ln -v -sf ../../lib/libk5crypto.so.3.1 $install/usr/lib/libk5crypto.so
54 ln -v -sf ../../lib/libkrb5support.so.0.1 $install/usr/lib/libkrb5support.so
56 mkdir -p $install/bin
57 mv -v $install/usr/bin/ksu $install/bin
58 chmod -v 755 $install/bin/ksu
60 chmod -v 755 $install/usr/lib/libcom_err.so.3.0
61 find $install/usr/lib/krb5/plugins -name '*.so' -exec chmod 755 '{}' \;
63 mkdir -p $install/etc
64 touch $install/etc/krb5.conf
66 install -v -dm755 $install/usr/share/doc/krb5-$VERSION
67 cp -vfr ../doc/* $install/usr/share/doc/krb5-$VERSION
68 }
70 genpkg_rules() {
71 case $PACKAGE in
72 krb5-plugins)
73 copy plugins/
74 CAT="security|plugins"
75 DEPENDS="krb5 libcomerr3 libkrb5support openssl libkrb5"
76 ;;
77 krb5-clients)
78 copy gss-client sclient sim_client uuclient
79 CAT="security|misc clients"
80 DEPENDS="libcomerr3 libkrb5support libkrb5"
81 ;;
82 krb5-user)
83 copy k5srvutil kadmin kdestroy kinit klist kpasswd ksu kvno
84 CAT="security|basic programs to authenticate"
85 DEPENDS="krb5 libcomerr3 libkrb5support libkrb5"
86 ;;
87 libcomerr3)
88 copy libcom_err.so*
89 CAT="security|the libcomerr v3 library"
90 PROVIDE="libcomerr"
91 DEPENDS="libkrb5support"
92 ;;
93 libkrb5)
94 copy libgssrpc.so* libk5crypto.so* libkrb5.so* libgssapi_krb5.so* \
95 libkdb5.so*
96 CAT="security|libraries"
97 DEPENDS="libcomerr3 libkrb5support"
98 ;;
99 libkrb5support)
100 copy libkrb5support.so*
101 CAT="security|support libraries"
102 DEPENDS=" "
103 ;;
104 krb5)
105 copy @std @rm
106 DEPENDS="libcomerr3 libkrb5support libkrb5"
107 CONFIG_FILES="/etc/krb5.conf"
108 ;;
109 krb5-dev)
110 copy @dev
111 ;;
112 esac
113 }
115 post_install_krb5() {
116 [ -n "$quiet" ] || cat <<EOF
118 .---------------------------------------------.
119 | To start krb5 server you can run: |
120 | /etc/init.d/krb5 start |
121 | |
122 | Or add krb5 to RUN_DAEMONS in /etc/rcS.conf |
123 '---------------------------------------------'
124 EOF
125 }