diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2014-02-28 17:43:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-02 17:25:28 +0000 |
commit | e6e5f64bafb692b7bf9d1c536a09ea9517fa24e6 (patch) | |
tree | 1e92bf557c967e27f4be4b02ddb1ead075add3fa /meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc | |
parent | 0d47ab74b115802c4b35c203abc7befcca2ebdba (diff) | |
download | poky-e6e5f64bafb692b7bf9d1c536a09ea9517fa24e6.tar.gz |
wpa-supplicant: upgrade to 2.1
- USE {BP} variable;
- Updated naming scheme;
- Updated copyright owners.
- Update defconfig file, is now in
sync with current version;
as such, more functionality can
be enabled for wpa-supplicant.
- removed register-autoscan-correctly.patch,
included in upstream.
(From OE-Core rev: 361d334cabdeb9f25788e9f4b84e8cf7b28d26d3)
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc')
-rw-r--r-- | meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc deleted file mode 100644 index f9c5ea7f9c..0000000000 --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc +++ /dev/null | |||
@@ -1,89 +0,0 @@ | |||
1 | SUMMARY = "Client for Wi-Fi Protected Access (WPA)" | ||
2 | HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/" | ||
3 | BUGTRACKER = "http://hostap.epitest.fi/bugz/" | ||
4 | SECTION = "network" | ||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \ | ||
7 | file://README;md5=5cb758942d25f6f61fd4ac388fd446fa \ | ||
8 | file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=12;md5=cba4fa09fa364da845ca546f21008909" | ||
9 | DEPENDS = "gnutls dbus libnl openssl" | ||
10 | RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli" | ||
11 | |||
12 | inherit systemd | ||
13 | |||
14 | SYSTEMD_SERVICE_${PN} = "wpa_supplicant.service wpa_supplicant-nl80211@.service wpa_supplicant-wired@.service" | ||
15 | SYSTEMD_AUTO_ENABLE = "disable" | ||
16 | |||
17 | SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \ | ||
18 | file://defconfig-gnutls \ | ||
19 | file://wpa-supplicant.sh \ | ||
20 | file://wpa_supplicant.conf \ | ||
21 | file://wpa_supplicant.conf-sane \ | ||
22 | file://99_wpa_supplicant \ | ||
23 | file://fix-libnl3-host-contamination.patch \ | ||
24 | file://register-autoscan-correctly.patch" | ||
25 | |||
26 | S = "${WORKDIR}/wpa_supplicant-${PV}" | ||
27 | |||
28 | PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli " | ||
29 | FILES_wpa-supplicant-passphrase = "${bindir}/wpa_passphrase" | ||
30 | FILES_wpa-supplicant-cli = "${sbindir}/wpa_cli" | ||
31 | FILES_${PN} += "${datadir}/dbus-1/system-services/*" | ||
32 | CONFFILES_${PN} += "${sysconfdir}/wpa_supplicant.conf" | ||
33 | |||
34 | do_configure () { | ||
35 | install -m 0755 ${WORKDIR}/defconfig-gnutls wpa_supplicant/.config | ||
36 | echo "CFLAGS +=\"-I${STAGING_INCDIR}/libnl3\"" >> wpa_supplicant/.config | ||
37 | } | ||
38 | |||
39 | export EXTRA_CFLAGS = "${CFLAGS}" | ||
40 | export BINDIR = "${sbindir}" | ||
41 | |||
42 | do_compile () { | ||
43 | unset CFLAGS CPPFLAGS CXXFLAGS | ||
44 | sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules | ||
45 | oe_runmake -C wpa_supplicant | ||
46 | } | ||
47 | |||
48 | do_install () { | ||
49 | install -d ${D}${sbindir} | ||
50 | install -m 755 wpa_supplicant/wpa_supplicant ${D}${sbindir} | ||
51 | install -m 755 wpa_supplicant/wpa_cli ${D}${sbindir} | ||
52 | |||
53 | install -d ${D}${bindir} | ||
54 | install -m 755 wpa_supplicant/wpa_passphrase ${D}${bindir} | ||
55 | |||
56 | install -d ${D}${docdir}/wpa_supplicant | ||
57 | install -m 644 wpa_supplicant/README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant | ||
58 | |||
59 | install -d ${D}${sysconfdir} | ||
60 | install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf | ||
61 | |||
62 | install -d ${D}${sysconfdir}/network/if-pre-up.d/ | ||
63 | install -d ${D}${sysconfdir}/network/if-post-down.d/ | ||
64 | install -d ${D}${sysconfdir}/network/if-down.d/ | ||
65 | install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant | ||
66 | cd ${D}${sysconfdir}/network/ && \ | ||
67 | ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant | ||
68 | |||
69 | install -d ${D}/${sysconfdir}/dbus-1/system.d | ||
70 | install -m 644 ${S}/wpa_supplicant/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d | ||
71 | install -d ${D}/${datadir}/dbus-1/system-services | ||
72 | install -m 644 ${S}/wpa_supplicant/dbus/*.service ${D}/${datadir}/dbus-1/system-services | ||
73 | |||
74 | if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
75 | install -d ${D}/${systemd_unitdir}/system | ||
76 | install -m 644 ${S}/wpa_supplicant/systemd/*.service ${D}/${systemd_unitdir}/system | ||
77 | fi | ||
78 | |||
79 | install -d ${D}/etc/default/volatiles | ||
80 | install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles | ||
81 | } | ||
82 | |||
83 | pkg_postinst_wpa-supplicant () { | ||
84 | # If we're offline, we don't need to do this. | ||
85 | if [ "x$D" = "x" ]; then | ||
86 | killall -q -HUP dbus-daemon || true | ||
87 | fi | ||
88 | |||
89 | } | ||