diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-13 15:03:11 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-15 16:22:06 +0200 |
commit | 0027c0c3e2cce5ff483e43e4bdc1dc1a5f7804a3 (patch) | |
tree | 9fa3d450d582b04535af9de985a3fdbf81ced8a0 /meta-oe | |
parent | 4f3b378e6a618b6a0735f8096b49f166bf7c2a80 (diff) | |
download | meta-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.bb | 14 |
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" | |||
4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPLv2+" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b" |
6 | 6 | ||
7 | PR = "r8" | 7 | PR = "r11" |
8 | 8 | ||
9 | DEPENDS = "libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp" | 9 | DEPENDS = "libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp" |
10 | inherit gnome gettext | 10 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
11 | |||
12 | inherit gnome gettext systemd | ||
11 | 13 | ||
12 | SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.bz2 \ | 14 | SRC_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 | ||
21 | S = "${WORKDIR}/NetworkManager-${PV}" | 23 | S = "${WORKDIR}/NetworkManager-${PV}" |
22 | 24 | ||
23 | SYSTEMD_UNITDIR ??= "no" | ||
24 | |||
25 | EXTRA_OECONF = " \ | 25 | EXTRA_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 | ||
34 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" | ||
35 | |||
35 | do_configure_prepend() { | 36 | do_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 | ||
76 | RRECOMMENDS_${PN} += "iptables" | 78 | RRECOMMENDS_${PN} += "iptables" |
@@ -89,3 +91,5 @@ FILES_${PN}-dev += "${datadir}/NetworkManager/gdb-cmd \ | |||
89 | FILES_${PN}-tests = "${bindir}/nm-tool \ | 91 | FILES_${PN}-tests = "${bindir}/nm-tool \ |
90 | ${bindir}/libnm_glib_test \ | 92 | ${bindir}/libnm_glib_test \ |
91 | ${bindir}/nm-online" | 93 | ${bindir}/nm-online" |
94 | |||
95 | SYSTEMD_SERVICE_${PN} = "NetworkManager.service" | ||