diff options
author | Sebastian Proca <florentin.proca@windriver.com> | 2012-05-09 12:34:42 +0300 |
---|---|---|
committer | Florin Sarbu <florin.sarbu@windriver.com> | 2012-05-16 15:46:24 +0300 |
commit | 4e97639e6b04469e2f47cc6a833909f3f64b517a (patch) | |
tree | 6a420513a76d5852f68964194f46eabd849deba0 | |
parent | c1a0f05f1b67592f74c3ca1f4ab773168ec3e33c (diff) | |
download | meta-ivi-4e97639e6b04469e2f47cc6a833909f3f64b517a.tar.gz meta-ivi-4e97639e6b04469e2f47cc6a833909f3f64b517a.tar.bz2 meta-ivi-4e97639e6b04469e2f47cc6a833909f3f64b517a.zip |
portmap: add and enable installation of services for systemd
Portmap did not install a service file for systemd so that systemctl
could not be used for portmap generated daemon.
Signed-off-by: Sebastian Proca <Florentin.Proca@windriver.com>
-rw-r--r-- | recipes-connectivity/portmap/files/portmap.service | 12 | ||||
-rw-r--r-- | recipes-connectivity/portmap/portmap_6.0.bbappend | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/recipes-connectivity/portmap/files/portmap.service b/recipes-connectivity/portmap/files/portmap.service new file mode 100644 index 0000000..be06edd --- /dev/null +++ b/recipes-connectivity/portmap/files/portmap.service @@ -0,0 +1,12 @@ +[Unit] +Description=Server that converts RPC program numbers into DARPA protocol port numbers +After=connman.service + +[Service] +Type=oneshot +ExecStart=/sbin/portmap -l +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target + diff --git a/recipes-connectivity/portmap/portmap_6.0.bbappend b/recipes-connectivity/portmap/portmap_6.0.bbappend new file mode 100644 index 0000000..a8c6ed5 --- /dev/null +++ b/recipes-connectivity/portmap/portmap_6.0.bbappend @@ -0,0 +1,17 @@ +# Find "files" directory +FILESEXTRAPATHS := "${THISDIR}/files" + +SRC_URI_append_vexpressa9 = " file://portmap.service" + + +PACKAGES =+ "${PN}-systemd" + +FILES_${PN}-systemd = "/lib/systemd/system/" + +do_install_append() { + + mkdir -p ${D}/lib/systemd/system + install -m 644 ${WORKDIR}/portmap.service ${D}/lib/systemd/system/ + +} + |