wok view ypserv/receipt @ rev 14939
Up: embryo (1.7.8)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 19:15:44 2013 +0200 (2013-08-08) |
parents | c994a5c94f9d |
children | 617dbdeb6f7e |
line source
1 # SliTaz package receipt.
3 PACKAGE="ypserv"
4 VERSION="2.27"
5 CATEGORY="network"
6 SHORT_DESC="Yellow pages server (v2)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.linux-nis.org/"
10 DEPENDS="gdbm portmap"
11 BUILD_DEPENDS="gdbm-dev"
12 WGET_URL="$WEB_SITE/download/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -Np1 -i $stuff/confpost.patch
19 ./configure \
20 $CONFIGURE_ARGS &&
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr $fs/etc/init.d
29 cp -a $_pkg/usr/sbin $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
31 cp -a $_pkg/usr/include $fs/usr
32 cp -a $_pkg/var $fs
34 # Copy config files
35 for file in ypserv.conf timezone netmasks netgroup
36 do
37 cp -a $src/etc/$fle $fs/
38 done
40 # Copy initscript
41 cp $stuff/ypserv $fs/etc/init.d
43 # Copy and fix security file
44 cp $src/etc/securenets $fs/var/yp
45 sed -i 's/^0.0.0.0/#0.0.0.0/' $fs/var/yp/securenets
46 }