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