summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb30
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"
4LICENSE = "GPLv2+" 4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b" 5LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b"
6 6
7PR = "r4" 7PR = "r5"
8 8
9DEPENDS = "systemd libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp" 9DEPENDS = "systemd libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp"
10inherit gnome gettext 10inherit gnome gettext systemd
11 11
12SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.bz2 \ 12SRC_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
59SYSTEMD_PACKAGES = "${PN}"
60SYSTEMD_SERVICE = "NetworkManager.service"
61
59PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests" 62PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests"
60 63
61FILES_libnmutil += "${libdir}/libnm-util.so.*" 64FILES_libnmutil += "${libdir}/libnm-util.so.*"
62FILES_libnmglib += "${libdir}/libnm_glib.so.*" 65FILES_libnmglib += "${libdir}/libnm_glib.so.*"
63FILES_libnmglib-vpn += "${libdir}/libnm_glib_vpn.so.*" 66FILES_libnmglib-vpn += "${libdir}/libnm_glib_vpn.so.*"
64 67
65systemd_unitdir = "${base_libdir}/systemd/system"
66
67FILES_${PN} += " \ 68FILES_${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
77RRECOMMENDS_${PN} += "iptables" 78RRECOMMENDS_${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
100pkg_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
109pkg_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}