summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
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.inc75
1 files changed, 75 insertions, 0 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
new file mode 100644
index 0000000000..78ce914c31
--- /dev/null
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
@@ -0,0 +1,75 @@
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"
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://defaults-sane \
15 file://wpa-supplicant.sh \
16 file://wpa_supplicant.conf \
17 file://wpa_supplicant.conf-sane \
18 file://99_wpa_supplicant"
19
20S = "${WORKDIR}/wpa_supplicant-${PV}/wpa_supplicant"
21
22PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
23FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
24FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
25
26do_configure () {
27 install -m 0755 ${WORKDIR}/defconfig-gnutls .config
28}
29
30export EXTRA_CFLAGS = "${CFLAGS}"
31do_compile () {
32 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
33 oe_runmake
34}
35
36do_install () {
37 install -d ${D}${sbindir}
38 install -m 755 wpa_supplicant ${D}${sbindir}
39 install -m 755 wpa_passphrase ${D}${sbindir}
40 install -m 755 wpa_cli ${D}${sbindir}
41
42 install -d ${D}${docdir}/wpa_supplicant
43 install -m 644 README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant
44
45 install -d ${D}${sysconfdir}/default
46 install -m 600 ${WORKDIR}/defaults-sane ${D}${sysconfdir}/default/wpa
47 install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf
48
49 install -d ${D}${sysconfdir}/network/if-pre-up.d/
50 install -d ${D}${sysconfdir}/network/if-post-down.d/
51 install -d ${D}${sysconfdir}/network/if-down.d/
52 install -m 644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir}
53 install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant
54 cd ${D}${sysconfdir}/network/ && \
55 ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
56
57 install -d ${D}/${sysconfdir}/dbus-1/system.d
58 install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
59
60 install -d ${D}/etc/default/volatiles
61 install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
62}
63
64pkg_postinst_wpa-supplicant () {
65 # can't do this offline
66 if [ "x$D" != "x" ]; then
67 exit 1
68 fi
69
70 DBUSPID=`pidof dbus-daemon`
71
72 if [ "x$DBUSPID" != "x" ]; then
73 /etc/init.d/dbus-1 reload
74 fi
75}