wok-next view libwrap/receipt @ rev 20430
fake-sane: fix copy-paste typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jan 24 13:29:11 2018 +0200 (2018-01-24) |
parents | 31b0fa204936 |
children | c4e53a39395a |
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-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 mkdir -p $fs/usr/include $fs/usr/lib
39 cp -a $src/tcpd.h $fs/usr/include
40 cp -a $src/*.a $fs/usr/lib
41 ;;
42 tcpd)
43 CAT="development|network encapsulation files"
44 CONFIG_FILES="/etc/hosts.allow /etc/hosts.deny"
45 DEPENDS="libwrap"
46 mkdir -p $fs/usr/sbin $fs/etc
47 cp -a $src/tcpd $fs/usr/sbin
48 cp -a $src/tcpdchk $fs/usr/sbin
49 cp -a $src/tcpdmatch $fs/usr/sbin
50 cp -a $src/try-from $fs/usr/sbin
51 cp -a $src/safe_finger $fs/usr/sbin
52 echo "ALL : 127.0.0.1, 192.168." > $fs/etc/hosts.allow
53 touch $fs/etc/hosts.deny
54 ;;
55 esac
56 }