All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-arago][master/kirkstone][PATCH 1/2] systemd-telnetd: Unit files for starting telnetd under systemd
@ 2023-10-19 22:04 Ryan Eatmon
  2023-10-19 22:04 ` [meta-arago][master/kirkstone][PATCH 2/2] packagegroup-arago-base: Add systemd-telnetd package Ryan Eatmon
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan Eatmon @ 2023-10-19 22:04 UTC (permalink / raw)
  To: Praneeth Bajjuri, Denys Dmytriyenko, meta-arago

With the recent changes to moving to systemd for all images, we lost the
needed files that started telnetd via the sysvinit method.  This just
adds the needed systemd files to do that directly.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 .../systemd-telnetd/systemd-telnetd.bb        | 20 +++++++++++++
 .../systemd-telnetd/telnetd.service           | 29 +++++++++++++++++++
 2 files changed, 49 insertions(+)
 create mode 100644 meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd.bb
 create mode 100644 meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd/telnetd.service

diff --git a/meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd.bb b/meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd.bb
new file mode 100644
index 00000000..3158da5a
--- /dev/null
+++ b/meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd.bb
@@ -0,0 +1,20 @@
+SUMMARY = "telnetd"
+DESCRIPTION = "systemd config for starting telnetd."
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://telnetd.service;beginline=1;endline=17;md5=d134d0d385c53f9201a270fef8448f29"
+
+SRC_URI = "file://telnetd.service"
+
+S = "${WORKDIR}"
+
+inherit systemd
+
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE:${PN} = "telnetd.service"
+SYSTEMD_AUTO_ENABLE:${PN} = "enable"
+
+do_install:append () {
+    # install systemd unit files
+    install -d ${D}${systemd_system_unitdir}
+    install -m 0644 ${WORKDIR}/telnetd.service ${D}${systemd_system_unitdir}
+}
diff --git a/meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd/telnetd.service b/meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd/telnetd.service
new file mode 100644
index 00000000..d8b34373
--- /dev/null
+++ b/meta-arago-distro/recipes-connectivity/systemd-telnetd/systemd-telnetd/telnetd.service
@@ -0,0 +1,29 @@
+#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.
+
+[Unit]
+Description=Telnet Server
+After=local-fs.target
+
+[Service]
+RemainAfterExit=true
+Type=oneshot
+ExecStart=/usr/sbin/telnetd
+
+[Install]
+WantedBy=multi-user.target
-- 
2.17.1



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

* [meta-arago][master/kirkstone][PATCH 2/2] packagegroup-arago-base: Add systemd-telnetd package
  2023-10-19 22:04 [meta-arago][master/kirkstone][PATCH 1/2] systemd-telnetd: Unit files for starting telnetd under systemd Ryan Eatmon
@ 2023-10-19 22:04 ` Ryan Eatmon
  0 siblings, 0 replies; 2+ messages in thread
From: Ryan Eatmon @ 2023-10-19 22:04 UTC (permalink / raw)
  To: Praneeth Bajjuri, Denys Dmytriyenko, meta-arago

Add in the new systemd-telnetd package.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 .../recipes-core/packagegroups/packagegroup-arago-base.bb        | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb
index d143f4f3..1971d45c 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb
@@ -17,6 +17,7 @@ ARAGO_BASE = "\
     mtd-utils-ubifs \
     curl \
     initscript-telnetd \
+    systemd-telnetd \
     ethtool \
     thermal-init \
     bash \
-- 
2.17.1



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

end of thread, other threads:[~2023-10-19 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-19 22:04 [meta-arago][master/kirkstone][PATCH 1/2] systemd-telnetd: Unit files for starting telnetd under systemd Ryan Eatmon
2023-10-19 22:04 ` [meta-arago][master/kirkstone][PATCH 2/2] packagegroup-arago-base: Add systemd-telnetd package Ryan Eatmon

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.