wok view ypserv/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (6 months ago)
parents 64e725df93c0
children
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="https://web.archive.org/web/20230428155639if_/https://www.thkukuk.de/nis/download/$PACKAGE/$TARBALL"
13 DEPENDS="gdbm portmap"
14 BUILD_DEPENDS="gdbm-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/thkukuk/ypserv/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 patch -Np1 -i $stuff/confpost.patch
28 ./configure \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr $fs/etc/init.d
38 cp -a $install/usr/sbin $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/include $fs/usr
41 cp -a $install/var $fs
43 # Copy config files
44 for file in ypserv.conf timezone netmasks netgroup
45 do
46 cp -a $src/etc/$fle $fs/
47 done
49 # Copy initscript
50 cp $stuff/ypserv $fs/etc/init.d
52 # Copy and fix security file
53 cp $src/etc/securenets $fs/var/yp
54 sed -i 's/^0.0.0.0/#0.0.0.0/' $fs/var/yp/securenets
55 }