summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2014-02-28 17:43:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-02 17:25:28 +0000
commite6e5f64bafb692b7bf9d1c536a09ea9517fa24e6 (patch)
tree1e92bf557c967e27f4be4b02ddb1ead075add3fa /meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc
parent0d47ab74b115802c4b35c203abc7befcca2ebdba (diff)
downloadpoky-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.inc')
-rw-r--r--meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc91
1 files changed, 91 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc
new file mode 100644
index 0000000000..11e82877b9
--- /dev/null
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant.inc
@@ -0,0 +1,91 @@
1SUMMARY = "Client for Wi-Fi Protected Access (WPA)"
2HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
3BUGTRACKER = "http://hostap.epitest.fi/bugz/"
4SECTION = "network"
5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \
7 file://README;beginline=1;endline=56;md5=a07250b28e857455336bb59fc31cb845 \
8 file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=12;md5=e8e021e30f3a6ab7c341b66b86626a5a"
9DEPENDS = "gnutls dbus libnl openssl"
10RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
11
12inherit systemd
13
14SYSTEMD_SERVICE_${PN} = "wpa_supplicant.service wpa_supplicant-nl80211@.service wpa_supplicant-wired@.service"
15SYSTEMD_AUTO_ENABLE = "disable"
16
17SRC_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 "
25SRC_URI[md5sum] = "e96b8db5a8171cd17a5b2012d6ad7cc7"
26SRC_URI[sha256sum] = "91632e7e3b49a340ce408e2f978a93546a697383abf2e5a60f146faae9e1b277"
27
28S = "${WORKDIR}/wpa_supplicant-${PV}"
29
30PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
31FILES_wpa-supplicant-passphrase = "${bindir}/wpa_passphrase"
32FILES_wpa-supplicant-cli = "${sbindir}/wpa_cli"
33FILES_${PN} += "${datadir}/dbus-1/system-services/*"
34CONFFILES_${PN} += "${sysconfdir}/wpa_supplicant.conf"
35
36do_configure () {
37 install -m 0755 ${WORKDIR}/defconfig-gnutls wpa_supplicant/.config
38 echo "CFLAGS +=\"-I${STAGING_INCDIR}/libnl3\"" >> wpa_supplicant/.config
39}
40
41export EXTRA_CFLAGS = "${CFLAGS}"
42export BINDIR = "${sbindir}"
43
44do_compile () {
45 unset CFLAGS CPPFLAGS CXXFLAGS
46 sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules
47 oe_runmake -C wpa_supplicant
48}
49
50do_install () {
51 install -d ${D}${sbindir}
52 install -m 755 wpa_supplicant/wpa_supplicant ${D}${sbindir}
53 install -m 755 wpa_supplicant/wpa_cli ${D}${sbindir}
54
55 install -d ${D}${bindir}
56 install -m 755 wpa_supplicant/wpa_passphrase ${D}${bindir}
57
58 install -d ${D}${docdir}/wpa_supplicant
59 install -m 644 wpa_supplicant/README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant
60
61 install -d ${D}${sysconfdir}
62 install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf
63
64 install -d ${D}${sysconfdir}/network/if-pre-up.d/
65 install -d ${D}${sysconfdir}/network/if-post-down.d/
66 install -d ${D}${sysconfdir}/network/if-down.d/
67 install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant
68 cd ${D}${sysconfdir}/network/ && \
69 ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
70
71 install -d ${D}/${sysconfdir}/dbus-1/system.d
72 install -m 644 ${S}/wpa_supplicant/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
73 install -d ${D}/${datadir}/dbus-1/system-services
74 install -m 644 ${S}/wpa_supplicant/dbus/*.service ${D}/${datadir}/dbus-1/system-services
75
76 if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
77 install -d ${D}/${systemd_unitdir}/system
78 install -m 644 ${S}/wpa_supplicant/systemd/*.service ${D}/${systemd_unitdir}/system
79 fi
80
81 install -d ${D}/etc/default/volatiles
82 install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
83}
84
85pkg_postinst_wpa-supplicant () {
86 # If we're offline, we don't need to do this.
87 if [ "x$D" = "x" ]; then
88 killall -q -HUP dbus-daemon || true
89 fi
90
91}