wok-next view libwrap/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | ca0d3fe02f15 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libwrap"
4 VERSION="7.6.24"
5 CATEGORY="system-tools"
6 SHORT_DESC="Monitors and Controls incoming TCP connections"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
11 TARBALL="tcp_wrappers_${VERSION%.*}.tar.gz"
12 WGET_URL="ftp://ftp.porcupine.org/pub/security/$TARBALL"
14 TARBALL2="tcp-wrappers_${VERSION%.*}.q-${VERSION##*.}.debian.tar.xz"
15 WGET_URL2="http://http.debian.net/debian/pool/main/t/tcp-wrappers/$TARBALL2"
17 SPLIT="$PACKAGE-dev tcpd"
19 compile_rules() {
20 [ -e "$SRC/$TARBALL2" ] || wget -P $SRC $WGET_URL2
21 tar -xf $SRC/$TARBALL2
23 for patch in $(cat debian/patches/series); do
24 echo "Applying patch $patch"
25 patch -Np1 -i debian/patches/$patch | sed 's|^| |'
26 done
27 for patch in tcp-wrappers-headers.patch tcp-wrappers-redhat-bug11881.patch \
28 slitaz.patch; do
29 echo "Applying patch $patch"
30 patch -Np1 -i $stuff/$patch | sed 's|^| |'
31 done
32 echo
34 make \
35 COPTS="$CFLAGS" \
36 LDOPTS="$LDFLAGS" \
37 REAL_DAEMON_DIR='/usr/bin' \
38 STYLE='-DPROCESS_OPTIONS' \
39 linux || return 1
41 # === install ===
42 # dirs
43 install -d $install/etc/ $install/usr/include/ $install/usr/bin/ $install/usr/lib/
44 # bins
45 install -m755 safe_finger tcpd tcpdchk tcpdmatch try-from -t $install/usr/bin/
46 # libs
47 install -m755 shared/libwrap.so.0.${VERSION%.*} -t $install/usr/lib/
48 ln -s libwrap.so.0.${VERSION%.*} $install/usr/lib/libwrap.so.0
49 ln -s libwrap.so.0 $install/usr/lib/libwrap.so
50 # headers
51 install -m644 tcpd.h -t $install/usr/include/
52 # configs
53 install -m644 $stuff/hosts.* -t $install/etc/
54 # mans & docs
55 cook_pick_manpages *.3 *.5 *.8
56 cook_pick_docs README
57 }
59 genpkg_rules() {
60 case $PACKAGE in
61 libwrap)
62 copy *.so*
63 ;;
64 *-dev)
65 copy @dev
66 ;;
67 tcpd)
68 copy @std @rm
69 CAT="development|network encapsulation files"
70 CONFIG_FILES="/etc/hosts.allow /etc/hosts.deny"
71 DEPENDS="libwrap"
72 ;;
73 esac
74 }