wok-next annotate netatalk/receipt @ rev 20453
Undo openssl split
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 16:28:07 2018 +0200 (2018-02-28) |
parents | d3adbeea3a9f |
children | a7b1395df64a |
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" |
pascal@1255 | 6 SHORT_DESC="The AppleTalk Protocol Suite." |
pascal@1255 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@1255 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@1255 | 10 WEB_SITE="http://netatalk.sourceforge.net/" |
pascal@1255 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@1255 | 12 CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf" |
pascal@1255 | 13 |
al@20453 | 14 BUILD_DEPENDS="db-dev openssl-dev file pam-dev" |
pascal@20281 | 15 SPLIT="netatalk netatalk-pam" |
pascal@15000 | 16 |
pascal@1255 | 17 # Rules to configure and make the package. |
pascal@1255 | 18 compile_rules() |
pascal@1255 | 19 { |
pascal@20281 | 20 cp -a $src $src-pam |
pascal@2460 | 21 ./configure --without-pam --prefix=/usr --sysconfdir=/etc \ |
pascal@20281 | 22 --libexecdir=/usr/lib/netatalk \ |
pascal@20281 | 23 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1466 | 24 make && |
al@20292 | 25 make DESTDIR=$DESTDIR install || return 1 |
pascal@20281 | 26 |
pascal@20281 | 27 cd $src-pam |
pascal@20281 | 28 ./configure --with-pam --prefix=/usr --sysconfdir=/etc \ |
pascal@20281 | 29 --libexecdir=/usr/lib/netatalk \ |
pascal@20281 | 30 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@20281 | 31 make && |
pascal@20281 | 32 make DESTDIR=$DESTDIR-pam install |
pascal@1255 | 33 } |
pascal@1255 | 34 |
pascal@1255 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1255 | 36 genpkg_rules() |
pascal@1255 | 37 { |
al@20453 | 38 DEPENDS="perl libdb openssl cups gnutls libgcrypt libgpg-error \ |
pascal@20281 | 39 libwrap zlib libcomerr3" |
al@20292 | 40 if [ $PACKAGE == 'netatalk-pam' ]; then |
al@20292 | 41 DEPENDS="$DEPENDS pam" |
al@20292 | 42 PROVIDE="netatalk:pam" |
al@20292 | 43 CAT="system-tools|using PAM" |
pascal@20281 | 44 install=$install-pam |
al@20292 | 45 fi |
pascal@4194 | 46 mkdir -p $fs/usr/share $fs/usr/lib |
slaxemulator@13002 | 47 cp -a $install/usr/bin $fs/usr |
slaxemulator@13002 | 48 cp -a $install/usr/sbin $fs/usr |
pascal@15027 | 49 #cp -a $install/usr/lib/netatalk $fs/usr/lib |
slaxemulator@13002 | 50 cp -a $install/etc $fs |
pascal@13274 | 51 cp -a $stuff/etc $fs |
al@20292 | 52 [ $PACKAGE == 'netatalk-pam' ] || rm -rf $fs/etc/pam.d |
pascal@1255 | 53 rm -f $fs/etc/netatalk/uams/*a |
pascal@1255 | 54 } |
pascal@1255 | 55 |
pascal@1255 | 56 # Pre and post install commands for Tazpkg. |
pascal@20281 | 57 pre_install_netatalk() |
pascal@1255 | 58 { |
pascal@20281 | 59 rm -f "$1/usr/bin/timeout" |
pascal@20281 | 60 } |
pascal@20281 | 61 |
pascal@20281 | 62 post_install_netatalk() |
pascal@20281 | 63 { |
pascal@20281 | 64 ln -s /bin/busybox "$1/usr/bin/timeout" |
pascal@1255 | 65 cat <<EOF |
pascal@1255 | 66 ---- |
pascal@20281 | 67 To start netatalk server you can run : |
pascal@1255 | 68 |
pascal@20281 | 69 /etc/init.d/netatalk start |
pascal@1255 | 70 |
pascal@20281 | 71 Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
pascal@1255 | 72 ---- |
pascal@1255 | 73 EOF |
pascal@1255 | 74 } |
pascal@20281 | 75 |
pascal@20281 | 76 pre_install_netatalk_pam() |
pascal@20281 | 77 { |
pascal@20281 | 78 rm -f "$1/usr/bin/timeout" |
pascal@20281 | 79 } |
pascal@20281 | 80 |
pascal@20281 | 81 post_install_netatalk_pam() |
pascal@20281 | 82 { |
pascal@20281 | 83 ln -s /bin/busybox "$1/usr/bin/timeout" |
pascal@20281 | 84 cat <<EOF |
pascal@20281 | 85 ---- |
pascal@20281 | 86 To start netatalk server you can run : |
pascal@20281 | 87 |
pascal@20281 | 88 /etc/init.d/netatalk start |
pascal@20281 | 89 |
pascal@20281 | 90 Or add netatalk to RUN_DAEMONS in /etc/rcS.conf |
pascal@20281 | 91 ---- |
pascal@20281 | 92 EOF |
pascal@20281 | 93 } |