summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2012-07-18 15:36:28 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-19 17:18:11 +0100
commit4f2da78be65eba3760142144ad7ba6abef8408f4 (patch)
treee608e8333af0306bade03dd7114f62fea93247de /meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
parent90fbd7f6b1c462a179af2fb537a6b401402a798e (diff)
downloadpoky-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.inc79
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 @@
1DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
2HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
3BUGTRACKER = "http://hostap.epitest.fi/bugz/"
4SECTION = "network"
5LICENSE = "GPLv2 | BSD"
6LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
7 file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
8 file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
9DEPENDS = "gnutls dbus libnl"
10RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
11
12SRC_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
19S = "${WORKDIR}/wpa_supplicant-${PV}/wpa_supplicant"
20
21PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
22FILES_wpa-supplicant-passphrase = "${bindir}/wpa_passphrase"
23FILES_wpa-supplicant-cli = "${sbindir}/wpa_cli"
24FILES_${PN} += "${datadir}/dbus-1/system-services/*"
25CONFFILES_${PN} += "${sysconfdir}/wpa_supplicant.conf"
26
27do_configure () {
28 install -m 0755 ${WORKDIR}/defconfig-gnutls .config
29}
30
31export EXTRA_CFLAGS = "${CFLAGS}"
32do_compile () {
33 unset CFLAGS CPPFLAGS CXXFLAGS
34 oe_runmake
35}
36
37do_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
68pkg_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}