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