aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-13 15:03:11 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-15 16:22:06 +0200
commit0027c0c3e2cce5ff483e43e4bdc1dc1a5f7804a3 (patch)
tree9fa3d450d582b04535af9de985a3fdbf81ced8a0
parent4f3b378e6a618b6a0735f8096b49f166bf7c2a80 (diff)
downloadmeta-openembedded-contrib-0027c0c3e2cce5ff483e43e4bdc1dc1a5f7804a3.tar.gz
meta-openembedded-contrib-0027c0c3e2cce5ff483e43e4bdc1dc1a5f7804a3.tar.bz2
meta-openembedded-contrib-0027c0c3e2cce5ff483e43e4bdc1dc1a5f7804a3.zip
networkmanager: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb14
-rw-r--r--meta-systemd/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bbappend13
2 files changed, 9 insertions, 18 deletions
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 074e6650be..cc6abd7220 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
@@ -4,10 +4,12 @@ SECTION = "net/misc"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b"
-PR = "r8"
+PR = "r11"
DEPENDS = "libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp"
-inherit gnome gettext
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+
+inherit gnome gettext systemd
SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.bz2 \
file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \
@@ -20,8 +22,6 @@ SRC_URI[sha256sum] = "a178ed2f0b5a1045ec47b217ea531d0feba9208f6bcfe64b701174a5c1
S = "${WORKDIR}/NetworkManager-${PV}"
-SYSTEMD_UNITDIR ??= "no"
-
EXTRA_OECONF = " \
--with-distro=debian \
--with-crypto=gnutls \
@@ -29,9 +29,10 @@ EXTRA_OECONF = " \
--with-dhclient=${base_sbindir}/dhclient \
--with-iptables=${sbindir}/iptables \
--with-tests \
- --with-systemdsystemunitdir=${SYSTEMD_UNITDIR} \
"
+EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
+
do_configure_prepend() {
cp ${WORKDIR}/gtk-doc.make ${S}/
echo "EXTRA_DIST = version.xml" > gnome-doc-utils.make
@@ -71,6 +72,7 @@ FILES_${PN} += " \
${datadir}/polkit-1 \
${datadir}/dbus-1 \
${base_libdir}/udev/* \
+ ${systemd_unitdir}/system/NetworkManager-wait-online.service \
"
RRECOMMENDS_${PN} += "iptables"
@@ -89,3 +91,5 @@ FILES_${PN}-dev += "${datadir}/NetworkManager/gdb-cmd \
FILES_${PN}-tests = "${bindir}/nm-tool \
${bindir}/libnm_glib_test \
${bindir}/nm-online"
+
+SYSTEMD_SERVICE_${PN} = "NetworkManager.service"
diff --git a/meta-systemd/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bbappend b/meta-systemd/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bbappend
deleted file mode 100644
index 5508fb29c6..0000000000
--- a/meta-systemd/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bbappend
+++ /dev/null
@@ -1,13 +0,0 @@
-PRINC := "${@int(PRINC) + 2}"
-
-inherit systemd
-
-DEPENDS += "systemd"
-
-SYSTEMD_SERVICE_${PN} = "NetworkManager.service"
-SYSTEMD_UNITDIR = "${systemd_unitdir}/system"
-
-# NetworkManager-wait-online is not catched by systemd.bbclass
-FILES_${PN} += " \
- ${systemd_unitdir}/system/NetworkManager-wait-online.service \
-"