wok-next view netatalk/receipt @ rev 20735
netatalk: tried to compile against openssl-1.0, but disabled openssl completely. Anyway, package isn't broken now.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 19:56:27 2018 +0300 (2018-05-29) |
parents | 757d032c55c7 |
children | 0ccbe5331d6c |
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="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 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=$DESTDIR 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 ;;
58 esac
59 }
61 pre_install_netatalk() {
62 rm -f "$1/usr/bin/timeout"
63 }
65 post_install_netatalk() {
66 ln -s /bin/busybox "$1/usr/bin/timeout"
67 cat <<EOF
69 .-------------------------------------------------.
70 | To start netatalk server you can run: |
71 | |
72 | /etc/init.d/netatalk start |
73 | |
74 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
75 '-------------------------------------------------'
76 EOF
77 }
79 pre_install_netatalk_pam() {
80 rm -f "$1/usr/bin/timeout"
81 }
83 post_install_netatalk_pam() {
84 ln -s /bin/busybox "$1/usr/bin/timeout"
85 cat <<EOF
87 .-------------------------------------------------.
88 | To start netatalk server you can run: |
89 | |
90 | /etc/init.d/netatalk start |
91 | |
92 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
93 '-------------------------------------------------'
94 EOF
95 }