summaryrefslogtreecommitdiffstats
path: root/meta-oe
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 /meta-oe
parent4f3b378e6a618b6a0735f8096b49f166bf7c2a80 (diff)
downloadmeta-openembedded-0027c0c3e2cce5ff483e43e4bdc1dc1a5f7804a3.tar.gz
networkmanager: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb14
1 files changed, 9 insertions, 5 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 074e6650b..cc6abd722 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"
4LICENSE = "GPLv2+" 4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b" 5LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b"
6 6
7PR = "r8" 7PR = "r11"
8 8
9DEPENDS = "libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp" 9DEPENDS = "libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp"
10inherit gnome gettext 10DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
11
12inherit gnome gettext systemd
11 13
12SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.bz2 \ 14SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.bz2 \
13 file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \ 15 file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \
@@ -20,8 +22,6 @@ SRC_URI[sha256sum] = "a178ed2f0b5a1045ec47b217ea531d0feba9208f6bcfe64b701174a5c1
20 22
21S = "${WORKDIR}/NetworkManager-${PV}" 23S = "${WORKDIR}/NetworkManager-${PV}"
22 24
23SYSTEMD_UNITDIR ??= "no"
24
25EXTRA_OECONF = " \ 25EXTRA_OECONF = " \
26 --with-distro=debian \ 26 --with-distro=debian \
27 --with-crypto=gnutls \ 27 --with-crypto=gnutls \
@@ -29,9 +29,10 @@ EXTRA_OECONF = " \
29 --with-dhclient=${base_sbindir}/dhclient \ 29 --with-dhclient=${base_sbindir}/dhclient \
30 --with-iptables=${sbindir}/iptables \ 30 --with-iptables=${sbindir}/iptables \
31 --with-tests \ 31 --with-tests \
32 --with-systemdsystemunitdir=${SYSTEMD_UNITDIR} \
33" 32"
34 33
34EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
35
35do_configure_prepend() { 36do_configure_prepend() {
36 cp ${WORKDIR}/gtk-doc.make ${S}/ 37 cp ${WORKDIR}/gtk-doc.make ${S}/
37 echo "EXTRA_DIST = version.xml" > gnome-doc-utils.make 38 echo "EXTRA_DIST = version.xml" > gnome-doc-utils.make
@@ -71,6 +72,7 @@ FILES_${PN} += " \
71 ${datadir}/polkit-1 \ 72 ${datadir}/polkit-1 \
72 ${datadir}/dbus-1 \ 73 ${datadir}/dbus-1 \
73 ${base_libdir}/udev/* \ 74 ${base_libdir}/udev/* \
75 ${systemd_unitdir}/system/NetworkManager-wait-online.service \
74" 76"
75 77
76RRECOMMENDS_${PN} += "iptables" 78RRECOMMENDS_${PN} += "iptables"
@@ -89,3 +91,5 @@ FILES_${PN}-dev += "${datadir}/NetworkManager/gdb-cmd \
89FILES_${PN}-tests = "${bindir}/nm-tool \ 91FILES_${PN}-tests = "${bindir}/nm-tool \
90 ${bindir}/libnm_glib_test \ 92 ${bindir}/libnm_glib_test \
91 ${bindir}/nm-online" 93 ${bindir}/nm-online"
94
95SYSTEMD_SERVICE_${PN} = "NetworkManager.service"