wok annotate ypserv/receipt @ rev 11349

ypserv: improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Nov 29 01:25:59 2011 +0100 (2011-11-29)
parents cf5937e61b74
children 6b1be3598c12
rev   line source
pascal@5679 1 # SliTaz package receipt.
pascal@5679 2
pascal@5679 3 PACKAGE="ypserv"
pascal@5679 4 VERSION="2.23"
pascal@5679 5 CATEGORY="network"
pascal@5679 6 SHORT_DESC="Yellow pages server (v2)."
pascal@5679 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@5679 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@5679 9 WEB_SITE="http://www.kernel.org/pub/linux/utils/net/NIS/"
erjo@11349 10 DEPENDS="gdbm portmap"
pascal@5679 11 BUILD_DEPENDS="gdbm-dev"
pascal@5679 12 WGET_URL="$WEB_SITE/$TARBALL"
pascal@5679 13
pascal@5679 14 # Rules to configure and make the package.
pascal@5679 15 compile_rules()
pascal@5679 16 {
pascal@5679 17 cd $src
pascal@5679 18 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@5679 19 --mandir=/usr/share/man \
pascal@5679 20 $CONFIGURE_ARGS &&
pascal@5679 21 make &&
pascal@5679 22 make DESTDIR=$PWD/_pkg install
pascal@5679 23 }
pascal@5679 24
pascal@5679 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5679 26 genpkg_rules()
pascal@5679 27 {
erjo@11349 28 mkdir -p $fs/usr $fs/etc/init.d
pascal@5679 29 cp -a $_pkg/usr/sbin $fs/usr
pascal@5679 30 cp -a $_pkg/usr/lib $fs/usr
pascal@5679 31 cp -a $_pkg/usr/include $fs/usr
pascal@5679 32 cp -a $_pkg/var $fs
erjo@11349 33
erjo@11349 34 # Copy config files
erjo@11349 35 for file in ypserv.conf timezone netmasks netgroup
erjo@11349 36 do
erjo@11349 37 cp -a $src/etc/$fle $fs/
erjo@11349 38 done
erjo@11349 39
erjo@11349 40 # Copy initscript
erjo@11349 41 cp $stuff/ypserv $fs/etc/init.d
erjo@11349 42
erjo@11349 43 # Copy and fix security file
erjo@11349 44 cp $src/etc/securenets $fs/var/yp
erjo@11349 45 sed -i 's/^0.0.0.0/#0.0.0.0/' $fs/var/yp/securenets
pascal@5679 46 }