diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2005-07-12 00:15:55 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-12 00:15:55 +0000 |
commit | d3dbc44d431f0e2d4fc0bcc838ba3fe29db1dd7f (patch) | |
tree | 6eb2052a78c8be34e00015b774ef931fe13fe895 /packages/xinetd | |
parent | 941ea82adb8205b96a935f0b8c1f85db99c8712c (diff) |
Added xinetd package (DaKa2)
Diffstat (limited to 'packages/xinetd')
-rw-r--r-- | packages/xinetd/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/xinetd/xinetd/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/xinetd/xinetd/xinetd.conf | 11 | ||||
-rw-r--r-- | packages/xinetd/xinetd/xinetd.init | 57 | ||||
-rw-r--r-- | packages/xinetd/xinetd_2.3.13.bb | 36 |
5 files changed, 104 insertions, 0 deletions
diff --git a/packages/xinetd/.mtn2git_empty b/packages/xinetd/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/xinetd/.mtn2git_empty diff --git a/packages/xinetd/xinetd/.mtn2git_empty b/packages/xinetd/xinetd/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/xinetd/xinetd/.mtn2git_empty diff --git a/packages/xinetd/xinetd/xinetd.conf b/packages/xinetd/xinetd/xinetd.conf new file mode 100644 index 0000000000..9e6ea2577e --- /dev/null +++ b/packages/xinetd/xinetd/xinetd.conf @@ -0,0 +1,11 @@ +# Simple configuration file for xinetd +# +# Some defaults, and include /etc/xinetd.d/ + +defaults +{ + + +} + +includedir /etc/xinetd.d diff --git a/packages/xinetd/xinetd/xinetd.init b/packages/xinetd/xinetd/xinetd.init new file mode 100644 index 0000000000..2a84131adc --- /dev/null +++ b/packages/xinetd/xinetd/xinetd.init @@ -0,0 +1,57 @@ +#!/bin/sh +# +# /etc/init.d/xinetd -- script to start and stop xinetd. + +if test -f /etc/default/xinetd; then + . /etc/default/xinetd +fi + + +test -x /usr/sbin/xinetd || exit 0 + +checkportmap () { + if grep "^[^ *#]" /etc/xinetd.conf | grep -q 'rpc/'; then + if ! rpcinfo -u localhost portmapper >/dev/null 2>&1; then + echo + echo "WARNING: portmapper inactive - RPC services unavailable!" + echo " Commenting out or removing the RPC services from" + echo " the /etc/xinetd.conf file will remove this message." + echo + fi + fi +} + +case "$1" in + start) + checkportmap + echo -n "Starting internet superserver: xinetd" + start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -pidfile /var/run/xinetd.pid $XINETD_OPTS + echo "." + ;; + stop) + echo -n "Stopping internet superserver: xinetd" + start-stop-daemon --stop --signal 3 --quiet --oknodo --exec /usr/sbin/xinetd + echo "." + ;; + reload) + echo -n "Reloading internet superserver configuration: xinetd" + start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd + echo "." + ;; + force-reload) + echo "$0 force-reload: Force Reload is deprecated" + echo -n "Forcefully reloading internet superserver configuration: xinetd" + start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd + echo "." + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: /etc/init.d/xinetd {start|stop|reload|force-reload|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/packages/xinetd/xinetd_2.3.13.bb b/packages/xinetd/xinetd_2.3.13.bb new file mode 100644 index 0000000000..07a517b029 --- /dev/null +++ b/packages/xinetd/xinetd_2.3.13.bb @@ -0,0 +1,36 @@ +DEPENDS = "" +DESCRIPTION = "Highly configurable, modular and secure inetd" +MAINTAINER = "NSLU2 Linux <nslu2-linux@yahoogroups.com>" +PR="r1" + +SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \ + file://xinetd.init \ + file://xinetd.conf \ + " + +EXTRA_OECONF="--disable-nls" + +inherit autotools update-rc.d + +INITSCRIPT_NAME = "xinetd" +INITSCRIPT_PARAMS = "defaults" + +do_configure() { + # Looks like configure.in is broken, so we are skipping + # rebuilding configure and are just using the shipped one + oe_runconf +} + +do_install() { + # Same here, the Makefile does some really stupid things, + # but since we only want two files why not override + # do_install from autotools and doing it ourselfs? + install -d "${D}/usr/sbin" + install -d "${D}/etc/init.d" + install -d "${D}/etc/xinetd.d" + install -m 644 "${WORKDIR}/xinetd.conf" "${D}/etc" + install -m 755 "${WORKDIR}/xinetd.init" "${D}/etc/init.d/xinetd" + install -m 755 "${S}/xinetd/xinetd" "${D}/usr/sbin" + install -m 755 "${S}/xinetd/itox" "${D}/usr/sbin" + +} |