wok annotate netatalk-pam/receipt @ rev 2216
*-pam: fix depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 12 07:47:04 2009 +0000 (2009-02-12) |
parents | edc45fd54795 |
children | 36c2a37430ab |
rev | line source |
---|---|
pascal@2187 | 1 # SliTaz package receipt. |
pascal@2187 | 2 |
pascal@2187 | 3 PACKAGE="netatalk-pam" |
pascal@2187 | 4 VERSION="2.0.3" |
pascal@2187 | 5 CATEGORY="system-tools" |
pascal@2187 | 6 SHORT_DESC="The AppleTalk Protocol Suite using PAM." |
pascal@2187 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2216 | 8 DEPENDS="perl libdb libcrypto pam" |
pascal@2216 | 9 BUILD_DEPENDS="db-dev libcrypto-dev pam pam-dev" |
pascal@2187 | 10 SOURCE="netatalk" |
pascal@2187 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@2187 | 12 WEB_SITE="http://netatalk.sourceforge.net/" |
pascal@2192 | 13 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
pascal@2187 | 14 CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf" |
pascal@2187 | 15 PROVIDE="netatalk:pam" |
pascal@2187 | 16 |
pascal@2187 | 17 # Rules to configure and make the package. |
pascal@2187 | 18 compile_rules() |
pascal@2187 | 19 { |
pascal@2187 | 20 cd $src |
pascal@2187 | 21 [ -f done.netatalk-2.0.3-newer-db.patch ] || \ |
pascal@2187 | 22 patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch |
pascal@2187 | 23 touch done.netatalk-2.0.3-newer-db.patch |
pascal@2187 | 24 ./configure --with-pam --prefix=/usr --sysconfdir=/etc \ |
pascal@2187 | 25 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2187 | 26 make && |
pascal@2187 | 27 make DESTDIR=$PWD/_pkg install |
pascal@2187 | 28 } |
pascal@2187 | 29 |
pascal@2187 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2187 | 31 genpkg_rules() |
pascal@2187 | 32 { |
pascal@2187 | 33 mkdir -p $fs/usr/share |
pascal@2187 | 34 cp -a $_pkg/usr/bin $fs/usr |
pascal@2187 | 35 cp -a $_pkg/usr/sbin $fs/usr |
pascal@2187 | 36 cp -a $_pkg/usr/libexec $fs/usr |
pascal@2187 | 37 cp -a $_pkg/etc $fs |
pascal@2187 | 38 rm -f $fs/etc/netatalk/uams/*a |
pascal@2187 | 39 } |
pascal@2187 | 40 |
pascal@2187 | 41 # Pre and post install commands for Tazpkg. |
pascal@2187 | 42 post_install() |
pascal@2187 | 43 { |
pascal@2187 | 44 cat <<EOF |
pascal@2187 | 45 ---- |
pascal@2187 | 46 To start $PACKAGE server you can run : |
pascal@2187 | 47 |
pascal@2187 | 48 /etc/init.d/$PACKAGE start |
pascal@2187 | 49 |
pascal@2187 | 50 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@2187 | 51 ---- |
pascal@2187 | 52 EOF |
pascal@2187 | 53 } |