wok-next annotate netatalk/receipt @ rev 21727

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