wok-current diff krb5/receipt @ rev 1417

xorg-libX11-dev: break dependancy loop between xorg-dev xorg-libX11-dev
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 25 09:20:05 2008 +0000 (2008-09-25)
parents
children 04d6abcf6d15
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/krb5/receipt	Thu Sep 25 09:20:05 2008 +0000
     1.3 @@ -0,0 +1,66 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="krb5"
     1.7 +VERSION="1.6.3"
     1.8 +CATEGORY="security"
     1.9 +SHORT_DESC="Network authentication protocol with strong authentication."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION-signed.tar"
    1.12 +WEB_SITE="http://web.mit.edu/Kerberos/"
    1.13 +WGET_URL="${WEB_SITE}dist/$PACKAGE/1.6/$TARBALL"
    1.14 +DEPENDS="libkrb5"
    1.15 +CONFIG_FILES="/etc/krb5"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	[ -d $src ] || tar xzf $PACKAGE-$VERSION.tar.gz
    1.21 +	cd $src/src
    1.22 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.23 +	--sysconfdir=/etc --localstatedir=/var \
    1.24 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.25 +	make
    1.26 +	make DESTDIR=$PWD/../_pkg install
    1.27 +	cp ../../stuff/*.files-list ..
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr $fs/etc
    1.34 +	cp -a $_pkg/usr/share/examples/krb5 $fs/etc
    1.35 +	cp -a $_pkg/usr/bin $fs/usr
    1.36 +	cp -a $_pkg/usr/sbin $fs/usr
    1.37 +	cp -a $_pkg/usr/lib $fs/usr
    1.38 +	cat $src/*.files-list | while read file; do
    1.39 +		rm -rf $fs$file
    1.40 +	done
    1.41 +	# Package all krb5 pkgs
    1.42 +	for i in $(cd $WOK; grep -l '^WANTED="krb5"$' */receipt)
    1.43 +	do
    1.44 +    		tazwok cook ${i%/receipt}
    1.45 +	done
    1.46 +}
    1.47 +
    1.48 +# Pre and post install commands for Tazpkg.
    1.49 +post_install()
    1.50 +{
    1.51 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    1.52 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.53 +$(cd $1/ ; find etc/krb5 -type f)
    1.54 +EOT
    1.55 +	cat <<EOF
    1.56 +----
    1.57 +To start $PACKAGE server you can run :
    1.58 +
    1.59 +    /etc/init.d/$PACKAGE start
    1.60 +
    1.61 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
    1.62 +----
    1.63 +EOF
    1.64 +}
    1.65 +
    1.66 +repack_cleanup()
    1.67 +{
    1.68 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.69 +}