wok diff netatalk-pam/receipt @ rev 2187

Add netatalk-pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 09 09:48:49 2009 +0000 (2009-02-09)
parents
children edc45fd54795
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netatalk-pam/receipt	Mon Feb 09 09:48:49 2009 +0000
     1.3 @@ -0,0 +1,53 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="netatalk-pam"
     1.7 +VERSION="2.0.3"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="The AppleTalk Protocol Suite using PAM."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +DEPENDS="perl libdb libcrypto"
    1.12 +BUILD_DEPENDS="db-dev libcrypto-dev"
    1.13 +SOURCE="netatalk"
    1.14 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.15 +WEB_SITE="http://netatalk.sourceforge.net/"
    1.16 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.17 +CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf"
    1.18 +PROVIDE="netatalk:pam"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src
    1.24 +	[ -f done.netatalk-2.0.3-newer-db.patch ] || \
    1.25 +		patch -p1  < ../stuff/netatalk-2.0.3-newer-db.patch
    1.26 +	touch done.netatalk-2.0.3-newer-db.patch
    1.27 +	./configure --with-pam --prefix=/usr --sysconfdir=/etc \
    1.28 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.29 +	make &&
    1.30 +	make DESTDIR=$PWD/_pkg install
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	mkdir -p $fs/usr/share
    1.37 +	cp -a $_pkg/usr/bin $fs/usr
    1.38 +	cp -a $_pkg/usr/sbin $fs/usr
    1.39 +	cp -a $_pkg/usr/libexec $fs/usr
    1.40 +	cp -a $_pkg/etc $fs
    1.41 +	rm -f $fs/etc/netatalk/uams/*a
    1.42 +}
    1.43 +
    1.44 +# Pre and post install commands for Tazpkg.
    1.45 +post_install()
    1.46 +{
    1.47 +	cat <<EOF
    1.48 +----
    1.49 +To start $PACKAGE server you can run :
    1.50 +
    1.51 +    /etc/init.d/$PACKAGE start
    1.52 +
    1.53 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
    1.54 +----
    1.55 +EOF
    1.56 +}