wok-4.x annotate netatalk/receipt @ rev 4533
db: libdb provides libs (backout 4529:be5bba285abe)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 30 15:03:24 2009 +0100 (2009-11-30) |
parents | 2c679ce49f4c |
children | 5b44af8c1257 |
rev | line source |
---|---|
pascal@1255 | 1 # SliTaz package receipt. |
pascal@1255 | 2 |
pascal@1255 | 3 PACKAGE="netatalk" |
pascal@1255 | 4 VERSION="2.0.3" |
pascal@1255 | 5 CATEGORY="system-tools" |
pascal@1255 | 6 SHORT_DESC="The AppleTalk Protocol Suite." |
pascal@1255 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pankso@3429 | 8 DEPENDS="perl libdb libcrypto cups gnutls libgcrypt libgpg-error \ |
pascal@2460 | 9 libwrap zlib" |
pascal@1255 | 10 BUILD_DEPENDS="db-dev libcrypto-dev" |
pascal@1255 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@1255 | 12 WEB_SITE="http://netatalk.sourceforge.net/" |
pascal@1255 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@1255 | 14 CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf" |
pascal@1255 | 15 |
pascal@1255 | 16 # Rules to configure and make the package. |
pascal@1255 | 17 compile_rules() |
pascal@1255 | 18 { |
pascal@1255 | 19 cd $src |
pascal@1472 | 20 [ -f done.netatalk-2.0.3-newer-db.patch ] || \ |
pascal@1466 | 21 patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch |
pascal@1466 | 22 touch done.netatalk-2.0.3-newer-db.patch |
pascal@2604 | 23 sed -i -e 's/pam =/pam_x =/' -e 's/USE_PAM, 1,/USE_PAM, 0,/' \ |
pascal@2604 | 24 -e 's/pam_so =/pam_so_x =/' configure.in |
pascal@2460 | 25 ./configure --without-pam --prefix=/usr --sysconfdir=/etc \ |
pascal@4194 | 26 --libexecdir=/usr/lib/netatalk \ |
pascal@1466 | 27 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1466 | 28 make && |
pascal@1255 | 29 make DESTDIR=$PWD/_pkg install |
pascal@1255 | 30 } |
pascal@1255 | 31 |
pascal@1255 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1255 | 33 genpkg_rules() |
pascal@1255 | 34 { |
pascal@4194 | 35 mkdir -p $fs/usr/share $fs/usr/lib |
pascal@1255 | 36 cp -a $_pkg/usr/bin $fs/usr |
pascal@1255 | 37 cp -a $_pkg/usr/sbin $fs/usr |
pascal@4194 | 38 cp -a $_pkg/usr/lib/netatalk $fs/usr/lib |
pascal@1255 | 39 cp -a $_pkg/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 } |