All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] initscript-telnetd: port from old arago overlay
@ 2012-02-02 15:19 Chase Maupin
  2012-02-06  5:01 ` Denys Dmytriyenko
  0 siblings, 1 reply; 2+ messages in thread
From: Chase Maupin @ 2012-02-02 15:19 UTC (permalink / raw)
  To: meta-arago

* Ported the initscript for telnetd from the old arago overlay
  until this can be convered to a systemd script.
* telnet is still used and supported by our SDKs
* Modified the S variable to make the LICENSE_FILE_CHKSUM setting
  easier and used ${S} in the do_install function.
* Added the MIT license to the init file for checksum support

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
---
 .../initscript-telnetd/initscript-telnetd.bb       |   18 +++++++++
 .../initscript-telnetd/initscript-telnetd/telnetd  |   40 ++++++++++++++++++++
 2 files changed, 58 insertions(+), 0 deletions(-)
 create mode 100644 meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd.bb
 create mode 100644 meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd/telnetd

diff --git a/meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd.bb b/meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd.bb
new file mode 100644
index 0000000..e987092
--- /dev/null
+++ b/meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd.bb
@@ -0,0 +1,18 @@
+DESCRIPTION = "Initscripts for telnetd"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://telnetd;beginline=2;endline=18;md5=d134d0d385c53f9201a270fef8448f29"
+PR ="r0"
+
+SRC_URI = "file://telnetd"
+
+S = ${WORKDIR}
+
+INITSCRIPT_NAME = "telnetd"
+INITSCRIPT_PARAMS = "defaults 10"
+
+inherit update-rc.d
+
+do_install () {
+	install -d ${D}${sysconfdir}/init.d/
+	install -c -m 755 ${S}/telnetd ${D}${sysconfdir}/init.d/telnetd
+}
diff --git a/meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd/telnetd b/meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd/telnetd
new file mode 100644
index 0000000..116dd6d
--- /dev/null
+++ b/meta-arago-distro/recipes-connectivity/initscript-telnetd/initscript-telnetd/telnetd
@@ -0,0 +1,40 @@
+#! /bin/sh
+#Permission is hereby granted, free of charge, to any person obtaining a copy
+#of this software and associated documentation files (the "Software"), to deal
+#in the Software without restriction, including without limitation the rights
+#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+#copies of the Software, and to permit persons to whom the Software is
+#furnished to do so, subject to the following conditions:
+#
+#The above copyright notice and this permission notice shall be included in
+#all copies or substantial portions of the Software.
+#
+#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+#THE SOFTWARE.
+
+telnetd=/usr/sbin/telnetd
+
+test -x "$telnetd" || exit 0
+
+case "$1" in
+  start)
+    echo -n "Starting telnet daemon"
+    start-stop-daemon --start --quiet --exec $telnetd
+    echo "."
+    ;;
+  stop)
+    echo -n "Stopping telnet daemon"
+    start-stop-daemon --stop --quiet --pidfile /var/run/telnetd.pid
+    echo "."
+    ;;
+  *)
+    echo "Usage: /etc/init.d/telnetd {start|stop}"
+    exit 1
+esac
+
+exit 0
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-06  5:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02 15:19 [PATCH] initscript-telnetd: port from old arago overlay Chase Maupin
2012-02-06  5:01 ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.