wok-4.x annotate netatalk/receipt @ rev 1466

netatalk: apply patch once
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 09:46:54 2008 +0000 (2008-10-04)
parents f8d110a2f0e2
children 1b95154d11db
rev   line source
pascal@1255 1 # SliTaz package receipt.
pascal@1255 2
pascal@1255 3 PACKAGE="netatalk"
pascal@1255 4 VERSION="2.0.3"
pascal@1255 5 CATEGORY="system-tools"
pascal@1255 6 SHORT_DESC="The AppleTalk Protocol Suite."
pascal@1255 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1255 8 DEPENDS="perl libdb libcrypto"
pascal@1255 9 BUILD_DEPENDS="db-dev libcrypto-dev"
pascal@1255 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@1255 11 WEB_SITE="http://netatalk.sourceforge.net/"
pascal@1255 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@1255 13 CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf"
pascal@1255 14
pascal@1255 15 # Rules to configure and make the package.
pascal@1255 16 compile_rules()
pascal@1255 17 {
pascal@1255 18 cd $src
pascal@1466 19 [ -d done.netatalk-2.0.3-newer-db.patch ] || \
pascal@1466 20 patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch
pascal@1466 21 touch done.netatalk-2.0.3-newer-db.patch
pascal@1255 22 ./configure --prefix=/usr --sysconfdir=/etc \
pascal@1466 23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1466 24 make &&
pascal@1255 25 make DESTDIR=$PWD/_pkg install
pascal@1255 26 }
pascal@1255 27
pascal@1255 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1255 29 genpkg_rules()
pascal@1255 30 {
pascal@1255 31 mkdir -p $fs/usr/share
pascal@1255 32 cp -a $_pkg/usr/bin $fs/usr
pascal@1255 33 cp -a $_pkg/usr/sbin $fs/usr
pascal@1255 34 cp -a $_pkg/usr/libexec $fs/usr
pascal@1255 35 cp -a $_pkg/etc $fs
pascal@1255 36 rm -f $fs/etc/netatalk/uams/*a
pascal@1255 37 # Package all netatalk pkgs
pascal@1255 38 for i in $(cd $WOK; ls -d netatalk-*)
pascal@1255 39 do
pascal@1255 40 tazwok genpkg $i
pascal@1255 41 done
pascal@1255 42 }
pascal@1255 43
pascal@1255 44 # Pre and post install commands for Tazpkg.
pascal@1255 45 post_install()
pascal@1255 46 {
pascal@1255 47 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
pascal@1255 48 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
pascal@1255 49 $(ls etc/netatalk/AppleVolumes.* etc/netatalk/*.conf)
pascal@1255 50 EOT
pascal@1255 51 cat <<EOF
pascal@1255 52 ----
pascal@1255 53 To start $PACKAGE server you can run :
pascal@1255 54
pascal@1255 55 /etc/init.d/$PACKAGE start
pascal@1255 56
pascal@1255 57 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1255 58 ----
pascal@1255 59 EOF
pascal@1255 60 }
pascal@1255 61
pascal@1255 62 repack_cleanup()
pascal@1255 63 {
pascal@1255 64 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
pascal@1255 65 }