wok-current view netatalk/receipt @ rev 3448
Add offineimap
author | Julien Rabier <taziden@slitaz.org> |
---|---|
date | Sun Jun 14 23:40:53 2009 +0000 (2009-06-14) |
parents | 8e047542175a |
children | 54fb6ed9d8bb |
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 cups gnutls libgcrypt libgpg-error \
9 libwrap zlib"
10 BUILD_DEPENDS="db-dev libcrypto-dev"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://netatalk.sourceforge.net/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 [ -f done.netatalk-2.0.3-newer-db.patch ] || \
21 patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch
22 touch done.netatalk-2.0.3-newer-db.patch
23 sed -i -e 's/pam =/pam_x =/' -e 's/USE_PAM, 1,/USE_PAM, 0,/' \
24 -e 's/pam_so =/pam_so_x =/' configure.in
25 ./configure --without-pam --prefix=/usr --sysconfdir=/etc \
26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/libexec $fs/usr
38 cp -a $_pkg/etc $fs
39 rm -f $fs/etc/netatalk/uams/*a
40 # Package all netatalk pkgs
41 for i in $(cd $WOK; ls -d netatalk-*)
42 do
43 tazwok genpkg $i
44 done
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 cat <<EOF
51 ----
52 To start $PACKAGE server you can run :
54 /etc/init.d/$PACKAGE start
56 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
57 ----
58 EOF
59 }