From ee1051c9c9f9d9730b78b19418cd92a82e7faabb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 4 May 2014 12:24:47 +0200 Subject: [PATCH] New package: xinetd-2.3.15. --- srcpkgs/xinetd/files/servers | 10 ++++++++ srcpkgs/xinetd/files/services | 10 ++++++++ srcpkgs/xinetd/files/xinetd.conf | 14 +++++++++++ .../xinetd/patches/fix-CVE-2013-4342.patch | 11 +++++++++ srcpkgs/xinetd/template | 23 +++++++++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 srcpkgs/xinetd/files/servers create mode 100644 srcpkgs/xinetd/files/services create mode 100644 srcpkgs/xinetd/files/xinetd.conf create mode 100644 srcpkgs/xinetd/patches/fix-CVE-2013-4342.patch create mode 100644 srcpkgs/xinetd/template diff --git a/srcpkgs/xinetd/files/servers b/srcpkgs/xinetd/files/servers new file mode 100644 index 00000000000..f064c8d7a79 --- /dev/null +++ b/srcpkgs/xinetd/files/servers @@ -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 +} diff --git a/srcpkgs/xinetd/files/services b/srcpkgs/xinetd/files/services new file mode 100644 index 00000000000..4ea304c4f1b --- /dev/null +++ b/srcpkgs/xinetd/files/services @@ -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 +} diff --git a/srcpkgs/xinetd/files/xinetd.conf b/srcpkgs/xinetd/files/xinetd.conf new file mode 100644 index 00000000000..b15d9f6494c --- /dev/null +++ b/srcpkgs/xinetd/files/xinetd.conf @@ -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 diff --git a/srcpkgs/xinetd/patches/fix-CVE-2013-4342.patch b/srcpkgs/xinetd/patches/fix-CVE-2013-4342.patch new file mode 100644 index 00000000000..46fce7bb7ba --- /dev/null +++ b/srcpkgs/xinetd/patches/fix-CVE-2013-4342.patch @@ -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); + } + } + diff --git a/srcpkgs/xinetd/template b/srcpkgs/xinetd/template new file mode 100644 index 00000000000..9267b3e060f --- /dev/null +++ b/srcpkgs/xinetd/template @@ -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 " +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 +}