wok-next view libwrap/receipt @ rev 20718
paulstretch: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 15:09:21 2018 +0300 (2018-05-27) |
parents | c4e53a39395a |
children | ca0d3fe02f15 |
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"
14 SPLIT="libwrap-dev tcpd"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i -e "s,^extern char \*malloc();,/* & */," scaffold.c
21 make REAL_DAEMON_DIR=/usr/sbin STYLE=-DPROCESS_OPTIONS linux
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 case $PACKAGE in
28 libwrap)
29 mkdir -p $fs/usr/lib
30 cp -a $src/shared/*.so* $fs/usr/lib
31 ;;
32 libwrap-dev)
33 mkdir -p $fs/usr/include $fs/usr/lib
34 cp -a $src/tcpd.h $fs/usr/include
35 cp -a $src/*.a $fs/usr/lib
36 ;;
37 tcpd)
38 CAT="development|network encapsulation files"
39 CONFIG_FILES="/etc/hosts.allow /etc/hosts.deny"
40 DEPENDS="libwrap"
41 mkdir -p $fs/usr/sbin $fs/etc
42 cp -a $src/tcpd $fs/usr/sbin
43 cp -a $src/tcpdchk $fs/usr/sbin
44 cp -a $src/tcpdmatch $fs/usr/sbin
45 cp -a $src/try-from $fs/usr/sbin
46 cp -a $src/safe_finger $fs/usr/sbin
47 echo "ALL : 127.0.0.1, 192.168." > $fs/etc/hosts.allow
48 touch $fs/etc/hosts.deny
49 ;;
50 esac
51 }