summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2005-07-11 19:09:47 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-11 19:09:47 +0000
commit7d7e4f50f9d5f5fa6109aa8d258491e81e2fd6df (patch)
tree96c51f3c8f13aad81c3d2ca8e7eeda36edc624e7 /packages
parent7e6e4f142a63e2995bdc097b8b0017957915c06e (diff)
parentd3dbc44d431f0e2d4fc0bcc838ba3fe29db1dd7f (diff)
merge of 7430926321bc8eda58a2626237cfc7553ed88d97
and dd3df045e5a88aee7e517c086ff8c17774356ba4
Diffstat (limited to 'packages')
-rw-r--r--packages/xinetd/.mtn2git_empty0
-rw-r--r--packages/xinetd/xinetd/.mtn2git_empty0
-rw-r--r--packages/xinetd/xinetd/xinetd.conf11
-rw-r--r--packages/xinetd/xinetd/xinetd.init57
-rw-r--r--packages/xinetd/xinetd_2.3.13.bb36
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"
+
+}