diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb')
-rw-r--r-- | meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb b/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb new file mode 100644 index 000000000..8d37c980e --- /dev/null +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb | |||
@@ -0,0 +1,111 @@ | |||
1 | SUMMARY = "NetworkManager" | ||
2 | SECTION = "net/misc" | ||
3 | |||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b" | ||
6 | |||
7 | DEPENDS = "libnl dbus dbus-glib udev wireless-tools nss util-linux ppp" | ||
8 | |||
9 | inherit gnome gettext systemd | ||
10 | |||
11 | SRC_URI = " \ | ||
12 | ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ | ||
13 | file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \ | ||
14 | file://0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch \ | ||
15 | " | ||
16 | SRC_URI[md5sum] = "aad2558887e25417c52eb2deaade2f85" | ||
17 | SRC_URI[sha256sum] = "064d27223d3824859df12e1fb25b787fec1c68bbc864dc52a0289b9211c4c972" | ||
18 | |||
19 | |||
20 | S = "${WORKDIR}/NetworkManager-${PV}" | ||
21 | |||
22 | EXTRA_OECONF = " \ | ||
23 | --enable-ifupdown \ | ||
24 | --disable-ifcfg-rh \ | ||
25 | --disable-ifnet \ | ||
26 | --disable-ifcfg-suse \ | ||
27 | --with-netconfig \ | ||
28 | --with-crypto=nss \ | ||
29 | --disable-more-warnings \ | ||
30 | --with-dhclient=${base_sbindir}/dhclient \ | ||
31 | --with-iptables=${sbindir}/iptables \ | ||
32 | --with-tests \ | ||
33 | --with-dnsmasq=${bindir}/dnsmasq \ | ||
34 | " | ||
35 | |||
36 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}" | ||
37 | PACKAGECONFIG[systemd] = " \ | ||
38 | --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \ | ||
39 | --without-systemdsystemunitdir, \ | ||
40 | polkit \ | ||
41 | " | ||
42 | # consolekit is not picked by shlibs, so add it to RDEPENDS too | ||
43 | PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit" | ||
44 | PACKAGECONFIG[concheck] = "--enable-concheck,--disable-concheck,libsoup-2.4" | ||
45 | |||
46 | # Work around dbus permission problems since we lack a proper at_console | ||
47 | do_install_prepend() { | ||
48 | sed -i 's:deny send_destination:allow send_destination:g' ${S}/src/org.freedesktop.NetworkManager.conf | ||
49 | sed -i 's:deny send_destination:allow send_destination:g' ${S}/callouts/nm-dispatcher.conf | ||
50 | sed -i 's:deny send_destination:allow send_destination:g' ${S}/callouts/nm-dhcp-client.conf | ||
51 | sed -i 's:deny send_destination:allow send_destination:g' ${S}/callouts/nm-avahi-autoipd.conf | ||
52 | } | ||
53 | |||
54 | do_install_append () { | ||
55 | install -d ${D}${sysconfdir}/dbus-1/event.d | ||
56 | # Additional test binaries | ||
57 | install -d ${D}${bindir} | ||
58 | install -m 0755 ${B}/test/.libs/libnm* ${D}${bindir} | ||
59 | |||
60 | # Install an empty VPN folder as nm-connection-editor will happily segfault without it :o. | ||
61 | # With or without VPN support built in ;). | ||
62 | install -d ${D}${sysconfdir}/NetworkManager/VPN | ||
63 | |||
64 | rm -rf "${D}${localstatedir}/run" | ||
65 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | ||
66 | } | ||
67 | |||
68 | PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests ${PN}-bash-completion" | ||
69 | |||
70 | FILES_libnmutil += "${libdir}/libnm-util.so.*" | ||
71 | FILES_libnmglib += "${libdir}/libnm-glib.so.*" | ||
72 | FILES_libnmglib-vpn += "${libdir}/libnm-glib-vpn.so.*" | ||
73 | |||
74 | FILES_${PN} += " \ | ||
75 | ${libexecdir} \ | ||
76 | ${libdir}/pppd/*/nm-pppd-plugin.so \ | ||
77 | ${libdir}/NetworkManager/*.so \ | ||
78 | ${datadir}/polkit-1 \ | ||
79 | ${datadir}/dbus-1 \ | ||
80 | ${base_libdir}/udev/* \ | ||
81 | ${systemd_unitdir}/system/NetworkManager-wait-online.service \ | ||
82 | " | ||
83 | |||
84 | RRECOMMENDS_${PN} += "iptables dnsmasq" | ||
85 | RCONFLICTS_${PN} = "connman" | ||
86 | RDEPENDS_${PN} = " \ | ||
87 | wpa-supplicant \ | ||
88 | dhcp-client \ | ||
89 | ${@base_contains('COMBINED_FEATURES', '3gmodem', 'ppp', '', d)} \ | ||
90 | " | ||
91 | |||
92 | FILES_${PN}-dbg += " \ | ||
93 | ${libdir}/NetworkManager/.debug/ \ | ||
94 | ${libdir}/pppd/*/.debug/ \ | ||
95 | " | ||
96 | |||
97 | FILES_${PN}-dev += " \ | ||
98 | ${datadir}/NetworkManager/gdb-cmd \ | ||
99 | ${libdir}/pppd/*/*.la \ | ||
100 | ${libdir}/NetworkManager/*.la \ | ||
101 | " | ||
102 | |||
103 | FILES_${PN}-tests = " \ | ||
104 | ${bindir}/nm-tool \ | ||
105 | ${bindir}/libnm-glib-test \ | ||
106 | ${bindir}/nm-online \ | ||
107 | " | ||
108 | |||
109 | FILES_${PN}-bash-completion = "${datadir}/bash-completion" | ||
110 | |||
111 | SYSTEMD_SERVICE_${PN} = "NetworkManager.service" | ||