wok-next view netatalk/receipt @ rev 20281

remove netatalk-pam, partimage-pam, openssh-pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 14:51:34 2017 +0100 (2017-11-08)
parents a2e2f54c8e28
children d3adbeea3a9f
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
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 [ $PACKAGE == netatalk-pam ] && DEPENDS="$DEPENDS pam" &&
41 PROVIDE="netatalk:pam" && CAT="system-tools|using PAM" &&
42 install=$install-pam
43 mkdir -p $fs/usr/share $fs/usr/lib
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 #cp -a $install/usr/lib/netatalk $fs/usr/lib
47 cp -a $install/etc $fs
48 cp -a $stuff/etc $fs
49 [ $PACKAGE == netatalk-pam ] || rm -rf $fs/etc/pam.d
50 rm -f $fs/etc/netatalk/uams/*a
51 }
53 # Pre and post install commands for Tazpkg.
54 pre_install_netatalk()
55 {
56 rm -f "$1/usr/bin/timeout"
57 }
59 post_install_netatalk()
60 {
61 ln -s /bin/busybox "$1/usr/bin/timeout"
62 cat <<EOF
63 ----
64 To start netatalk server you can run :
66 /etc/init.d/netatalk start
68 Or add netatalk to RUN_DAEMONS in /etc/rcS.conf
69 ----
70 EOF
71 }
73 pre_install_netatalk_pam()
74 {
75 rm -f "$1/usr/bin/timeout"
76 }
78 post_install_netatalk_pam()
79 {
80 ln -s /bin/busybox "$1/usr/bin/timeout"
81 cat <<EOF
82 ----
83 To start netatalk server you can run :
85 /etc/init.d/netatalk start
87 Or add netatalk to RUN_DAEMONS in /etc/rcS.conf
88 ----
89 EOF
90 }