diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2012-07-18 15:36:28 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 17:18:11 +0100 |
commit | 4f2da78be65eba3760142144ad7ba6abef8408f4 (patch) | |
tree | e608e8333af0306bade03dd7114f62fea93247de /meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc | |
parent | 90fbd7f6b1c462a179af2fb537a6b401402a798e (diff) | |
download | poky-4f2da78be65eba3760142144ad7ba6abef8408f4.tar.gz |
wpa-supplicant: upgrade to 1.0
README file is changed.
Some phrases were reformulated, but the semanthics are the same.
Copyright has been renewed.
Both licenses (GPL v2 and BSD) have been added explicitly.
wpa_supplicant.c is changed regarding licenses body.
Copyright has been renewed.
(From OE-Core rev: 3c02800716aafbc12b15b3dbb3bad0dc3b942cc1)
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-0.7.inc')
-rw-r--r-- | meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc deleted file mode 100644 index 6c84202a49..0000000000 --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | DESCRIPTION = "A 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 = "GPLv2 | BSD" | ||
6 | LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \ | ||
7 | file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738 \ | ||
8 | file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e" | ||
9 | DEPENDS = "gnutls dbus libnl" | ||
10 | RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli" | ||
11 | |||
12 | SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \ | ||
13 | file://defconfig-gnutls \ | ||
14 | file://wpa-supplicant.sh \ | ||
15 | file://wpa_supplicant.conf \ | ||
16 | file://wpa_supplicant.conf-sane \ | ||
17 | file://99_wpa_supplicant" | ||
18 | |||
19 | S = "${WORKDIR}/wpa_supplicant-${PV}/wpa_supplicant" | ||
20 | |||
21 | PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli " | ||
22 | FILES_wpa-supplicant-passphrase = "${bindir}/wpa_passphrase" | ||
23 | FILES_wpa-supplicant-cli = "${sbindir}/wpa_cli" | ||
24 | FILES_${PN} += "${datadir}/dbus-1/system-services/*" | ||
25 | CONFFILES_${PN} += "${sysconfdir}/wpa_supplicant.conf" | ||
26 | |||
27 | do_configure () { | ||
28 | install -m 0755 ${WORKDIR}/defconfig-gnutls .config | ||
29 | } | ||
30 | |||
31 | export EXTRA_CFLAGS = "${CFLAGS}" | ||
32 | do_compile () { | ||
33 | unset CFLAGS CPPFLAGS CXXFLAGS | ||
34 | oe_runmake | ||
35 | } | ||
36 | |||
37 | do_install () { | ||
38 | install -d ${D}${sbindir} | ||
39 | install -m 755 wpa_supplicant ${D}${sbindir} | ||
40 | install -m 755 wpa_cli ${D}${sbindir} | ||
41 | |||
42 | install -d ${D}${bindir} | ||
43 | install -m 755 wpa_passphrase ${D}${bindir} | ||
44 | |||
45 | install -d ${D}${docdir}/wpa_supplicant | ||
46 | install -m 644 README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant | ||
47 | |||
48 | install -d ${D}${sysconfdir} | ||
49 | install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf | ||
50 | |||
51 | install -d ${D}${sysconfdir}/network/if-pre-up.d/ | ||
52 | install -d ${D}${sysconfdir}/network/if-post-down.d/ | ||
53 | install -d ${D}${sysconfdir}/network/if-down.d/ | ||
54 | install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant | ||
55 | cd ${D}${sysconfdir}/network/ && \ | ||
56 | ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant | ||
57 | |||
58 | install -d ${D}/${sysconfdir}/dbus-1/system.d | ||
59 | install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d | ||
60 | install -d ${D}/${datadir}/dbus-1/system-services | ||
61 | install -m 644 ${S}/dbus/*.service ${D}/${datadir}/dbus-1/system-services | ||
62 | sed -i -e s:${base_sbindir}:${sbindir}:g ${D}/${datadir}/dbus-1/system-services/*.service | ||
63 | |||
64 | install -d ${D}/etc/default/volatiles | ||
65 | install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles | ||
66 | } | ||
67 | |||
68 | pkg_postinst_wpa-supplicant () { | ||
69 | # If we're offline, we don't need to do this. | ||
70 | if [ "x$D" != "x" ]; then | ||
71 | exit 0 | ||
72 | fi | ||
73 | |||
74 | DBUSPID=`pidof dbus-daemon` | ||
75 | |||
76 | if [ "x$DBUSPID" != "x" ]; then | ||
77 | /etc/init.d/dbus-1 reload || true | ||
78 | fi | ||
79 | } | ||