# SliTaz package receipt. PACKAGE="ypserv" VERSION="2.27" CATEGORY="network" SHORT_DESC="Yellow pages server (v2)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.linux-nis.org/" WGET_URL="https://web.archive.org/web/20230428155639if_/https://www.thkukuk.de/nis/download/$PACKAGE/$TARBALL" DEPENDS="gdbm portmap" BUILD_DEPENDS="gdbm-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/thkukuk/ypserv/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { cd $src patch -Np1 -i $stuff/confpost.patch ./configure \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr $fs/etc/init.d cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/include $fs/usr cp -a $install/var $fs # Copy config files for file in ypserv.conf timezone netmasks netgroup do cp -a $src/etc/$fle $fs/ done # Copy initscript cp $stuff/ypserv $fs/etc/init.d # Copy and fix security file cp $src/etc/securenets $fs/var/yp sed -i 's/^0.0.0.0/#0.0.0.0/' $fs/var/yp/securenets }