wok annotate netatalk/receipt @ rev 17994

Up tazpanel, tazpkg.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 24 16:06:58 2015 +0300 (2015-04-24)
parents 4d760951690d
children afae00265386
rev   line source
pascal@1255 1 # SliTaz package receipt.
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
pascal@15000 14 DEPENDS="perl libdb libcrypto cups gnutls libgcrypt libgpg-error \
pascal@15000 15 libwrap zlib libcomerr3"
pascal@15030 16 BUILD_DEPENDS="db-dev libcrypto-dev file"
pascal@15000 17
pascal@1255 18 # Rules to configure and make the package.
pascal@1255 19 compile_rules()
pascal@1255 20 {
pascal@1255 21 cd $src
pascal@15030 22 #sed -i -e 's/pam =/pam_x =/' -e 's/USE_PAM, 1,/USE_PAM, 0,/' \
pascal@15030 23 # -e 's/pam_so =/pam_so_x =/' configure.in
pascal@2460 24 ./configure --without-pam --prefix=/usr --sysconfdir=/etc \
pascal@4194 25 --libexecdir=/usr/lib/netatalk \
pascal@1466 26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1466 27 make &&
slaxemulator@13002 28 make DESTDIR=$DESTDIR install
pascal@1255 29 }
pascal@1255 30
pascal@1255 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1255 32 genpkg_rules()
pascal@1255 33 {
pascal@4194 34 mkdir -p $fs/usr/share $fs/usr/lib
slaxemulator@13002 35 cp -a $install/usr/bin $fs/usr
slaxemulator@13002 36 cp -a $install/usr/sbin $fs/usr
pascal@15027 37 #cp -a $install/usr/lib/netatalk $fs/usr/lib
slaxemulator@13002 38 cp -a $install/etc $fs
pascal@13274 39 cp -a $stuff/etc $fs
pascal@1255 40 rm -f $fs/etc/netatalk/uams/*a
pascal@1255 41 }
pascal@1255 42
pascal@1255 43 # Pre and post install commands for Tazpkg.
pascal@1255 44 post_install()
pascal@1255 45 {
pascal@1255 46 cat <<EOF
pascal@1255 47 ----
pascal@1255 48 To start $PACKAGE server you can run :
pascal@1255 49
pascal@1255 50 /etc/init.d/$PACKAGE start
pascal@1255 51
pascal@1255 52 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
pascal@1255 53 ----
pascal@1255 54 EOF
pascal@1255 55 }