wok-next view krb5/receipt @ rev 20453

Undo openssl split
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 16:28:07 2018 +0200 (2018-02-28)
parents 0e7893ac206d
children d43bf7aae921
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 CFLAGS="${CFLAGS/-Os/-O2}"
20 CXXFLAGS="$CFLAGS"
22 cd src
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 &&
27 sed -e 's@\^u}@^u cols 300}@' \
28 -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 --sysconfdir=/etc \
36 --localstatedir=/var/lib \
37 --with-system-et=no \
38 --with-system-ss=no \
39 --with-system-verto=no \
40 --enable-dns-for-realm \
41 $CONFIGURE_ARGS &&
42 make $MAKEFLAGS &&
43 make install || return 1
45 for f in gssapi_krb5 gssrpc k5crypto kadm5clnt kadm5srv \
46 kdb5 kdb_ldap krad krb5 krb5support verto; do
47 find $install/usr/lib -type f -name "lib$f*.so*" -exec chmod -v 755 '{}' \;
48 done
50 mkdir -p $install/lib
51 mv -v $install/usr/lib/libkrb5.so.3* $install/lib
52 mv -v $install/usr/lib/libk5crypto.so.3* $install/lib
53 mv -v $install/usr/lib/libkrb5support.so.0* $install/lib
55 ln -v -sf ../../lib/libkrb5.so.3.3 $install/usr/lib/libkrb5.so
56 ln -v -sf ../../lib/libk5crypto.so.3.1 $install/usr/lib/libk5crypto.so
57 ln -v -sf ../../lib/libkrb5support.so.0.1 $install/usr/lib/libkrb5support.so
59 mkdir -p $install/bin
60 mv -v $install/usr/bin/ksu $install/bin
61 chmod -v 755 $install/bin/ksu
63 chmod -v 755 $install/usr/lib/libcom_err.so.3.0
64 find $install/usr/lib/krb5/plugins -name '*.so' -exec chmod 755 '{}' \;
66 mkdir -p $install/etc
67 touch $install/etc/krb5.conf
69 install -v -dm755 $install/usr/share/doc/krb5-$VERSION
70 cp -vfr ../doc/* $install/usr/share/doc/krb5-$VERSION
71 }
73 genpkg_rules() {
74 case $PACKAGE in
75 krb5-plugins)
76 copy plugins/
77 CAT="security|plugins"
78 DEPENDS="krb5 libcomerr3 libkrb5support openssl libkrb5"
79 ;;
80 krb5-clients)
81 copy gss-client sclient sim_client uuclient
82 CAT="security|misc clients"
83 DEPENDS="libcomerr3 libkrb5support libkrb5"
84 ;;
85 krb5-user)
86 copy k5srvutil kadmin kdestroy kinit klist kpasswd ksu kvno
87 CAT="security|basic programs to authenticate"
88 DEPENDS="krb5 libcomerr3 libkrb5support libkrb5"
89 ;;
90 libcomerr3)
91 copy libcom_err.so*
92 CAT="security|the libcomerr v3 library"
93 PROVIDE="libcomerr"
94 DEPENDS="libkrb5support"
95 ;;
96 libkrb5)
97 copy libgssrpc.so* libk5crypto.so* libkrb5.so* libgssapi_krb5.so* \
98 libkdb5.so*
99 CAT="security|libraries"
100 DEPENDS="libcomerr3 libkrb5support"
101 ;;
102 libkrb5support)
103 copy libkrb5support.so*
104 CAT="security|support libraries"
105 DEPENDS=" "
106 ;;
107 krb5)
108 copy @std
109 remove_already_packed
110 DEPENDS="libcomerr3 libkrb5support libkrb5"
111 CONFIG_FILES="/etc/krb5.conf"
112 ;;
113 krb5-dev)
114 copy @dev
115 ;;
116 esac
117 }
119 post_install_krb5() {
120 [ -n "$quiet" ] || cat <<EOF
122 .---------------------------------------------.
123 | To start krb5 server you can run: |
124 | /etc/init.d/krb5 start |
125 | |
126 | Or add krb5 to RUN_DAEMONS in /etc/rcS.conf |
127 '---------------------------------------------'
128 EOF
129 }