2009-03-10 09:27:50 +00:00
|
|
|
# Template file for 'tcp_wrappers'
|
|
|
|
pkgname=tcp_wrappers
|
|
|
|
version=7.6
|
2013-04-14 13:09:59 +00:00
|
|
|
revision=5
|
2009-03-10 09:27:50 +00:00
|
|
|
wrksrc="${pkgname}_${version}"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-makefile
|
2009-03-10 09:27:50 +00:00
|
|
|
make_build_target="REAL_DAEMON_DIR=/usr/sbin STYLE=-DSYS_ERRLIST_DEFINED linux"
|
|
|
|
short_desc="A security tool which acts as a wrapper for TCP daemons"
|
2013-03-31 07:52:09 +00:00
|
|
|
homepage="ftp://ftp.porcupine.org/pub/security/index.html"
|
|
|
|
license="Custom"
|
2009-03-10 09:27:50 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-04-14 13:09:59 +00:00
|
|
|
distfiles="ftp://ftp.porcupine.org/pub/security/${pkgname}_${version}.tar.gz"
|
2009-03-10 09:27:50 +00:00
|
|
|
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."
|
|
|
|
|
2013-04-14 13:09:59 +00:00
|
|
|
pre_install() {
|
2009-03-11 05:31:56 +00:00
|
|
|
install -d ${DESTDIR}/usr/lib
|
|
|
|
install -d ${DESTDIR}/usr/sbin
|
|
|
|
install -d ${DESTDIR}/usr/include
|
2009-03-10 09:27:50 +00:00
|
|
|
for f in 3 5 8; do
|
2009-03-11 05:31:56 +00:00
|
|
|
install -d ${DESTDIR}/usr/share/man/man${f}
|
2009-03-10 09:27:50 +00:00
|
|
|
done
|
2009-03-11 05:31:56 +00:00
|
|
|
install -D -m644 ${FILESDIR}/hosts.allow ${DESTDIR}/etc/hosts.allow
|
|
|
|
install -m644 ${FILESDIR}/hosts.deny ${DESTDIR}/etc/hosts.deny
|
2010-04-22 13:18:59 +00:00
|
|
|
sed -i -e "s|-o root -g root||g" ${wrksrc}/Makefile
|
2009-03-10 09:27:50 +00:00
|
|
|
}
|
2013-04-14 13:09:59 +00:00
|
|
|
|
|
|
|
tcp_wrappers-devel_package() {
|
|
|
|
depends="tcp_wrappers-libs>=${version}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 13:09:59 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/share/man/man3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tcp_wrappers-libs_package() {
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-14 13:09:59 +00:00
|
|
|
conf_files="/etc/hosts.allow /etc/hosts.deny"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
vmove usr/share/man/man5
|
|
|
|
vmove etc
|
|
|
|
}
|
|
|
|
}
|