wok-next view netatalk/receipt @ rev 20343

unbound: create /var/lib/unbound
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 17 18:18:29 2017 +0100 (2017-11-17)
parents 204470f08d82
children e6615350078d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="netatalk"
4 VERSION="2.2.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="The AppleTalk Protocol Suite."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://netatalk.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf"
14 BUILD_DEPENDS="db-dev libcrypto-dev file pam-dev"
15 SPLIT="netatalk netatalk-pam"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cp -a $src $src-pam
21 ./configure --without-pam --prefix=/usr --sysconfdir=/etc \
22 --libexecdir=/usr/lib/netatalk \
23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$DESTDIR install || return 1
27 cd $src-pam
28 ./configure --with-pam --prefix=/usr --sysconfdir=/etc \
29 --libexecdir=/usr/lib/netatalk \
30 --mandir=/usr/share/man $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR-pam install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 DEPENDS="perl libdb libcrypto cups gnutls libgcrypt libgpg-error \
39 libwrap zlib libcomerr3"
40 if [ $PACKAGE == 'netatalk-pam' ]; then
41 DEPENDS="$DEPENDS pam"
42 PROVIDE="netatalk:pam"
43 CAT="system-tools|using PAM"
44 install=$install-pam
45 fi
46 mkdir -p $fs/usr/share $fs/usr/lib
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/sbin $fs/usr
49 #cp -a $install/usr/lib/netatalk $fs/usr/lib
50 cp -a $install/etc $fs
51 cp -a $stuff/etc $fs
52 [ $PACKAGE == 'netatalk-pam' ] || rm -rf $fs/etc/pam.d
53 rm -f $fs/etc/netatalk/uams/*a
54 }
56 # Pre and post install commands for Tazpkg.
57 pre_install_netatalk()
58 {
59 rm -f "$1/usr/bin/timeout"
60 }
62 post_install_netatalk()
63 {
64 ln -s /bin/busybox "$1/usr/bin/timeout"
65 cat <<EOF
66 ----
67 To start netatalk server you can run :
69 /etc/init.d/netatalk start
71 Or add netatalk to RUN_DAEMONS in /etc/rcS.conf
72 ----
73 EOF
74 }
76 pre_install_netatalk_pam()
77 {
78 rm -f "$1/usr/bin/timeout"
79 }
81 post_install_netatalk_pam()
82 {
83 ln -s /bin/busybox "$1/usr/bin/timeout"
84 cat <<EOF
85 ----
86 To start netatalk server you can run :
88 /etc/init.d/netatalk start
90 Or add netatalk to RUN_DAEMONS in /etc/rcS.conf
91 ----
92 EOF
93 }