From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-oe][PATCH] gateone, networkmanager, cloud9, ntp: use systemd_unitdir variable
Date: Thu, 23 Feb 2012 13:40:07 +0100 [thread overview]
Message-ID: <1330000807-30379-1-git-send-email-Martin.Jansa@gmail.com> (raw)
In-Reply-To: <CAP9ODKoFvg4s4Omew3pdtw3GVZyvpAF+cZCKKP6StJkjWhua9A@mail.gmail.com>
* maybe we should move systemd_unitdir definition outside systemd.bbclass
because it's used in few more recipes which doesn't inherit systemd
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
.../recipes-connectivity/gateone/gateone_git.bb | 4 ++--
.../networkmanager/networkmanager_0.9.2.0.bb | 2 +-
meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb | 6 +++---
meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb | 8 ++++----
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/meta-oe/recipes-connectivity/gateone/gateone_git.bb b/meta-oe/recipes-connectivity/gateone/gateone_git.bb
index 4f9684c..84da893 100644
--- a/meta-oe/recipes-connectivity/gateone/gateone_git.bb
+++ b/meta-oe/recipes-connectivity/gateone/gateone_git.bb
@@ -20,8 +20,8 @@ export prefix = "${localstatedir}/lib"
do_install_append() {
install -d ${D}${localstatedir}/log/${BPN}
- install -m 0755 -d ${D}${base_libdir}/systemd/system
- install -m 0644 ${WORKDIR}/gateone.service ${D}${base_libdir}/systemd/system/
+ install -m 0755 -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/gateone.service ${D}${systemd_unitdir}/system/
install -m 0755 -d ${D}${sysconfdir}/avahi/services/
install -m 0644 ${WORKDIR}/gateone-avahi.service ${D}${sysconfdir}/avahi/services/
diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb b/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb
index 1dcc3cf..df269e0 100644
--- a/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb
+++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb
@@ -70,7 +70,7 @@ FILES_${PN} += " \
${datadir}/polkit-1 \
${datadir}/dbus-1 \
${base_libdir}/udev/* \
- ${base_libdir}/systemd \
+ ${systemd_unitdir} \
"
RRECOMMENDS_${PN} += "iptables"
diff --git a/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb b/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
index 4e95075..bef2f36 100644
--- a/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
+++ b/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
@@ -98,8 +98,8 @@ do_install () {
install -m 0644 ${WORKDIR}/o3/modules/o3.js ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.js
install -m 0755 ${WORKDIR}/o3/o3.node ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.node
- install -m 0755 -d ${D}${base_libdir}/systemd/system
- install -m 0644 ${WORKDIR}/cloud9.service ${D}${base_libdir}/systemd/system/
+ install -m 0755 -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/cloud9.service ${D}${systemd_unitdir}/system/
install -m 0755 -d ${D}${sysconfdir}/avahi/services/
install -m 0644 ${WORKDIR}/cloud9-avahi.service ${D}${sysconfdir}/avahi/services/
@@ -109,7 +109,7 @@ FILES_${PN}-dbg += "${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o
${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/.debug \
"
-FILES_${PN} += "${base_libdir}/systemd/system"
+FILES_${PN} += "${systemd_unitdir}/system"
RDEPENDS_${PN} = "nodejs gzip"
inherit systemd
diff --git a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
index 063d82a..292a1f6 100644
--- a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
+++ b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
@@ -29,14 +29,14 @@ do_install_append() {
install -d ${D}/${sysconfdir}/network/if-up.d
install -m 755 ${WORKDIR}/ntpdate ${D}/${sysconfdir}/network/if-up.d
- install -d ${D}${base_libdir}/systemd/system
- install -m 0644 ${WORKDIR}/ntpdate.service ${D}${base_libdir}/systemd/system/
- install -m 0644 ${WORKDIR}/ntpd.service ${D}${base_libdir}/systemd/system/
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
+ install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
}
PACKAGES =+ "${PN}-systemd"
-FILES_${PN}-systemd = "${base_libdir}/systemd/system/"
+FILES_${PN}-systemd = "${systemd_unitdir}/system/"
RDEPENDS_${PN}-systemd = "${PN}"
FILES_${PN}-bin = "${bindir}/ntp-wait ${bindir}/ntpdc ${bindir}/ntpq ${bindir}/ntptime ${bindir}/ntptrace"
--
1.7.8.4
next prev parent reply other threads:[~2012-02-23 12:48 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 12:10 [meta-oe V3 00/23] systemd rework Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 01/23] systemd-systemctl-native: add multiple services support Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 02/23] systemd.bbclass: introduce systemd_unitdir Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 03/23] systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICE Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 04/23] systemd.bbclass: cosmetics Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 05/23] systemd.bbclass: automatically create packages set in SYSTEMD_PACKAGES Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 06/23] systemd.bbclass: automatically install all *.service and *.socket supplied in recipe's SRC_URI Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 07/23] systemd.bbclass: run code in populate_packages_prepend only if ${D} exists Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 08/23] systemd.bbclass: automatically extend FILES_* for systemd packages Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 09/23] systemd.bbclass: automatically extend RDEPENDS for *-systemd packages Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 10/23] connman: remove unneeded systemd code / use ${systemd_unitdir} Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 11/23] dropbear: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 12/23] openssh: remove unneeded systemd code Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 13/23] elsa: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 14/23] cronie: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 15/23] xserver-nodm-init: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 16/23] atftp: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 17/23] udisks: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 18/23] rsyslog: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 19/23] syslog-ng: remove unneeded systemd code / use ${systemd_unitdir} Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 20/23] dhcp: remove unneeded systemd code Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 21/23] gpsd: " Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 22/23] busybox: remove unneeded systemd code / use ${systemd_unitdir} Andreas Müller
2012-02-23 12:10 ` [meta-oe V3 23/23] dhcp: add native systemd support for dhcp-relay Andreas Müller
2012-02-23 12:31 ` [meta-oe V3 00/23] systemd rework Otavio Salvador
2012-02-23 12:39 ` Martin Jansa
2012-02-23 12:46 ` Otavio Salvador
2012-02-23 12:40 ` Martin Jansa [this message]
2012-02-23 12:50 ` [meta-oe][PATCH] gateone, networkmanager, cloud9, ntp: use systemd_unitdir variable Otavio Salvador
2012-02-23 12:58 ` Martin Jansa
2012-02-23 13:10 ` Otavio Salvador
2012-02-23 14:53 ` Martin Jansa
2012-02-23 14:58 ` Otavio Salvador
2012-02-23 15:44 ` Koen Kooi
2012-02-23 15:52 ` Martin Jansa
2012-02-23 12:40 ` [meta-oe V3 00/23] systemd rework Andreas Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1330000807-30379-1-git-send-email-Martin.Jansa@gmail.com \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.