wok-next annotate ypserv/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents 617dbdeb6f7e
children d6378d455338
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 patch -Np1 -i $stuff/confpost.patch
slaxemulator@11872 18 ./configure \
slaxemulator@11872 19 $CONFIGURE_ARGS &&
pascal@5679 20 make &&
al@20513 21 make DESTDIR=$DESTDIR install || return 1
al@20513 22
al@20513 23 # Copy config files
al@20513 24 mkdir -p $install/etc/
al@20513 25 cp etc/ypserv.conf etc/timezone etc/netmasks etc/netgroup \
al@20513 26 $install/etc/
al@20513 27
al@20513 28 # Copy initscript
al@20513 29 install -Dm755 $stuff/ypserv $install/etc/init.d/ypserv
al@20513 30
al@20513 31 # Copy and fix security file
al@20513 32 cp $src/etc/securenets $install/var/yp/
al@20513 33 sed -i 's/^0.0.0.0/#0.0.0.0/' $install/var/yp/securenets
pascal@5679 34 }
pascal@5679 35
al@20513 36 genpkg_rules() {
al@20513 37 copy @std @dev
al@20513 38 DEPENDS="gdbm portmap"
pascal@5679 39 }