wok-next annotate libwrap/receipt @ rev 20748

Update (b)deps
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 30 20:13:48 2018 +0300 (2018-05-30)
parents c4e53a39395a
children ca0d3fe02f15
rev   line source
pascal@20181 1 # SliTaz package receipt v2.
erjo@286 2
erjo@286 3 PACKAGE="libwrap"
erjo@286 4 VERSION="7.6"
erjo@286 5 CATEGORY="system-tools"
al@20207 6 SHORT_DESC="Wietse Venema's network logger"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15600 8 LICENSE="BSD"
erjo@286 9 SOURCE="tcp_wrappers"
erjo@286 10 TARBALL="${SOURCE}_${VERSION}.tar.gz"
erjo@286 11 WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
erjo@286 12 WGET_URL="ftp://ftp.porcupine.org/pub/security/$TARBALL"
erjo@286 13
al@20207 14 SPLIT="libwrap-dev tcpd"
pascal@20181 15
erjo@286 16 # Rules to configure and make the package.
erjo@286 17 compile_rules()
erjo@286 18 {
erjo@286 19 sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
erjo@286 20
erjo@286 21 make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
erjo@286 22 }
erjo@286 23
erjo@286 24 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@286 25 genpkg_rules()
erjo@286 26 {
pascal@20181 27 case $PACKAGE in
pascal@20181 28 libwrap)
pascal@20181 29 mkdir -p $fs/usr/lib
pascal@20181 30 cp -a $src/shared/*.so* $fs/usr/lib
pascal@20181 31 ;;
pascal@20181 32 libwrap-dev)
pascal@20181 33 mkdir -p $fs/usr/include $fs/usr/lib
pascal@20181 34 cp -a $src/tcpd.h $fs/usr/include
pascal@20181 35 cp -a $src/*.a $fs/usr/lib
pascal@20181 36 ;;
pascal@20181 37 tcpd)
al@20207 38 CAT="development|network encapsulation files"
pascal@20181 39 CONFIG_FILES="/etc/hosts.allow /etc/hosts.deny"
pascal@20181 40 DEPENDS="libwrap"
pascal@20181 41 mkdir -p $fs/usr/sbin $fs/etc
pascal@20181 42 cp -a $src/tcpd $fs/usr/sbin
pascal@20181 43 cp -a $src/tcpdchk $fs/usr/sbin
pascal@20181 44 cp -a $src/tcpdmatch $fs/usr/sbin
pascal@20181 45 cp -a $src/try-from $fs/usr/sbin
pascal@20181 46 cp -a $src/safe_finger $fs/usr/sbin
pascal@20181 47 echo "ALL : 127.0.0.1, 192.168." > $fs/etc/hosts.allow
pascal@20181 48 touch $fs/etc/hosts.deny
pascal@20181 49 ;;
pascal@20181 50 esac
erjo@286 51 }