wok-4.x view netatalk/receipt @ rev 1433

Add: beecrypt and beecrypt-dev
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Oct 01 00:01:24 2008 +0200 (2008-10-01)
parents
children 0ed558cc4347
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 patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch
20 ./configure --prefix=/usr --sysconfdir=/etc \
21 --mandir=/usr/share/man $CONFIGURE_ARGS
22 make
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/sbin $fs/usr
32 cp -a $_pkg/usr/libexec $fs/usr
33 cp -a $_pkg/etc $fs
34 rm -f $fs/etc/netatalk/uams/*a
35 # Package all netatalk pkgs
36 for i in $(cd $WOK; ls -d netatalk-*)
37 do
38 tazwok genpkg $i
39 done
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
46 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
47 $(ls etc/netatalk/AppleVolumes.* etc/netatalk/*.conf)
48 EOT
49 cat <<EOF
50 ----
51 To start $PACKAGE server you can run :
53 /etc/init.d/$PACKAGE start
55 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
56 ----
57 EOF
58 }
60 repack_cleanup()
61 {
62 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
63 }