wok-next view netatalk/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents a7b1395df64a
children 2ac9179af16f
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 openssl-dev file pam-dev"
15 SPLIT="netatalk netatalk-pam:pam netatalk-dev"
17 compile_rules() {
18 case $SET in
19 '') SET_ARGS='--without-pam';;
20 pam) SET_ARGS='--with-pam';;
21 esac
23 ./configure \
24 --libexecdir=/usr/lib/netatalk \
25 $SET_ARGS \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install || return 1
30 cp -a $stuff/etc $install
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 netatalk)
36 copy @std
37 rm -rf $fs/etc/pam.d
38 DEPENDS="perl libdb openssl cups gnutls libgcrypt libgpg-error \
39 libwrap zlib libcomerr3"
40 CONFIG_FILES="/etc/netatalk/"
41 ;;
42 netatalk-pam)
43 copy @std
44 DEPENDS="perl libdb openssl cups gnutls libgcrypt libgpg-error \
45 libwrap zlib libcomerr3 pam"
46 PROVIDE="netatalk:pam"
47 CAT="system-tools|using PAM"
48 CONFIG_FILES="/etc/netatalk/"
49 ;;
50 netatalk-dev)
51 copy @dev
52 ;;
53 esac
54 }
56 pre_install_netatalk() {
57 rm -f "$1/usr/bin/timeout"
58 }
60 post_install_netatalk() {
61 ln -s /bin/busybox "$1/usr/bin/timeout"
62 cat <<EOF
64 .-------------------------------------------------.
65 | To start netatalk server you can run: |
66 | |
67 | /etc/init.d/netatalk start |
68 | |
69 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
70 '-------------------------------------------------'
71 EOF
72 }
74 pre_install_netatalk_pam() {
75 rm -f "$1/usr/bin/timeout"
76 }
78 post_install_netatalk_pam() {
79 ln -s /bin/busybox "$1/usr/bin/timeout"
80 cat <<EOF
82 .-------------------------------------------------.
83 | To start netatalk server you can run: |
84 | |
85 | /etc/init.d/netatalk start |
86 | |
87 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
88 '-------------------------------------------------'
89 EOF
90 }