[minidlna] bump to latest cvs revision (fixes some bugs with an xbox360 as client)
[opendreambox.git] / meta-opendreambox / recipes-connectivity / wpa-supplicant / wpa-supplicant_0.5.10.bb
1 SUMMARY = "A Client for Wi-Fi Protected Access (WPA)."
2 SECTION = "network"
3 LICENSE = "GPLv2 | BSD"
4 LIC_FILES_CHKSUM = "file://COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
5                     file://README;beginline=1;endline=61;md5=ca1e815679e09dfa7e523c9b141d928e \
6                     file://wpa_supplicant.c;beginline=1;endline=17;md5=ed4cd86297f95122db05f4f027f0ed81"
7 HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
8 DEPENDS = "openssl ${@base_contains("COMBINED_FEATURES", "madwifi", "madwifi-ng", "",d)}"
9 PR = "r1"
10
11 #we introduce MY_ARCH to get 'armv5te' as arch instead of the misleading 'arm' on armv5te builds
12 MY_ARCH := "${PACKAGE_ARCH}"
13 PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'madwifi', '${MACHINE_ARCH}', '${MY_ARCH}', d)}"
14
15 SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
16         file://defconfig-gnutls \
17         file://ifupdown.sh \
18         file://functions.sh \
19         file://driver-zydas.patch \
20         file://driver-ralink.patch \
21 "
22 S = "${WORKDIR}/wpa_supplicant-${PV}"
23
24 PACKAGES_prepend = "wpa-supplicant-passphrase "
25 FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
26
27 RREPLACES_${PN} = "wpa-supplicant-cli"
28
29 RRECOMMENDS_${PN} = "wpa-supplicant-passphrase"
30
31 export HAS_MADWIFI = "${@base_contains('COMBINED_FEATURES', 'madwifi', 1, 0,d)}"
32
33 do_configure () {
34         install -m 0755 ${WORKDIR}/defconfig-gnutls  .config
35
36         if [ "x$HAS_MADWIFI" = "x1" ] ; then
37                 echo "CONFIG_DRIVER_MADWIFI=y" >> .config
38                 echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" >> .config
39         fi
40
41         echo "CONFIG_DRIVER_RALINK=y" >> .config
42         echo "CONFIG_DRIVER_ZYDAS=y" >> .config
43 }
44
45 do_compile () {
46         make
47 }
48
49 do_install () {
50         install -d ${D}${sbindir}
51         install -m 755 wpa_supplicant ${D}${sbindir}
52         install -m 755 wpa_passphrase ${D}${sbindir}
53         install -m 755 wpa_cli        ${D}${sbindir}
54
55         install -d ${D}${localstatedir}/run/wpa_supplicant
56
57         install -d ${D}${docdir}/wpa_supplicant
58         install -m 644 README ${D}${docdir}/wpa_supplicant
59
60         install -d ${D}${sysconfdir}/network/if-pre-up.d/
61         install -d ${D}${sysconfdir}/network/if-post-down.d/
62         install -d ${D}${sysconfdir}/network/if-down.d/
63
64         install -d ${D}${sysconfdir}/wpa_supplicant
65         install -m 755 ${WORKDIR}/ifupdown.sh ${D}${sysconfdir}/wpa_supplicant/
66         install -m 755 ${WORKDIR}/functions.sh ${D}${sysconfdir}/wpa_supplicant
67         
68         ln -s /etc/wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-pre-up.d/wpasupplicant
69         ln -s /etc/wpa_supplicant/ifupdown.sh ${D}${sysconfdir}/network/if-post-down.d/wpasupplicant
70 }
71
72 SRC_URI[md5sum] = "9e7b99da67c47d81121368c6d580d069"
73 SRC_URI[sha256sum] = "c5c5ae89b4d3a247d4f5dcfa37e86df248d7e483d42636ef1f82c0bc48597dde"