New package: xinetd-2.3.15.

This commit is contained in:
Juan RP 2014-05-04 12:24:47 +02:00
parent f02e0c6f40
commit ee1051c9c9
5 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,10 @@
service servers
{
type = INTERNAL UNLISTED
port = 9099
socket_type = stream
protocol = tcp
wait = no
disable = yes
only_from = 127.0.0.1
}

View file

@ -0,0 +1,10 @@
service services
{
type = INTERNAL UNLISTED
port = 9098
socket_type = stream
protocol = tcp
wait = no
disable = yes
only_from = 127.0.0.1
}

View file

@ -0,0 +1,14 @@
#
# /etc/xinetd.conf
#
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d

View file

@ -0,0 +1,11 @@
--- xinetd/builtins.c
+++ xinetd/builtins.c
@@ -695,7 +695,7 @@ static void tcpmux_handler( const struct server *serp )
if( SC_IS_INTERNAL( scp ) ) {
SC_INTERNAL(scp, nserp);
} else {
- exec_server(nserp);
+ child_process(nserp);
}
}

23
srcpkgs/xinetd/template Normal file
View file

@ -0,0 +1,23 @@
# Template file for 'xinetd'
pkgname=xinetd
version=2.3.15
revision=1
build_style=gnu-configure
configure_args="--without-libwrap"
short_desc="A secure replacement for inetd"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://www.xinetd.org/"
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/xinetd/xinetd-${version}.tar.gz/77358478fd58efa6366accae99b8b04c/xinetd-${version}.tar.gz"
checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
do_install() {
make prefix=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man install
vinstall ${FILESDIR}/xinetd.conf 644 etc
vinstall ${FILESDIR}/servers 644 etc/xinetd.d
vinstall ${FILESDIR}/services 644 etc/xinetd.d
vinstall COPYRIGHT 644 usr/share/licenses/$pkgname
}