# 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)
--- /dev/null
+#
+# 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.
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
+}
--- /dev/null
+# 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
--- /dev/null
+# Config file for /etc/init.d/xinetd
+
+XINETD_OPTS="-stayalive -reuse"
--- /dev/null
+#!/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 $?
+}
--- /dev/null
+MD5 d879f6e19468f92abecf2cec7e21e246 xinetd-2.3.9.tar.gz 285611
--- /dev/null
+# 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 ""
+}