wok diff netatalk/receipt @ rev 1288

Add httpfs-fuse
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 20 17:18:51 2008 +0000 (2008-08-20)
parents
children 0ed558cc4347
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netatalk/receipt	Wed Aug 20 17:18:51 2008 +0000
     1.3 @@ -0,0 +1,63 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="netatalk"
     1.7 +VERSION="2.0.3"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="The AppleTalk Protocol Suite."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +DEPENDS="perl libdb libcrypto"
    1.12 +BUILD_DEPENDS="db-dev libcrypto-dev"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://netatalk.sourceforge.net/"
    1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16 +CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	patch -p1  < ../stuff/netatalk-2.0.3-newer-db.patch
    1.23 +	./configure --prefix=/usr --sysconfdir=/etc \
    1.24 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.25 +	make
    1.26 +	make DESTDIR=$PWD/_pkg install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr/share
    1.33 +	cp -a $_pkg/usr/bin $fs/usr
    1.34 +	cp -a $_pkg/usr/sbin $fs/usr
    1.35 +	cp -a $_pkg/usr/libexec $fs/usr
    1.36 +	cp -a $_pkg/etc $fs
    1.37 +	rm -f $fs/etc/netatalk/uams/*a
    1.38 +	# Package all netatalk pkgs
    1.39 +	for i in $(cd $WOK; ls -d netatalk-*)
    1.40 +	do
    1.41 +		tazwok genpkg $i
    1.42 +	done
    1.43 +}
    1.44 +
    1.45 +# Pre and post install commands for Tazpkg.
    1.46 +post_install()
    1.47 +{
    1.48 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    1.49 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.50 +$(ls etc/netatalk/AppleVolumes.* etc/netatalk/*.conf)
    1.51 +EOT
    1.52 +	cat <<EOF
    1.53 +----
    1.54 +To start $PACKAGE server you can run :
    1.55 +
    1.56 +    /etc/init.d/$PACKAGE start
    1.57 +
    1.58 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
    1.59 +----
    1.60 +EOF
    1.61 +}
    1.62 +
    1.63 +repack_cleanup()
    1.64 +{
    1.65 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.66 +}