diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-03-06 00:58:16 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-06 10:01:08 +0100 |
commit | 27c7bc652e84ae900bfd1be3d028a108de91fc6e (patch) | |
tree | dba8140855ea179c8dee6808fe8742ae12401193 | |
parent | 70d51891d8f1960eb6608bc2f731c118a2a27a91 (diff) | |
download | meta-openembedded-27c7bc652e84ae900bfd1be3d028a108de91fc6e.tar.gz |
networkmanager: inherit systemd
networkmanager-systemd was not yet created to avoid fallout in images. The
warning for this created at parse time is our reminder.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r-- | meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb | 30 |
1 files changed, 6 insertions, 24 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 45f98bea0..6bbbce5e6 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,10 @@ 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 = "r4" | 7 | PR = "r5" |
8 | 8 | ||
9 | DEPENDS = "systemd libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp" | 9 | DEPENDS = "systemd libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp" |
10 | inherit gnome gettext | 10 | inherit gnome gettext systemd |
11 | 11 | ||
12 | SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.bz2 \ | 12 | 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 \ | 13 | file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \ |
@@ -56,14 +56,15 @@ do_install_append () { | |||
56 | install -d ${D}/etc/NetworkManager/VPN | 56 | install -d ${D}/etc/NetworkManager/VPN |
57 | } | 57 | } |
58 | 58 | ||
59 | SYSTEMD_PACKAGES = "${PN}" | ||
60 | SYSTEMD_SERVICE = "NetworkManager.service" | ||
61 | |||
59 | PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests" | 62 | PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests" |
60 | 63 | ||
61 | FILES_libnmutil += "${libdir}/libnm-util.so.*" | 64 | FILES_libnmutil += "${libdir}/libnm-util.so.*" |
62 | FILES_libnmglib += "${libdir}/libnm_glib.so.*" | 65 | FILES_libnmglib += "${libdir}/libnm_glib.so.*" |
63 | FILES_libnmglib-vpn += "${libdir}/libnm_glib_vpn.so.*" | 66 | FILES_libnmglib-vpn += "${libdir}/libnm_glib_vpn.so.*" |
64 | 67 | ||
65 | systemd_unitdir = "${base_libdir}/systemd/system" | ||
66 | |||
67 | FILES_${PN} += " \ | 68 | FILES_${PN} += " \ |
68 | ${libexecdir} \ | 69 | ${libexecdir} \ |
69 | ${libdir}/pppd/*/nm-pppd-plugin.so \ | 70 | ${libdir}/pppd/*/nm-pppd-plugin.so \ |
@@ -71,7 +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/* \ |
74 | ${systemd_unitdir} \ | 75 | ${systemd_unitdir}/system/NetworkManager-wait-online.service \ |
75 | " | 76 | " |
76 | 77 | ||
77 | RRECOMMENDS_${PN} += "iptables" | 78 | RRECOMMENDS_${PN} += "iptables" |
@@ -95,22 +96,3 @@ FILES_${PN}-tests = "${bindir}/nm-tool \ | |||
95 | ${bindir}/nm-online \ | 96 | ${bindir}/nm-online \ |
96 | ${bindir}/nm-supplicant \ | 97 | ${bindir}/nm-supplicant \ |
97 | ${bindir}/nm-testdevices" | 98 | ${bindir}/nm-testdevices" |
98 | |||
99 | |||
100 | pkg_postinst_${PN}() { | ||
101 | # can't do this offline | ||
102 | if [ "x$D" != "x" ]; then | ||
103 | exit 1 | ||
104 | fi | ||
105 | |||
106 | systemctl enable NetworkManager.service | ||
107 | } | ||
108 | |||
109 | pkg_prerm_${PN}() { | ||
110 | # can't do this offline | ||
111 | if [ "x$D" != "x" ]; then | ||
112 | exit 1 | ||
113 | fi | ||
114 | |||
115 | systemctl disable NetworkManager.service | ||
116 | } | ||