CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / tcp_wrappers / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Monitors and Controls incoming TCP connections
2# URL: ftp://ftp.porcupine.org/pub/security/index.html
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Ach Maintainer: CRUX ARM System Team
5# Depends on:
6
7name=tcp_wrappers
8version=7.6
9release=6
10source=(ftp://ftp.porcupine.org/pub/security/tcp_wrappers_$version.tar.gz \
11 http://www.imasy.org/~ume/ipv6/tcp_wrappers_7.6-ipv6-1.14.diff.gz \
12 hosts.allow hosts.deny try-from.8 safe_finger.8 $name-$version.patch)
13
14build() {
15 cd tcp_wrappers_$version
16 zcat ../tcp_wrappers_7.6-ipv6-1.14.diff.gz | patch -p2
17 patch -p1 < ../$name-$version.patch
18 make REAL_DAEMON_DIR=/usr/sbin STYLE="-DSYS_ERRLIST_DEFINED -DPROCESS_OPTIONS" linux
19 mkdir -p $PKG/usr/{sbin,lib,include} $PKG/etc $PKG/usr/man/{man3,man5,man8}
20 cp safe_finger tcpd tcpdchk tcpdmatch try-from $PKG/usr/sbin
21 cp tcpd.h $PKG/usr/include
22 cp libwrap.a $PKG/usr/lib
23 cp hosts_access.3 $PKG/usr/man/man3
24 cp hosts_access.5 hosts_options.5 $PKG/usr/man/man5
25 cp ../hosts.{deny,allow} $PKG/etc
26 cp ../try-from.8 ../safe_finger.8 tcpd.8 tcpdchk.8 tcpdmatch.8 $PKG/usr/man/man8
27 chmod -R +w $PKG
28 ln -sf hosts_access.3.gz $PKG/usr/man/man3/hosts_ctl.3.gz
29 ln -sf hosts_access.3.gz $PKG/usr/man/man3/request_init.3.gz
30 ln -sf hosts_access.3.gz $PKG/usr/man/man3/request_set.3.gz
31}