wok-next view netatalk/receipt @ rev 21143

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 25 15:37:19 2019 +0200 (2019-01-25)
parents 0ccbe5331d6c
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="netatalk"
4 VERSION="3.1.11"
5 CATEGORY="system-tools"
6 SHORT_DESC="The AppleTalk Protocol Suite"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://netatalk.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="db-dev openssl10-dev file pam-dev libgcrypt-dev"
15 SPLIT="$PACKAGE-pam:pam $PACKAGE-dev"
17 compile_rules() {
18 case $SET in
19 '') SET_ARGS='--without-pam';;
20 pam) SET_ARGS='--with-pam';;
21 esac
23 export CPPFLAGS="$CPPFLAGS -I/usr/include/openssl-1.0"
24 export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0"
26 ./configure \
27 --libexecdir=/usr/lib/netatalk \
28 $SET_ARGS \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$install install || return 1
33 cp -a $stuff/etc $install
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 netatalk)
39 copy @std
40 rm -rf $fs/etc/pam.d
41 # DEPENDS="perl libdb openssl cups gnutls libgcrypt libgpg-error \
42 # libwrap zlib libcomerr3"
43 DEPENDS="attr libdb libgcrypt libgpg-error perl"
44 CONFIG_FILES="/etc/netatalk/"
45 ;;
46 netatalk-pam)
47 copy @std
48 # DEPENDS="perl libdb openssl cups gnutls libgcrypt libgpg-error \
49 # libwrap zlib libcomerr3 pam"
50 DEPENDS="attr libdb libgcrypt libgpg-error pam perl"
51 PROVIDE="netatalk:pam"
52 CAT="system-tools|using PAM"
53 CONFIG_FILES="/etc/netatalk/"
54 ;;
55 netatalk-dev)
56 copy @dev
57 DEPENDS="netatalk"
58 ;;
59 esac
60 }
62 pre_install_netatalk() {
63 rm -f "$1/usr/bin/timeout"
64 }
66 post_install_netatalk() {
67 ln -s /bin/busybox "$1/usr/bin/timeout"
68 cat <<EOF
70 .-------------------------------------------------.
71 | To start netatalk server you can run: |
72 | |
73 | /etc/init.d/netatalk start |
74 | |
75 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
76 '-------------------------------------------------'
77 EOF
78 }
80 pre_install_netatalk_pam() {
81 rm -f "$1/usr/bin/timeout"
82 }
84 post_install_netatalk_pam() {
85 ln -s /bin/busybox "$1/usr/bin/timeout"
86 cat <<EOF
88 .-------------------------------------------------.
89 | To start netatalk server you can run: |
90 | |
91 | /etc/init.d/netatalk start |
92 | |
93 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
94 '-------------------------------------------------'
95 EOF
96 }