Version bump.
authorDaniel Ahlberg <aliz@gentoo.org>
Thu, 24 Oct 2002 15:03:54 +0000 (15:03 +0000)
committerDaniel Ahlberg <aliz@gentoo.org>
Thu, 24 Oct 2002 15:03:54 +0000 (15:03 +0000)
15 files changed:
sys-apps/xinetd/ChangeLog
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/README.services [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/chargen-tcp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/chargen-udp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/daytime-tcp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/daytime-udp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/echo-tcp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/echo-udp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/time-tcp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/etc.xinetd.d/time-udp [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/xinetd.conf [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/xinetd.confd [new file with mode: 0644]
sys-apps/xinetd/files/2.3.9/xinetd.rc6 [new file with mode: 0644]
sys-apps/xinetd/files/digest-xinetd-2.3.9 [new file with mode: 0644]
sys-apps/xinetd/xinetd-2.3.9.ebuild [new file with mode: 0644]

index c01c42481c772a341ff64fae640c45a4ee2ba7a3..34e238da8fb05f85f6218c2db3627a9ea5964ed5 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-apps/xinetd
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/ChangeLog,v 1.10 2002/10/14 11:19:08 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/ChangeLog,v 1.11 2002/10/24 15:03:54 aliz Exp $
+
+*xinetd-2.3.9 (24 Oct 2002)
+
+  24 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> :
+  Version bump. Ebuild contributed by Maurizio Disimino <kevin@aptbasilicata.it> in #7792.
 
 *xinetd-2.3.7 (14 Aug 2002)
 
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/README.services b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/README.services
new file mode 100644 (file)
index 0000000..ba35afc
--- /dev/null
@@ -0,0 +1,18 @@
+#
+# Extract from man 5 xinetd.conf:
+#
+Every file inside this directory, excluding files with names
+containing a dot ('.') or end-ing with a tilde ('~'), will be
+parsed as xinetd configuration files.  The files will be parsed
+in alphabetical order according to the C locale.  This allows
+you to specify services one per file.
+
+
+#
+# Considerations:
+#
+You can make packages install an example service configuration
+file into this directory to easily help users with integrating
+it with xinetd.  It would be nice if your package included the
+"disable = yes" directive by default.  Its probably wise to
+have the user decide upon enabling services.
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/chargen-tcp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/chargen-tcp
new file mode 100644 (file)
index 0000000..04b0fbc
--- /dev/null
@@ -0,0 +1,13 @@
+# default: off
+# description: A chargen server. This is the tcp version.
+
+service chargen
+{
+       type        = INTERNAL
+       id          = chargen-stream
+       socket_type = stream
+       protocol    = tcp
+       user        = root
+       wait        = no
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/chargen-udp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/chargen-udp
new file mode 100644 (file)
index 0000000..462ba78
--- /dev/null
@@ -0,0 +1,14 @@
+# default: off
+# description: A chargen server. This is the udp version.
+
+service chargen
+{
+       type        = INTERNAL UNLISTED
+       id          = chargen-dgram
+       socket_type = dgram
+       protocol    = udp
+       user        = root
+       wait        = yes
+       port        = 19
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/daytime-tcp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/daytime-tcp
new file mode 100644 (file)
index 0000000..2c0cbfe
--- /dev/null
@@ -0,0 +1,13 @@
+# default: off
+# description: A daytime server. This is the tcp version.
+
+service daytime
+{
+       type        = INTERNAL
+       id          = daytime-stream
+       socket_type = stream
+       protocol    = tcp
+       user        = root
+       wait        = no
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/daytime-udp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/daytime-udp
new file mode 100644 (file)
index 0000000..f007611
--- /dev/null
@@ -0,0 +1,14 @@
+# default: off
+# description: A daytime server. This is the udp version.
+
+service daytime
+{
+       type        = INTERNAL UNLISTED
+       id          = daytime-dgram
+       socket_type = dgram
+       protocol    = udp
+       user        = root
+       wait        = yes
+       port        = 13
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/echo-tcp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/echo-tcp
new file mode 100644 (file)
index 0000000..73d13e7
--- /dev/null
@@ -0,0 +1,13 @@
+# default: off
+# description: An echo server. This is the tcp version.
+
+service echo
+{
+       type        = INTERNAL
+       id          = echo-stream
+       socket_type = stream
+       protocol    = tcp
+       user        = root
+       wait        = no
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/echo-udp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/echo-udp
new file mode 100644 (file)
index 0000000..2c29096
--- /dev/null
@@ -0,0 +1,14 @@
+# default: off
+# description: An echo server. This is the udp version.
+
+service echo
+{
+       type        = INTERNAL UNLISTED
+       id          = echo-dgram
+       socket_type = dgram
+       protocol    = udp
+       user        = root
+       wait        = yes
+       port        = 7
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/time-tcp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/time-tcp
new file mode 100644 (file)
index 0000000..76e069e
--- /dev/null
@@ -0,0 +1,13 @@
+# default: off
+# description: An RFC 868 time server. This is the tcp version, which is used by rdate.
+
+service time
+{
+       type        = INTERNAL
+       id          = time-stream
+       socket_type = stream
+       protocol    = tcp
+       user        = root
+       wait        = no
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/time-udp b/sys-apps/xinetd/files/2.3.9/etc.xinetd.d/time-udp
new file mode 100644 (file)
index 0000000..1124655
--- /dev/null
@@ -0,0 +1,14 @@
+# default: off
+# description: An RFC 868 time server. This is the udp version.
+
+service time
+{
+       type        = INTERNAL UNLISTED
+       id          = time-dgram
+       socket_type = dgram
+       protocol    = udp
+       user        = root
+       wait        = yes
+       port        = 37
+       disable     = yes
+}
diff --git a/sys-apps/xinetd/files/2.3.9/xinetd.conf b/sys-apps/xinetd/files/2.3.9/xinetd.conf
new file mode 100644 (file)
index 0000000..31ca500
--- /dev/null
@@ -0,0 +1,13 @@
+# Sample configuration file for xinetd
+
+defaults
+{
+       only_from      = localhost
+       instances      = 60
+       log_type       = SYSLOG authpriv info
+       log_on_success = HOST PID
+       log_on_failure = HOST
+       cps            = 25 30
+}
+
+includedir /etc/xinetd.d
diff --git a/sys-apps/xinetd/files/2.3.9/xinetd.confd b/sys-apps/xinetd/files/2.3.9/xinetd.confd
new file mode 100644 (file)
index 0000000..dd6da74
--- /dev/null
@@ -0,0 +1,3 @@
+# Config file for /etc/init.d/xinetd
+
+XINETD_OPTS="-stayalive -reuse"
diff --git a/sys-apps/xinetd/files/2.3.9/xinetd.rc6 b/sys-apps/xinetd/files/2.3.9/xinetd.rc6
new file mode 100644 (file)
index 0000000..d962710
--- /dev/null
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/files/2.3.9/xinetd.rc6,v 1.1 2002/10/24 15:03:54 aliz Exp $
+
+opts="start stop reload restart dump check"
+
+depend() {
+       need net
+}
+
+start() {
+       ebegin "Starting xinetd"
+       start-stop-daemon --start --quiet --exec /usr/sbin/xinetd \
+               -- -pidfile /var/run/xinetd.pid ${XINETD_OPTS}
+       eend $? 
+}
+
+stop() {
+       ebegin "Stopping xinetd"
+       start-stop-daemon --stop --quiet --pidfile /var/run/xinetd.pid
+       eend $?
+}
+
+reload(){
+       ebegin "Reloading configuration"
+       killall -HUP xinetd &>/dev/null
+       eend $?
+}
+
+dump(){
+       ebegin "Dumping configuration"
+       killall -USR1 xinetd &>/dev/null
+       eend $?
+}
+
+check(){
+       ebegin "Performing Consistency Check"
+       /bin/kill -s IOT xinetd &>/dev/null
+       eend $?
+}
diff --git a/sys-apps/xinetd/files/digest-xinetd-2.3.9 b/sys-apps/xinetd/files/digest-xinetd-2.3.9
new file mode 100644 (file)
index 0000000..8ce91d6
--- /dev/null
@@ -0,0 +1 @@
+MD5 d879f6e19468f92abecf2cec7e21e246 xinetd-2.3.9.tar.gz 285611
diff --git a/sys-apps/xinetd/xinetd-2.3.9.ebuild b/sys-apps/xinetd/xinetd-2.3.9.ebuild
new file mode 100644 (file)
index 0000000..cc2b7b8
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/xinetd-2.3.9.ebuild,v 1.1 2002/10/24 15:03:54 aliz Exp $
+
+DESCRIPTION="Xinetd is a powerful replacement for inetd, with advanced features"
+HOMEPAGE="http://www.xinetd.org"
+KEYWORDS="~x86 ~ppc ~sparc64"
+SLOT="0"
+LICENSE="BSD"
+SRC_URI="http://www.xinetd.org/${P}.tar.gz"
+
+DEPEND="virtual/glibc 
+       tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )"
+RDEPEND="${DEPEND} sys-devel/perl"
+
+src_compile() {
+       local myconf
+       use tcpd && myconf="--with-libwrap"
+
+       # the --with-inet6 is now obsolete. Services will default to IPv4 unless configured otherwise.
+
+       econf --with-loadavg ${myconf}
+
+       # Fix CFLAGS
+       sed "/^CFLAGS/s/+=/=/" < Makefile > makefile
+       mv --force makefile Makefile
+
+       emake || die "Failed to compile"
+}
+
+src_install() {
+       into /usr ; dosbin xinetd/xinetd xinetd/itox
+       exeinto /usr/sbin ; doexe xinetd/xconv.pl
+
+       newman xinetd/xinetd.conf.man xinetd.conf.5
+       newman xinetd/xinetd.log.man xinetd.log.8
+       newman xinetd/xinetd.man xinetd.8
+       doman xinetd/itox.8
+       
+       newdoc xinetd/sample.conf xinetd.conf.dist.sample
+       newdoc ${FILESDIR}/${PV}/xinetd.conf xinetd.conf.default
+       dodoc AUDIT INSTALL README TODO xinetd/{CHANGELOG,COPYRIGHT}
+
+       insinto /etc/xinetd.d ; doins ${FILESDIR}/${PV}/etc.xinetd.d/*
+       exeinto /etc/init.d ; newexe ${FILESDIR}/${PV}/xinetd.rc6 xinetd
+       insinto /etc/conf.d ; newins ${FILESDIR}/${PV}/xinetd.confd xinetd
+       insinto /etc ; doins ${FILESDIR}/${PV}/xinetd.conf
+}
+
+pkg_postinst(){
+       einfo "This ebuild introduces the /etc/xinetd.d includedir with a default"
+       einfo "/etc/xinetd.conf file. Check your config files if you're upgrading from an older"
+       einfo "ebuild version. You should browse /etc/xinetd.conf and the files in /etc/xinetd.d."
+       ewarn
+       ewarn "PLEASE NOTE: Everything is off by default with access restricted to localhost."
+       ewarn
+       einfo "Check /etc/conf.d/xinetd for the startup options."
+       echo ""
+}