wok annotate ypserv/receipt @ rev 13581
Autofs: copy content to proper paths
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Tue Nov 06 01:33:15 2012 -0200 (2012-11-06) |
parents | c994a5c94f9d |
children | 617dbdeb6f7e |
rev | line source |
---|---|
pascal@5679 | 1 # SliTaz package receipt. |
pascal@5679 | 2 |
pascal@5679 | 3 PACKAGE="ypserv" |
slaxemulator@11872 | 4 VERSION="2.27" |
pascal@5679 | 5 CATEGORY="network" |
pascal@5679 | 6 SHORT_DESC="Yellow pages server (v2)." |
pascal@5679 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
slaxemulator@11872 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@11872 | 9 WEB_SITE="http://www.linux-nis.org/" |
erjo@11349 | 10 DEPENDS="gdbm portmap" |
pascal@5679 | 11 BUILD_DEPENDS="gdbm-dev" |
slaxemulator@11872 | 12 WGET_URL="$WEB_SITE/download/$PACKAGE/$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 |
slaxemulator@11872 | 18 patch -Np1 -i $stuff/confpost.patch |
slaxemulator@11872 | 19 ./configure \ |
slaxemulator@11872 | 20 $CONFIGURE_ARGS && |
pascal@5679 | 21 make && |
slaxemulator@11872 | 22 make DESTDIR=$DESTDIR 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 } |