* [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES
@ 2013-07-05 5:29 Chunrong Guo
2013-07-23 6:34 ` Guo Chunrong-B40290
0 siblings, 1 reply; 4+ messages in thread
From: Chunrong Guo @ 2013-07-05 5:29 UTC (permalink / raw)
To: openembedded-devel; +Cc: b40527
Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
.../recipes-protocols/net-snmp/net-snmp_5.7.2.bb | 11 +++++++----
.../recipes-support/dnsmasq/dnsmasq.inc | 5 ++++-
.../recipes-support/nis/yp-tools_2.12.bb | 8 +++++---
.../recipes-support/nis/ypbind-mt_1.36.bb | 8 +++++---
meta-networking/recipes-support/ntp/ntp.inc | 12 +++++++-----
5 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
index d21995a..2eece50 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://README;beginline=3;endline=8;md5=7f7f00ba639ac8e8deb5
DEPENDS = "openssl libnl pciutils"
-PR = "r1"
+PR = "r2"
SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
file://init \
@@ -51,9 +51,12 @@ do_install_append() {
-e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
-e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
-i ${STAGING_BINDIR}/net-snmp-config
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
+
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
+ fi
}
PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-static ${PN}-libs \
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
index 0f5b273..242f143 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
@@ -31,9 +31,11 @@ do_install () {
install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system
-
+ fi
+
if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then
install -d ${D}${sysconfdir}/dbus-1/system.d
install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/
@@ -46,3 +48,4 @@ RPROVIDES_${PN} += "${PN}-systemd"
RREPLACES_${PN} += "${PN}-systemd"
RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "dnsmasq.service"
+
diff --git a/meta-networking/recipes-support/nis/yp-tools_2.12.bb b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
index 0017845..65c4429 100644
--- a/meta-networking/recipes-support/nis/yp-tools_2.12.bb
+++ b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
@@ -1,7 +1,7 @@
# This package builds tools to manage NIS
# The source package is utils/net/NIS/yp-tools
#
-PR = "r3"
+PR = "r4"
DESCRIPTION="\
Network Information Service tools. \
This package contains ypcat, ypmatch, ypset, \
@@ -26,6 +26,8 @@ RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "domainname.service"
do_install_append() {
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
+ fi
}
diff --git a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
index 35ef16a..85ecaf8 100644
--- a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
+++ b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
@@ -1,7 +1,7 @@
# This package builds the NIS ypbind daemon
# The source package is utils/net/NIS/ypbind-mt
#
-PR = "r3"
+PR = "r4"
DESCRIPTION="\
Multithreaded NIS bind service (ypbind-mt). \
ypbind-mt is a complete new implementation of a NIS \
@@ -40,8 +40,10 @@ do_install_append () {
# TODO, use update-rc.d
ln -s ../init.d/ypbind ${D}${sysconfdir}/rcS.d/S44ypbind
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
+ fi
}
inherit systemd
diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
index 79e7401..6006aeb 100644
--- a/meta-networking/recipes-support/ntp/ntp.inc
+++ b/meta-networking/recipes-support/ntp/ntp.inc
@@ -8,7 +8,7 @@ SECTION = "console/network"
LICENSE = "NTP"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
-INC_PR = "r6"
+INC_PR = "r7"
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \
file://tickadj.c.patch \
@@ -59,10 +59,12 @@ do_install_append() {
install -d ${D}/${sysconfdir}/network/if-up.d
ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d
- 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/
- install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ 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/
+ install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
+ fi
}
PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES
2013-07-05 5:29 [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES Chunrong Guo
@ 2013-07-23 6:34 ` Guo Chunrong-B40290
2013-07-23 9:33 ` Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Guo Chunrong-B40290 @ 2013-07-23 6:34 UTC (permalink / raw)
To: Guo Chunrong-B40290, openembedded-devel@lists.openembedded.org
Cc: Yu Zongchun-B40527
Please apply the patch .
-----Original Message-----
From: Guo Chunrong-B40290
Sent: Friday, July 05, 2013 1:29 PM
To: openembedded-devel@lists.openembedded.org
Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290; Yu Zongchun-B40527; Guo Chunrong-B40290
Subject: [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES
Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
.../recipes-protocols/net-snmp/net-snmp_5.7.2.bb | 11 +++++++----
.../recipes-support/dnsmasq/dnsmasq.inc | 5 ++++-
.../recipes-support/nis/yp-tools_2.12.bb | 8 +++++---
.../recipes-support/nis/ypbind-mt_1.36.bb | 8 +++++---
meta-networking/recipes-support/ntp/ntp.inc | 12 +++++++-----
5 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
index d21995a..2eece50 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://README;beginline=3;endline=8;md5=7f7f00ba639ac8e8deb5
DEPENDS = "openssl libnl pciutils"
-PR = "r1"
+PR = "r2"
SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
file://init \
@@ -51,9 +51,12 @@ do_install_append() {
-e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
-e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
-i ${STAGING_BINDIR}/net-snmp-config
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
+
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
+ fi
}
PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-static ${PN}-libs \ diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
index 0f5b273..242f143 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
@@ -31,9 +31,11 @@ do_install () {
install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)};
+ then
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system
-
+ fi
+
if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then
install -d ${D}${sysconfdir}/dbus-1/system.d
install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/
@@ -46,3 +48,4 @@ RPROVIDES_${PN} += "${PN}-systemd"
RREPLACES_${PN} += "${PN}-systemd"
RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "dnsmasq.service"
+
diff --git a/meta-networking/recipes-support/nis/yp-tools_2.12.bb b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
index 0017845..65c4429 100644
--- a/meta-networking/recipes-support/nis/yp-tools_2.12.bb
+++ b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
@@ -1,7 +1,7 @@
# This package builds tools to manage NIS # The source package is utils/net/NIS/yp-tools # -PR = "r3"
+PR = "r4"
DESCRIPTION="\
Network Information Service tools. \
This package contains ypcat, ypmatch, ypset, \ @@ -26,6 +26,8 @@ RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "domainname.service"
do_install_append() {
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
+ fi
}
diff --git a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
index 35ef16a..85ecaf8 100644
--- a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
+++ b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
@@ -1,7 +1,7 @@
# This package builds the NIS ypbind daemon # The source package is utils/net/NIS/ypbind-mt # -PR = "r3"
+PR = "r4"
DESCRIPTION="\
Multithreaded NIS bind service (ypbind-mt). \ ypbind-mt is a complete new implementation of a NIS \ @@ -40,8 +40,10 @@ do_install_append () {
# TODO, use update-rc.d
ln -s ../init.d/ypbind ${D}${sysconfdir}/rcS.d/S44ypbind
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
+ fi
}
inherit systemd
diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
index 79e7401..6006aeb 100644
--- a/meta-networking/recipes-support/ntp/ntp.inc
+++ b/meta-networking/recipes-support/ntp/ntp.inc
@@ -8,7 +8,7 @@ SECTION = "console/network"
LICENSE = "NTP"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
-INC_PR = "r6"
+INC_PR = "r7"
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \
file://tickadj.c.patch \
@@ -59,10 +59,12 @@ do_install_append() {
install -d ${D}/${sysconfdir}/network/if-up.d
ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d
- 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/
- install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
+ if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ 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/
+ install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
+ fi
}
PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES
2013-07-23 6:34 ` Guo Chunrong-B40290
@ 2013-07-23 9:33 ` Martin Jansa
2013-07-23 11:50 ` Joe MacDonald
0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2013-07-23 9:33 UTC (permalink / raw)
To: openembedded-devel; +Cc: Yu Zongchun-B40527
[-- Attachment #1: Type: text/plain, Size: 7689 bytes --]
On Tue, Jul 23, 2013 at 06:34:11AM +0000, Guo Chunrong-B40290 wrote:
> Please apply the patch .
There is patch for systemd.bbclass on oe-core ML which should resolve
this for all recipes with systemd service files:
http://lists.openembedded.org/pipermail/openembedded-core/2013-July/081547.html
I would prefer to wait until it's resolved in oe-core.
>
>
> -----Original Message-----
> From: Guo Chunrong-B40290
> Sent: Friday, July 05, 2013 1:29 PM
> To: openembedded-devel@lists.openembedded.org
> Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290; Yu Zongchun-B40527; Guo Chunrong-B40290
> Subject: [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES
>
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
> .../recipes-protocols/net-snmp/net-snmp_5.7.2.bb | 11 +++++++----
> .../recipes-support/dnsmasq/dnsmasq.inc | 5 ++++-
> .../recipes-support/nis/yp-tools_2.12.bb | 8 +++++---
> .../recipes-support/nis/ypbind-mt_1.36.bb | 8 +++++---
> meta-networking/recipes-support/ntp/ntp.inc | 12 +++++++-----
> 5 files changed, 28 insertions(+), 16 deletions(-)
>
> diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
> index d21995a..2eece50 100644
> --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
> +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
> @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://README;beginline=3;endline=8;md5=7f7f00ba639ac8e8deb5
>
> DEPENDS = "openssl libnl pciutils"
>
> -PR = "r1"
> +PR = "r2"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
> file://init \
> @@ -51,9 +51,12 @@ do_install_append() {
> -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
> -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
> -i ${STAGING_BINDIR}/net-snmp-config
> - install -d ${D}${systemd_unitdir}/system
> - install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
> - install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
> +
> + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> + install -d ${D}${systemd_unitdir}/system
> + install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
> + install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
> + fi
> }
>
> PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-static ${PN}-libs \ diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
> index 0f5b273..242f143 100644
> --- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
> +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
> @@ -31,9 +31,11 @@ do_install () {
> install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
> install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
>
> + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)};
> + then
> install -d ${D}${systemd_unitdir}/system
> install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system
> -
> + fi
> +
> if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then
> install -d ${D}${sysconfdir}/dbus-1/system.d
> install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/
> @@ -46,3 +48,4 @@ RPROVIDES_${PN} += "${PN}-systemd"
> RREPLACES_${PN} += "${PN}-systemd"
> RCONFLICTS_${PN} += "${PN}-systemd"
> SYSTEMD_SERVICE_${PN} = "dnsmasq.service"
> +
> diff --git a/meta-networking/recipes-support/nis/yp-tools_2.12.bb b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
> index 0017845..65c4429 100644
> --- a/meta-networking/recipes-support/nis/yp-tools_2.12.bb
> +++ b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
> @@ -1,7 +1,7 @@
> # This package builds tools to manage NIS # The source package is utils/net/NIS/yp-tools # -PR = "r3"
> +PR = "r4"
> DESCRIPTION="\
> Network Information Service tools. \
> This package contains ypcat, ypmatch, ypset, \ @@ -26,6 +26,8 @@ RCONFLICTS_${PN} += "${PN}-systemd"
> SYSTEMD_SERVICE_${PN} = "domainname.service"
>
> do_install_append() {
> - install -d ${D}${systemd_unitdir}/system
> - install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
> + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> + install -d ${D}${systemd_unitdir}/system
> + install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
> + fi
> }
> diff --git a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
> index 35ef16a..85ecaf8 100644
> --- a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
> +++ b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
> @@ -1,7 +1,7 @@
> # This package builds the NIS ypbind daemon # The source package is utils/net/NIS/ypbind-mt # -PR = "r3"
> +PR = "r4"
> DESCRIPTION="\
> Multithreaded NIS bind service (ypbind-mt). \ ypbind-mt is a complete new implementation of a NIS \ @@ -40,8 +40,10 @@ do_install_append () {
> # TODO, use update-rc.d
> ln -s ../init.d/ypbind ${D}${sysconfdir}/rcS.d/S44ypbind
>
> - install -d ${D}${systemd_unitdir}/system
> - install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
> + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> + install -d ${D}${systemd_unitdir}/system
> + install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
> + fi
> }
>
> inherit systemd
> diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
> index 79e7401..6006aeb 100644
> --- a/meta-networking/recipes-support/ntp/ntp.inc
> +++ b/meta-networking/recipes-support/ntp/ntp.inc
> @@ -8,7 +8,7 @@ SECTION = "console/network"
> LICENSE = "NTP"
> LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
>
> -INC_PR = "r6"
> +INC_PR = "r7"
>
> SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \
> file://tickadj.c.patch \
> @@ -59,10 +59,12 @@ do_install_append() {
> install -d ${D}/${sysconfdir}/network/if-up.d
> ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d
>
> - 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/
> - install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
> + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> + 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/
> + install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
> + fi
> }
>
> PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
> --
> 1.7.5.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES
2013-07-23 9:33 ` Martin Jansa
@ 2013-07-23 11:50 ` Joe MacDonald
0 siblings, 0 replies; 4+ messages in thread
From: Joe MacDonald @ 2013-07-23 11:50 UTC (permalink / raw)
To: openembedded-devel; +Cc: Yu Zongchun-B40527
[-- Attachment #1: Type: text/plain, Size: 8535 bytes --]
[Re: [oe] [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES] On 13.07.23 (Tue 11:33) Martin Jansa wrote:
> On Tue, Jul 23, 2013 at 06:34:11AM +0000, Guo Chunrong-B40290 wrote:
> > Please apply the patch .
>
> There is patch for systemd.bbclass on oe-core ML which should resolve
> this for all recipes with systemd service files:
>
> http://lists.openembedded.org/pipermail/openembedded-core/2013-July/081547.html
>
> I would prefer to wait until it's resolved in oe-core.
As would I. Sorry about that, I should've followed up with you guys
last week. I'd started working on basically the same thing, though I
was implementing it in slightly a different way. With the current patch
under discussion, I think the right thing to do is to instead remove the
workarounds in the other recipes I mentioned that already have them once
it has been merged.
-J.
>
> >
> >
> > -----Original Message-----
> > From: Guo Chunrong-B40290
> > Sent: Friday, July 05, 2013 1:29 PM
> > To: openembedded-devel@lists.openembedded.org
> > Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290; Yu Zongchun-B40527; Guo Chunrong-B40290
> > Subject: [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES
> >
> > Signed-off-by: Chunrong Guo <B40290@freescale.com>
> > ---
> > .../recipes-protocols/net-snmp/net-snmp_5.7.2.bb | 11 +++++++----
> > .../recipes-support/dnsmasq/dnsmasq.inc | 5 ++++-
> > .../recipes-support/nis/yp-tools_2.12.bb | 8 +++++---
> > .../recipes-support/nis/ypbind-mt_1.36.bb | 8 +++++---
> > meta-networking/recipes-support/ntp/ntp.inc | 12 +++++++-----
> > 5 files changed, 28 insertions(+), 16 deletions(-)
> >
> > diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
> > index d21995a..2eece50 100644
> > --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
> > +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb
> > @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://README;beginline=3;endline=8;md5=7f7f00ba639ac8e8deb5
> >
> > DEPENDS = "openssl libnl pciutils"
> >
> > -PR = "r1"
> > +PR = "r2"
> >
> > SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
> > file://init \
> > @@ -51,9 +51,12 @@ do_install_append() {
> > -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \
> > -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \
> > -i ${STAGING_BINDIR}/net-snmp-config
> > - install -d ${D}${systemd_unitdir}/system
> > - install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
> > - install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
> > +
> > + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> > + install -d ${D}${systemd_unitdir}/system
> > + install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
> > + install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
> > + fi
> > }
> >
> > PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-static ${PN}-libs \ diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
> > index 0f5b273..242f143 100644
> > --- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
> > +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
> > @@ -31,9 +31,11 @@ do_install () {
> > install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
> > install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
> >
> > + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)};
> > + then
> > install -d ${D}${systemd_unitdir}/system
> > install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system
> > -
> > + fi
> > +
> > if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then
> > install -d ${D}${sysconfdir}/dbus-1/system.d
> > install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/
> > @@ -46,3 +48,4 @@ RPROVIDES_${PN} += "${PN}-systemd"
> > RREPLACES_${PN} += "${PN}-systemd"
> > RCONFLICTS_${PN} += "${PN}-systemd"
> > SYSTEMD_SERVICE_${PN} = "dnsmasq.service"
> > +
> > diff --git a/meta-networking/recipes-support/nis/yp-tools_2.12.bb b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
> > index 0017845..65c4429 100644
> > --- a/meta-networking/recipes-support/nis/yp-tools_2.12.bb
> > +++ b/meta-networking/recipes-support/nis/yp-tools_2.12.bb
> > @@ -1,7 +1,7 @@
> > # This package builds tools to manage NIS # The source package is utils/net/NIS/yp-tools # -PR = "r3"
> > +PR = "r4"
> > DESCRIPTION="\
> > Network Information Service tools. \
> > This package contains ypcat, ypmatch, ypset, \ @@ -26,6 +26,8 @@ RCONFLICTS_${PN} += "${PN}-systemd"
> > SYSTEMD_SERVICE_${PN} = "domainname.service"
> >
> > do_install_append() {
> > - install -d ${D}${systemd_unitdir}/system
> > - install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
> > + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> > + install -d ${D}${systemd_unitdir}/system
> > + install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system
> > + fi
> > }
> > diff --git a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
> > index 35ef16a..85ecaf8 100644
> > --- a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
> > +++ b/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
> > @@ -1,7 +1,7 @@
> > # This package builds the NIS ypbind daemon # The source package is utils/net/NIS/ypbind-mt # -PR = "r3"
> > +PR = "r4"
> > DESCRIPTION="\
> > Multithreaded NIS bind service (ypbind-mt). \ ypbind-mt is a complete new implementation of a NIS \ @@ -40,8 +40,10 @@ do_install_append () {
> > # TODO, use update-rc.d
> > ln -s ../init.d/ypbind ${D}${sysconfdir}/rcS.d/S44ypbind
> >
> > - install -d ${D}${systemd_unitdir}/system
> > - install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
> > + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> > + install -d ${D}${systemd_unitdir}/system
> > + install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
> > + fi
> > }
> >
> > inherit systemd
> > diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
> > index 79e7401..6006aeb 100644
> > --- a/meta-networking/recipes-support/ntp/ntp.inc
> > +++ b/meta-networking/recipes-support/ntp/ntp.inc
> > @@ -8,7 +8,7 @@ SECTION = "console/network"
> > LICENSE = "NTP"
> > LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
> >
> > -INC_PR = "r6"
> > +INC_PR = "r7"
> >
> > SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \
> > file://tickadj.c.patch \
> > @@ -59,10 +59,12 @@ do_install_append() {
> > install -d ${D}/${sysconfdir}/network/if-up.d
> > ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d
> >
> > - 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/
> > - install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
> > + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> > + 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/
> > + install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
> > + fi
> > }
> >
> > PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
> > --
> > 1.7.5.4
> >
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-23 11:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05 5:29 [meta-networking][PATCH] Install a systemd unit into ${systemd_unitdir} only with systemd in DISTRO_FEATURES Chunrong Guo
2013-07-23 6:34 ` Guo Chunrong-B40290
2013-07-23 9:33 ` Martin Jansa
2013-07-23 11:50 ` Joe MacDonald
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.