summaryrefslogtreecommitdiff
path: root/recipes/netkit-base
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/netkit-base
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/netkit-base')
-rw-r--r--recipes/netkit-base/netkit-base-0.17/configure.patch12
-rw-r--r--recipes/netkit-base/netkit-base-0.17/inetd.conf20
-rwxr-xr-xrecipes/netkit-base/netkit-base-0.17/init33
-rw-r--r--recipes/netkit-base/netkit-base-0.17/mconfig.patch20
-rw-r--r--recipes/netkit-base/netkit-base_0.17.bb29
5 files changed, 114 insertions, 0 deletions
diff --git a/recipes/netkit-base/netkit-base-0.17/configure.patch b/recipes/netkit-base/netkit-base-0.17/configure.patch
new file mode 100644
index 0000000000..8bddc21151
--- /dev/null
+++ b/recipes/netkit-base/netkit-base-0.17/configure.patch
@@ -0,0 +1,12 @@
+diff -urNd netkit-base-0.17/configure netkit-base-0.17-new/configure
+--- netkit-base-0.17/configure 2000-07-29 13:00:28.000000000 -0500
++++ netkit-base-0.17-new/configure 2002-10-02 14:06:12.000000000 -0500
+@@ -13,7 +13,7 @@
+ MANMODE='644'
+ SUIDMODE='4755'
+
+-while [ x$1 != x ]; do case $1 in
++while [ x"$1" != x ]; do case $1 in
+
+ --help)
+ cat <<EOF
diff --git a/recipes/netkit-base/netkit-base-0.17/inetd.conf b/recipes/netkit-base/netkit-base-0.17/inetd.conf
new file mode 100644
index 0000000000..b02fe850c9
--- /dev/null
+++ b/recipes/netkit-base/netkit-base-0.17/inetd.conf
@@ -0,0 +1,20 @@
+# /etc/inetd.conf: see inetd(8) for further informations.
+#
+# Internet server configuration database
+#
+# If you want to disable an entry so it isn't touched during
+# package updates just comment it out with a single '#' character.
+#
+# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
+#
+#:INTERNAL: Internal services
+#echo stream tcp nowait root internal
+#echo dgram udp wait root internal
+#chargen stream tcp nowait root internal
+#chargen dgram udp wait root internal
+#discard stream tcp nowait root internal
+#discard dgram udp wait root internal
+#daytime stream tcp nowait root internal
+#daytime dgram udp wait root internal
+#time stream tcp nowait root internal
+#time dgram udp wait root internal
diff --git a/recipes/netkit-base/netkit-base-0.17/init b/recipes/netkit-base/netkit-base-0.17/init
new file mode 100755
index 0000000000..cf50bcd546
--- /dev/null
+++ b/recipes/netkit-base/netkit-base-0.17/init
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# start/stop inetd super server.
+
+if ! [ -x /usr/sbin/inetd ]; then
+ exit 0
+fi
+
+case "$1" in
+ start)
+ echo -n "Starting internet superserver:"
+ echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping internet superserver:"
+ echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null
+ echo "."
+ ;;
+ restart)
+ echo -n "Restarting internet superserver:"
+ echo -n " inetd "
+ killall -HUP inetd
+ echo "."
+ ;;
+ *)
+ echo "Usage: /etc/init.d/inetd {start|stop|restart}"
+ exit 1
+ ;;
+esac
+
+exit 0
+
diff --git a/recipes/netkit-base/netkit-base-0.17/mconfig.patch b/recipes/netkit-base/netkit-base-0.17/mconfig.patch
new file mode 100644
index 0000000000..26f2f2b6b6
--- /dev/null
+++ b/recipes/netkit-base/netkit-base-0.17/mconfig.patch
@@ -0,0 +1,20 @@
+diff -urNd netkit-base-0.17/MCONFIG netkit-base-0.17-new/MCONFIG
+--- netkit-base-0.17/MCONFIG 1969-12-31 18:00:00.000000000 -0600
++++ netkit-base-0.17-new/MCONFIG 2002-10-12 13:33:16.000000000 -0500
+@@ -0,0 +1,16 @@
++BINDIR=/usr/bin
++SBINDIR=/usr/sbin
++MANDIR=/usr/man
++ROOTBINDIR=/bin
++BINMODE=755
++DAEMONMODE=755
++MANMODE=644
++SUIDMODE=4755
++PREFIX=/usr
++EXECPREFIX=/usr
++ROOTPREFIX=
++INSTALLROOT=
++CC=arm-linux-gcc
++CFLAGS=-I/usr/src/coding/projects/userspace/buildroot/output/staging/usr/include -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
++LDFLAGS=
++LIBS=
diff --git a/recipes/netkit-base/netkit-base_0.17.bb b/recipes/netkit-base/netkit-base_0.17.bb
new file mode 100644
index 0000000000..88016ea746
--- /dev/null
+++ b/recipes/netkit-base/netkit-base_0.17.bb
@@ -0,0 +1,29 @@
+SECTION = "base"
+DESCRIPTION = "netkit-base includes the inetd daemon."
+LICENSE = "BSD"
+PR = "r1"
+
+SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-base-${PV}.tar.gz \
+ file://configure.patch;patch=1 \
+ file://mconfig.patch;patch=1 \
+ file://init \
+ file://inetd.conf"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "inetd"
+INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 20 0 1 6 ."
+
+EXTRA_OEMAKE = "-C inetd"
+
+do_compile () {
+ oe_runmake 'CC=${CC}' 'LD=${LD}' all
+}
+
+do_install () {
+ install -d ${D}${sysconfdir}/init.d ${D}${sbindir}
+ install -m 0755 inetd/inetd ${D}${sbindir}/inetd
+ install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/inetd
+ install -m 0644 ${WORKDIR}/inetd.conf ${D}${sysconfdir}
+}
+