wok-next diff 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 diff
     1.1 --- a/krb5/receipt	Sat Mar 25 17:39:12 2017 +0200
     1.2 +++ b/krb5/receipt	Fri Nov 24 05:32:16 2017 +0100
     1.3 @@ -1,66 +1,135 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="krb5"
     1.8  VERSION="1.15.1"
     1.9  CATEGORY="security"
    1.10 -SHORT_DESC="Network authentication protocol with strong authentication."
    1.11 +SHORT_DESC="Network authentication protocol"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="MIT"
    1.14 +WEB_SITE="http://web.mit.edu/Kerberos/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://web.mit.edu/Kerberos/"
    1.18 -WGET_URL="${WEB_SITE}dist/$PACKAGE/${VERSION:0:4}/$TARBALL"
    1.19 -CONFIG_FILES="/etc/krb5"
    1.20 -CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
    1.21 -CXXFLAGS="$CFLAGS"
    1.22 +WGET_URL="http://web.mit.edu/kerberos/dist/krb5/${VERSION%.*}/$TARBALL"
    1.23  
    1.24 -DEPENDS="libkrb5"
    1.25 -BUILD_DEPENDS="perl bison gettext openssl-dev"
    1.26 +BUILD_DEPENDS="automake perl gettext openssl-dev"
    1.27 +SPLIT="krb5-plugins krb5-clients krb5-user libcomerr3 libkrb5 libkrb5support \
    1.28 +krb5 krb5-dev"
    1.29  
    1.30  # Rules to configure and make the package.
    1.31  compile_rules()
    1.32  {
    1.33 -#	srcdir=$PACKAGE-$VERSION
    1.34 -#	[ -d $src/src ] || tar xzf $src/$srcdir.tar.gz 
    1.35 -#	# This is for cookutils. If more than one file was extracted it create
    1.36 -#	# $PACKAGE-$VERSION to move files in it. Krb5 is the only package like
    1.37 -#	# that so we do the trick here.
    1.38 -#	if [ -d "$srcdir" -a -x /usr/bin/cook ]; then
    1.39 -#		mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir .
    1.40 -#	else
    1.41 -#		mv $srcdir/* .
    1.42 -#	fi
    1.43 -	cd $src/src
    1.44 +	CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
    1.45 +	CXXFLAGS="$CFLAGS"
    1.46  
    1.47 -	# FS#25384
    1.48 -	sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
    1.49 +	cd src &&
    1.50  
    1.51 -	./configure --localstatedir=/var $CONFIGURE_ARGS &&
    1.52 -	make $MAKEFLAGS && make install
    1.53 +	sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \
    1.54 +		-e "s@-lpython2.5]@&,\n  AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \
    1.55 +		-i configure.in &&
    1.56 +
    1.57 +	sed -e 's@\^u}@^u cols 300}@' \
    1.58 +		-i tests/dejagnu/config/default.exp &&
    1.59 +
    1.60 +	sed -e '/eq 0/{N;s/12 //}' \
    1.61 +		-i plugins/kdb/db2/libdb2/test/run.test &&
    1.62 +
    1.63 +	autoconf &&
    1.64 +	./configure \
    1.65 +		--sysconfdir=/etc \
    1.66 +		--localstatedir=/var/lib \
    1.67 +		--with-system-et=no \
    1.68 +		--with-system-ss=no \
    1.69 +		--with-system-verto=no \
    1.70 +		--enable-dns-for-realm \
    1.71 +		$CONFIGURE_ARGS &&
    1.72 +	make $MAKEFLAGS &&
    1.73 +	make install &&
    1.74 +
    1.75 +	for f in gssapi_krb5 gssrpc k5crypto kadm5clnt kadm5srv \
    1.76 +		kdb5 kdb_ldap krad krb5 krb5support verto; do
    1.77 +		find $install/usr/lib -type f -name "lib$f*.so*" -exec chmod -v 755 '{}' \;
    1.78 +	done &&
    1.79 +
    1.80 +	mkdir -p $install/lib &&
    1.81 +	mv -v $install/usr/lib/libkrb5.so.3*        $install/lib &&
    1.82 +	mv -v $install/usr/lib/libk5crypto.so.3*    $install/lib &&
    1.83 +	mv -v $install/usr/lib/libkrb5support.so.0* $install/lib &&
    1.84 +
    1.85 +	ln -v -sf ../../lib/libkrb5.so.3.3        $install/usr/lib/libkrb5.so &&
    1.86 +	ln -v -sf ../../lib/libk5crypto.so.3.1    $install/usr/lib/libk5crypto.so &&
    1.87 +	ln -v -sf ../../lib/libkrb5support.so.0.1 $install/usr/lib/libkrb5support.so &&
    1.88 +
    1.89 +	mkdir -p $install/bin &&
    1.90 +	mv -v $install/usr/bin/ksu $install/bin &&
    1.91 +	chmod -v 755 $install/bin/ksu &&
    1.92 +
    1.93 +	chmod -v 755 $install/usr/lib/libcom_err.so.3.0 &&
    1.94 +	find $install/usr/lib/krb5/plugins -name '*.so' -exec chmod 755 '{}' \; &&
    1.95 +
    1.96 +	mkdir -p $install/etc &&
    1.97 +	touch    $install/etc/krb5.conf &&
    1.98 +
    1.99 +	install -v -dm755 $install/usr/share/doc/krb5-$VERSION &&
   1.100 +	cp -vfr ../doc/*  $install/usr/share/doc/krb5-$VERSION
   1.101  }
   1.102  
   1.103  # Rules to gen a SliTaz package suitable for Tazpkg.
   1.104  genpkg_rules()
   1.105  {
   1.106 -	mkdir -p $fs/usr $fs/etc
   1.107 -	cp -a $install/usr/share/examples/krb5 $fs/etc
   1.108 -	cp -a $install/usr/bin $fs/usr
   1.109 -	cp -a $install/usr/sbin $fs/usr
   1.110 -	cp -a $install/usr/lib $fs/usr
   1.111 -	cat $stuff/*.files-list | while read file; do
   1.112 -		rm -rf ${fs}$file
   1.113 -	done
   1.114 +	case $PACKAGE in
   1.115 +		krb5-plugins)
   1.116 +			copy plugins/
   1.117 +			CAT="security|plugins"
   1.118 +			DEPENDS="krb5 libcomerr3 libkrb5support libcrypto libkrb5 libssl"
   1.119 +			;;
   1.120 +		krb5-clients)
   1.121 +			copy gss-client sclient sim_client uuclient
   1.122 +			CAT="security|misc clients"
   1.123 +			DEPENDS="libcomerr3 libkrb5support libkrb5"
   1.124 +			;;
   1.125 +		krb5-user)
   1.126 +			copy k5srvutil kadmin kdestroy kinit klist kpasswd ksu kvno
   1.127 +			CAT="security|basic programs to authenticate"
   1.128 +			DEPENDS="krb5 libcomerr3 libkrb5support libkrb5"
   1.129 +			;;
   1.130 +		libcomerr3)
   1.131 +			copy libcom_err.so*
   1.132 +			CAT="security|the libcomerr v3 library"
   1.133 +			PROVIDE="libcomerr"
   1.134 +			DEPENDS="libkrb5support"
   1.135 +			;;
   1.136 +		libkrb5)
   1.137 +			copy libgssrpc.so* libk5crypto.so* libkrb5.so* libgssapi_krb5.so* \
   1.138 +			libkdb5.so*
   1.139 +			CAT="security|libraries"
   1.140 +			DEPENDS="libcomerr3 libkrb5support"
   1.141 +			;;
   1.142 +		libkrb5support)
   1.143 +			copy libkrb5support.so*
   1.144 +			CAT="security|support libraries"
   1.145 +			DEPENDS=" "
   1.146 +			;;
   1.147 +		krb5)
   1.148 +			copy @std
   1.149 +			remove_already_packed
   1.150 +			DEPENDS="libcomerr3 libkrb5support libkrb5"
   1.151 +			CONFIG_FILES="/etc/krb5.conf"
   1.152 +			;;
   1.153 +		krb5-dev)
   1.154 +			copy @dev
   1.155 +			;;
   1.156 +	esac
   1.157  }
   1.158  
   1.159  # Pre and post install commands for Tazpkg.
   1.160 -post_install()
   1.161 -{
   1.162 -	[ -z "$quiet" ] && cat <<EOF
   1.163 +post_install_krb5() {
   1.164 +	[ -n "$quiet" ] || cat <<EOF
   1.165  ----
   1.166 -To start $PACKAGE server you can run:
   1.167 +To start krb5 server you can run:
   1.168  
   1.169 -    /etc/init.d/$PACKAGE start
   1.170 +    /etc/init.d/krb5 start
   1.171  
   1.172 -Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
   1.173 +Or add krb5 to RUN_DAEMONS in /etc/rcS.conf
   1.174  ----
   1.175  EOF
   1.176  }