# Description: Monitors and Controls incoming TCP connections # URL: ftp://ftp.porcupine.org/pub/security/index.html # Maintainer: CRUX System Team, core-ports at crux dot nu name=tcp_wrappers version=7.6 release=6 source=(ftp://ftp.porcupine.org/pub/security/tcp_wrappers_$version.tar.gz \ http://www.imasy.org/~ume/ipv6/tcp_wrappers_7.6-ipv6-1.14.diff.gz \ hosts.allow hosts.deny try-from.8 safe_finger.8 $name-$version.patch) build() { cd tcp_wrappers_$version zcat ../tcp_wrappers_7.6-ipv6-1.14.diff.gz | patch -p2 patch -p1 < ../$name-$version.patch make REAL_DAEMON_DIR=/usr/sbin STYLE="-DSYS_ERRLIST_DEFINED -DPROCESS_OPTIONS" linux mkdir -p $PKG/usr/{sbin,lib,include} $PKG/etc $PKG/usr/share/man/{man3,man5,man8} cp safe_finger tcpd tcpdchk tcpdmatch try-from $PKG/usr/sbin cp tcpd.h $PKG/usr/include cp libwrap.a $PKG/usr/lib cp hosts_access.3 $PKG/usr/share/man/man3 cp hosts_access.5 hosts_options.5 $PKG/usr/share/man/man5 cp ../hosts.{deny,allow} $PKG/etc cp ../try-from.8 ../safe_finger.8 tcpd.8 tcpdchk.8 tcpdmatch.8 $PKG/usr/share/man/man8 chmod -R +w $PKG ln -sf hosts_access.3.gz $PKG/usr/share/man/man3/hosts_ctl.3.gz ln -sf hosts_access.3.gz $PKG/usr/share/man/man3/request_init.3.gz ln -sf hosts_access.3.gz $PKG/usr/share/man/man3/request_set.3.gz }