wok-current view ypserv/receipt @ rev 25458
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 27 16:21:52 2022 +0000 (2022-09-27) |
parents | 922f061231c2 |
children | 64e725df93c0 |
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://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 '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;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 }