wok-next view ypserv/receipt @ rev 20430
fake-sane: fix copy-paste typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jan 24 13:29:11 2018 +0200 (2018-01-24) |
parents | 6b1be3598c12 |
children | d43bf7aae921 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.linux-nis.org/"
11 WGET_URL="$WEB_SITE/download/$PACKAGE/$TARBALL"
13 DEPENDS="gdbm portmap"
14 BUILD_DEPENDS="gdbm-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -Np1 -i $stuff/confpost.patch
21 ./configure \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr $fs/etc/init.d
31 cp -a $install/usr/sbin $fs/usr
32 cp -a $install/usr/lib $fs/usr
33 cp -a $install/usr/include $fs/usr
34 cp -a $install/var $fs
36 # Copy config files
37 for file in ypserv.conf timezone netmasks netgroup
38 do
39 cp -a $src/etc/$fle $fs/
40 done
42 # Copy initscript
43 cp $stuff/ypserv $fs/etc/init.d
45 # Copy and fix security file
46 cp $src/etc/securenets $fs/var/yp
47 sed -i 's/^0.0.0.0/#0.0.0.0/' $fs/var/yp/securenets
48 }