summaryrefslogtreecommitdiff
path: root/packages/wpa-supplicant
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2006-11-26 11:07:28 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2006-11-26 11:07:28 +0000
commitd4c2c4a6b7af45df3392ae03b0c9d0750fa56853 (patch)
tree79372db05f01579f4f3d5e67b92c71d6152b8570 /packages/wpa-supplicant
parent0456cdbe729bc1d2a427900d1d25fe92e40873b3 (diff)
wpa-supplicant: add 0.5.5 with optional madwifi-ng support
- machines with PCI feature will get madwifi-ng support and package will be MACHINE specific - this is result of my RFC [1] and Koen's solution [2] 1. http://lists.linuxtogo.org/pipermail/openembedded-devel/2006-October/000698.html 2. http://lists.linuxtogo.org/pipermail/openembedded-devel/2006-November/000848.html
Diffstat (limited to 'packages/wpa-supplicant')
-rw-r--r--packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty0
-rw-r--r--packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch19
-rw-r--r--packages/wpa-supplicant/wpa-supplicant_0.5.5.bb62
3 files changed, 81 insertions, 0 deletions
diff --git a/packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty b/packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/wpa-supplicant/wpa-supplicant-0.5.5/.mtn2git_empty
diff --git a/packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch b/packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch
new file mode 100644
index 0000000000..795306bb35
--- /dev/null
+++ b/packages/wpa-supplicant/wpa-supplicant-0.5.5/gnutlsfix.patch
@@ -0,0 +1,19 @@
+Index: wpa_supplicant-0.5.5/tls_gnutls.c
+===================================================================
+--- wpa_supplicant-0.5.5.orig/tls_gnutls.c 2006-06-25 03:05:07.000000000 +0200
++++ wpa_supplicant-0.5.5/tls_gnutls.c 2006-10-29 15:12:21.000000000 +0100
+@@ -1029,8 +1029,13 @@
+ const u8 *in_data, size_t in_len,
+ size_t *out_len)
+ {
++ u8 *appl_data;
++ size_t appl_data_len;
++
++ appl_data = NULL;
++
+ return tls_connection_handshake(ssl_ctx, conn, in_data, in_len,
+- out_len);
++ out_len, appl_data, appl_data_len);
+ }
+
+
diff --git a/packages/wpa-supplicant/wpa-supplicant_0.5.5.bb b/packages/wpa-supplicant/wpa-supplicant_0.5.5.bb
new file mode 100644
index 0000000000..8742cf50bc
--- /dev/null
+++ b/packages/wpa-supplicant/wpa-supplicant_0.5.5.bb
@@ -0,0 +1,62 @@
+DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
+SECTION = "network"
+LICENSE = "GPL"
+HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
+DEPENDS = "gnutls ${@base_contains("COMBINED_FEATURES", "pci", "madwifi-ng", "",d)}"
+PACKAGE_ARCH = "${@base_contains('COMBINED_FEATURES', 'pci', ${MACHINE}, ${TARGET_ARCH}, d)}"
+
+DEFAULT_PREFERENCE = "-2"
+
+SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
+ file://defconfig-gnutls \
+ file://init.sh \
+ file://gnutlsfix.patch;patch=1 \
+ file://defaults-sane \
+ file://wpa_supplicant.conf \
+ file://wpa_supplicant.conf-sane"
+
+S = "${WORKDIR}/wpa_supplicant-${PV}"
+
+PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
+FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
+FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
+
+RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
+
+INITSCRIPT_NAME = "wpa"
+INITSCRIPT_PARAMS = "defaults 10"
+inherit update-rc.d
+
+export HAS_PCI = "${@base_contains('COMBINED_FEATURES', 'pci', 1, 0,d)}"
+
+do_configure () {
+ install -m 0755 ${WORKDIR}/defconfig-gnutls .config
+
+ if [ "x$HAS_PCI" == "x1" ] then; do
+ echo "CONFIG_DRIVER_MADWIFI=y" >> .config
+ echo "CFLAGS += -I${STAGING_INCDIR}/madwifi-ng" >> .config
+ fi
+}
+
+do_compile () {
+ make
+}
+
+do_install () {
+ install -d ${D}${sbindir}
+ install -m 755 wpa_supplicant ${D}${sbindir}
+ install -m 755 wpa_passphrase ${D}${sbindir}
+ install -m 755 wpa_cli ${D}${sbindir}
+
+ install -d ${D}${localstatedir}/run/wpa_supplicant
+
+ install -d ${D}${docdir}/wpa_supplicant
+ install -m 644 README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant
+
+ install -d ${D}${sysconfdir}/init.d
+ install -m 700 ${WORKDIR}/init.sh ${D}${sysconfdir}/init.d/wpa
+
+ install -d ${D}${sysconfdir}/default
+ install -m 600 ${WORKDIR}/defaults-sane ${D}${sysconfdir}/default/wpa
+ install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf
+}