wok-next annotate ypserv/receipt @ rev 20661

Unification of the patch system
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 21:12:00 2018 +0300 (2018-05-10)
parents d43bf7aae921
children d5aab818505e
rev   line source
al@20513 1 # SliTaz package receipt v2.
pascal@5679 2
pascal@5679 3 PACKAGE="ypserv"
slaxemulator@11872 4 VERSION="2.27"
pascal@5679 5 CATEGORY="network"
al@20513 6 SHORT_DESC="Yellow pages server (v2)"
pascal@5679 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15362 8 LICENSE="GPL2"
al@20513 9 WEB_SITE="http://www.linux-nis.org/"
al@20513 10
slaxemulator@11872 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15362 12 WGET_URL="$WEB_SITE/download/$PACKAGE/$TARBALL"
pascal@15362 13
pascal@5679 14 BUILD_DEPENDS="gdbm-dev"
pascal@5679 15
al@20513 16 compile_rules() {
slaxemulator@11872 17 ./configure \
slaxemulator@11872 18 $CONFIGURE_ARGS &&
pascal@5679 19 make &&
al@20513 20 make DESTDIR=$DESTDIR install || return 1
al@20513 21
al@20513 22 # Copy config files
al@20513 23 mkdir -p $install/etc/
al@20513 24 cp etc/ypserv.conf etc/timezone etc/netmasks etc/netgroup \
al@20513 25 $install/etc/
al@20513 26
al@20513 27 # Copy initscript
al@20513 28 install -Dm755 $stuff/ypserv $install/etc/init.d/ypserv
al@20513 29
al@20513 30 # Copy and fix security file
al@20513 31 cp $src/etc/securenets $install/var/yp/
al@20513 32 sed -i 's/^0.0.0.0/#0.0.0.0/' $install/var/yp/securenets
pascal@5679 33 }
pascal@5679 34
al@20513 35 genpkg_rules() {
al@20513 36 copy @std @dev
al@20513 37 DEPENDS="gdbm portmap"
pascal@5679 38 }