55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
# Template file for 'tcp_wrappers'
|
|
pkgname=tcp_wrappers
|
|
version=7.6
|
|
revision=5
|
|
wrksrc="${pkgname}_${version}"
|
|
build_style=gnu-makefile
|
|
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"
|
|
homepage="ftp://ftp.porcupine.org/pub/security/index.html"
|
|
license="Custom"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
distfiles="ftp://ftp.porcupine.org/pub/security/${pkgname}_${version}.tar.gz"
|
|
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."
|
|
|
|
pre_install() {
|
|
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
|
|
sed -i -e "s|-o root -g root||g" ${wrksrc}/Makefile
|
|
}
|
|
|
|
tcp_wrappers-devel_package() {
|
|
depends="tcp_wrappers-libs>=${version}"
|
|
short_desc="${short_desc} -- development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|
|
|
|
tcp_wrappers-libs_package() {
|
|
short_desc="${short_desc} -- shared libraries"
|
|
conf_files="/etc/hosts.allow /etc/hosts.deny"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so*"
|
|
vmove usr/share/man/man5
|
|
vmove etc
|
|
}
|
|
}
|
|
|
|
tcp_wrappers_package() {
|
|
pkg_install() {
|
|
vmove usr
|
|
}
|
|
}
|