wok-next annotate netatalk/receipt @ rev 20533
cairo-clock, grub4dos: fix CFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 27 12:50:45 2018 +0200 (2018-03-27) |
parents | e6615350078d |
children | 757d032c55c7 |
rev | line source |
---|---|
pascal@20281 | 1 # SliTaz package receipt v2. |
pascal@1255 | 2 |
pascal@1255 | 3 PACKAGE="netatalk" |
slaxemulator@13002 | 4 VERSION="2.2.3" |
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@20453 | 14 BUILD_DEPENDS="db-dev openssl-dev file pam-dev" |
al@20459 | 15 SPLIT="netatalk netatalk-pam netatalk-dev" |
pascal@15000 | 16 |
al@20459 | 17 compile_rules() { |
pascal@20281 | 18 cp -a $src $src-pam |
al@20459 | 19 ./configure \ |
al@20459 | 20 --without-pam \ |
al@20459 | 21 --prefix=/usr \ |
al@20459 | 22 --sysconfdir=/etc \ |
pascal@20281 | 23 --libexecdir=/usr/lib/netatalk \ |
al@20459 | 24 --mandir=/usr/share/man \ |
al@20459 | 25 $CONFIGURE_ARGS && |
pascal@1466 | 26 make && |
al@20292 | 27 make DESTDIR=$DESTDIR install || return 1 |
pascal@20281 | 28 |
pascal@20281 | 29 cd $src-pam |
al@20459 | 30 ./configure \ |
al@20459 | 31 --with-pam \ |
al@20459 | 32 --prefix=/usr \ |
al@20459 | 33 --sysconfdir=/etc \ |
pascal@20281 | 34 --libexecdir=/usr/lib/netatalk \ |
al@20459 | 35 --mandir=/usr/share/man \ |
al@20459 | 36 $CONFIGURE_ARGS && |
pascal@20281 | 37 make && |
pascal@20281 | 38 make DESTDIR=$DESTDIR-pam install |
pascal@1255 | 39 } |
pascal@1255 | 40 |
al@20459 | 41 genpkg_rules() { |
al@20459 | 42 case $PACKAGE in |
al@20459 | 43 netatalk|netatalk-pam) |
al@20459 | 44 DEPENDS="perl libdb openssl cups gnutls libgcrypt libgpg-error \ |
al@20459 | 45 libwrap zlib libcomerr3" |
al@20459 | 46 if [ $PACKAGE == 'netatalk-pam' ]; then |
al@20459 | 47 DEPENDS="$DEPENDS pam" |
al@20459 | 48 PROVIDE="netatalk:pam" |
al@20459 | 49 CAT="system-tools|using PAM" |
al@20459 | 50 install=$install-pam |
al@20459 | 51 fi |
al@20459 | 52 mkdir -p $fs/usr/share $fs/usr/lib |
al@20459 | 53 cp -a $install/usr/bin $fs/usr |
al@20459 | 54 cp -a $install/usr/sbin $fs/usr |
al@20459 | 55 #cp -a $install/usr/lib/netatalk $fs/usr/lib |
al@20459 | 56 cp -a $install/etc $fs |
al@20459 | 57 cp -a $stuff/etc $fs |
al@20459 | 58 [ $PACKAGE == 'netatalk-pam' ] || rm -rf $fs/etc/pam.d |
al@20459 | 59 rm -f $fs/etc/netatalk/uams/*a |
al@20459 | 60 CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf" |
al@20459 | 61 ;; |
al@20459 | 62 netatalk-dev) |
al@20459 | 63 mkdir -p $fs/usr/share $fs/etc/netatalk/uams/ |
al@20459 | 64 cp -a $install/usr/lib $fs/usr |
al@20459 | 65 cp -a $install/usr/include $fs/usr |
al@20459 | 66 #cp -a $install/usr/share/netatalk $fs/usr/share |
al@20459 | 67 cp -a $install/etc/netatalk/uams/*.a $fs/etc/netatalk/uams/ |
al@20459 | 68 DEPENDS="netatalk" |
al@20459 | 69 ;; |
al@20459 | 70 esac |
pascal@1255 | 71 } |
pascal@1255 | 72 |
al@20459 | 73 pre_install_netatalk() { |
pascal@20281 | 74 rm -f "$1/usr/bin/timeout" |
pascal@20281 | 75 } |
pascal@20281 | 76 |
al@20459 | 77 post_install_netatalk() { |
pascal@20281 | 78 ln -s /bin/busybox "$1/usr/bin/timeout" |
pascal@1255 | 79 cat <<EOF |
pascal@1255 | 80 |
al@20459 | 81 .-------------------------------------------------. |
al@20459 | 82 | To start netatalk server you can run: | |
al@20459 | 83 | | |
al@20459 | 84 | /etc/init.d/netatalk start | |
al@20459 | 85 | | |
al@20459 | 86 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf | |
al@20459 | 87 '-------------------------------------------------' |
pascal@1255 | 88 EOF |
pascal@1255 | 89 } |
pascal@20281 | 90 |
al@20459 | 91 pre_install_netatalk_pam() { |
pascal@20281 | 92 rm -f "$1/usr/bin/timeout" |
pascal@20281 | 93 } |
pascal@20281 | 94 |
al@20459 | 95 post_install_netatalk_pam() { |
pascal@20281 | 96 ln -s /bin/busybox "$1/usr/bin/timeout" |
pascal@20281 | 97 cat <<EOF |
pascal@20281 | 98 |
al@20459 | 99 .-------------------------------------------------. |
al@20459 | 100 | To start netatalk server you can run: | |
al@20459 | 101 | | |
al@20459 | 102 | /etc/init.d/netatalk start | |
al@20459 | 103 | | |
al@20459 | 104 | Or add netatalk to RUN_DAEMONS in /etc/rcS.conf | |
al@20459 | 105 '-------------------------------------------------' |
pascal@20281 | 106 EOF |
pascal@20281 | 107 } |