wok-next view libwrap/receipt @ rev 20189

Up mesa17 (17.2.4)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Nov 03 01:04:49 2017 +0100 (2017-11-03)
parents 4abbe39ea1e2
children ccb92f8ccaf6
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libwrap"
4 VERSION="7.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="Wietse Venema's network logger."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 SOURCE="tcp_wrappers"
10 TARBALL="${SOURCE}_${VERSION}.tar.gz"
11 WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
12 WGET_URL="ftp://ftp.porcupine.org/pub/security/$TARBALL"
13 HOST_ARCH="i486 arm"
15 SPLIT="libwrap libwrap-dev tcpd"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Patch from Linux From Scratch
21 [ -f done.tcp_wrappers-7.6-shared_lib_plus_plus-1.patch ] ||
22 patch -p1 -i $stuff/tcp_wrappers-7.6-shared_lib_plus_plus-1.patch
23 touch done.tcp_wrappers-7.6-shared_lib_plus_plus-1.patch
24 sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
26 make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 case $PACKAGE in
33 libwrap)
34 mkdir -p $fs/usr/lib
35 cp -a $src/shared/*.so* $fs/usr/lib
36 ;;
37 libwrap-dev)
38 CAT="development|Wietse Venema's network logger devel files."
39 mkdir -p $fs/usr/include $fs/usr/lib
40 cp -a $src/tcpd.h $fs/usr/include
41 cp -a $src/*.a $fs/usr/lib
42 ;;
43 tcpd)
44 CAT="development|Wietse Venema's network encapsulation files."
45 CONFIG_FILES="/etc/hosts.allow /etc/hosts.deny"
46 DEPENDS="libwrap"
47 mkdir -p $fs/usr/sbin $fs/etc
48 cp -a $src/tcpd $fs/usr/sbin
49 cp -a $src/tcpdchk $fs/usr/sbin
50 cp -a $src/tcpdmatch $fs/usr/sbin
51 cp -a $src/try-from $fs/usr/sbin
52 cp -a $src/safe_finger $fs/usr/sbin
53 echo "ALL : 127.0.0.1, 192.168." > $fs/etc/hosts.allow
54 touch $fs/etc/hosts.deny
55 ;;
56 esac
57 }
59 clean_wok()
60 {
61 rm -rf $PWD/${SOURCE}_${VERSION}
62 }