wok annotate ypserv/receipt @ rev 24950
updated nagios-plugins and nagios-plugins-mysql (2.3.3 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 10:03:51 2022 +0100 (2022-04-23) |
parents | 617dbdeb6f7e |
children | 55606cf026f1 |
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" |
pascal@15362 | 8 LICENSE="GPL2" |
slaxemulator@11872 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@11872 | 10 WEB_SITE="http://www.linux-nis.org/" |
pascal@15362 | 11 WGET_URL="$WEB_SITE/download/$PACKAGE/$TARBALL" |
pascal@15362 | 12 |
erjo@11349 | 13 DEPENDS="gdbm portmap" |
pascal@5679 | 14 BUILD_DEPENDS="gdbm-dev" |
pascal@5679 | 15 |
pascal@24304 | 16 # What is the latest version available today? |
pascal@24304 | 17 current_version() |
pascal@24304 | 18 { |
pascal@24304 | 19 wget -O - https://github.com/thkukuk/ypserv/releases 2>/dev/null | \ |
pascal@24304 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24304 | 21 } |
pascal@24304 | 22 |
pascal@5679 | 23 # Rules to configure and make the package. |
pascal@5679 | 24 compile_rules() |
pascal@5679 | 25 { |
pascal@5679 | 26 cd $src |
slaxemulator@11872 | 27 patch -Np1 -i $stuff/confpost.patch |
slaxemulator@11872 | 28 ./configure \ |
slaxemulator@11872 | 29 $CONFIGURE_ARGS && |
pascal@5679 | 30 make && |
slaxemulator@11872 | 31 make DESTDIR=$DESTDIR install |
pascal@5679 | 32 } |
pascal@5679 | 33 |
pascal@5679 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5679 | 35 genpkg_rules() |
pascal@5679 | 36 { |
erjo@11349 | 37 mkdir -p $fs/usr $fs/etc/init.d |
pascal@15362 | 38 cp -a $install/usr/sbin $fs/usr |
pascal@15362 | 39 cp -a $install/usr/lib $fs/usr |
pascal@15362 | 40 cp -a $install/usr/include $fs/usr |
pascal@15362 | 41 cp -a $install/var $fs |
erjo@11349 | 42 |
erjo@11349 | 43 # Copy config files |
erjo@11349 | 44 for file in ypserv.conf timezone netmasks netgroup |
erjo@11349 | 45 do |
erjo@11349 | 46 cp -a $src/etc/$fle $fs/ |
erjo@11349 | 47 done |
erjo@11349 | 48 |
erjo@11349 | 49 # Copy initscript |
erjo@11349 | 50 cp $stuff/ypserv $fs/etc/init.d |
erjo@11349 | 51 |
erjo@11349 | 52 # Copy and fix security file |
erjo@11349 | 53 cp $src/etc/securenets $fs/var/yp |
erjo@11349 | 54 sed -i 's/^0.0.0.0/#0.0.0.0/' $fs/var/yp/securenets |
pascal@5679 | 55 } |