Added tcp_wrappers-7.6 template.

--HG--
extra : convert_revision : 29de7113948ea0e6442f206ba3bca521ff9f125d
This commit is contained in:
Juan RP 2009-03-10 10:27:50 +01:00
parent d8e6bb470a
commit bc53eb77b9
10 changed files with 1148 additions and 0 deletions

View File

@ -0,0 +1 @@
tcp_wrappers

1
templates/tcp_wrappers-libs Symbolic link
View File

@ -0,0 +1 @@
tcp_wrappers

View File

@ -0,0 +1,10 @@
--- tcp_wrappers_7.6.orig/scaffold.c 1997-03-21 10:27:24.000000000 -0800
+++ tcp_wrappers_7.6/scaffold.c 2004-05-07 19:44:50.000000000 -0700
@@ -25,7 +25,6 @@
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
#endif
-extern char *malloc();
/* Application-specific. */

View File

@ -0,0 +1,2 @@
abi_depends=7.6
api_depends=${abi_depends}

View File

@ -0,0 +1,22 @@
# Template file for 'tcp_wrappers-devel'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run tcp_wrappers-libs
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
mkdir -p ${destdir}/usr/lib
mkdir -p ${destdir}/usr/share/man/man3
mv ${origdir}/usr/share/man/man3 ${destdir}/usr/share/man
mv ${origdir}/usr/include ${destdir}/usr
mv ${origdir}/usr/lib/*.a ${destdir}/usr/lib
mv ${origdir}/usr/lib/*.so ${destdir}/usr/lib
}

View File

@ -0,0 +1,10 @@
#
# hosts.allow This file contains access rules which are used to
# allow or deny connections to network services that
# either use the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#

View File

@ -0,0 +1,18 @@
#
# hosts.deny This file contains access rules which are used to
# deny connections to network services that either use
# the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# The rules in this file can also be set up in
# /etc/hosts.allow with a 'deny' option instead.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
#

View File

@ -0,0 +1,22 @@
# Template file for 'tcp_wrappers-libs'.
#
short_desc="${short_desc} (shared libraries)"
long_desc="${long_desc}
This package contains the ${pkgname} shared libraries."
conf_files="/etc/hosts.allow /etc/hosts.deny"
Add_dependency run glibc
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
mkdir -p ${destdir}/usr/lib
mkdir -p ${destdir}/usr/share/man
mv ${origdir}/usr/lib/lib*.so.* ${destdir}/usr/lib
mv ${origdir}/etc ${destdir}
mv ${origdir}/usr/share/man/man5 ${destdir}/usr/share/man
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
# Template file for 'tcp_wrappers'
pkgname=tcp_wrappers
sourcepkg=$pkgname
version=7.6
wrksrc="${pkgname}_${version}"
patch_files="shared_lib_plus_plus-1.diff"
patch_args="-Np1"
distfiles="ftp://ftp.porcupine.org/pub/security/${pkgname}_${version}.tar.gz"
build_style=gnu_makefile
make_build_target="REAL_DAEMON_DIR=/usr/sbin STYLE=-DSYS_ERRLIST_DEFINED linux"
make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version install"
short_desc="A security tool which acts as a wrapper for TCP daemons"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=9543d7adedf78a6de0b221ccbbd1952e08b5138717f4ade814039bb489a4315d
long_desc="
The $pkgname package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, FTP, telnet,
rlogin, rsh, exec, tftp, talk and other network services."
subpackages="devel libs"
Add_dependency run glibc
Add_dependency run tcp_wrappers-libs
pre_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
install -d ${destdir}/usr/lib
install -d ${destdir}/usr/sbin
install -d ${destdir}/usr/include
for f in 3 5 8; do
install -d ${destdir}/usr/share/man/man${f}
done
install -D -m644 ${FILESDIR}/hosts.allow ${destdir}/etc/hosts.allow
install -m644 ${FILESDIR}/hosts.deny ${destdir}/etc/hosts.deny
}