On Thursday 26 November 2009 12:15:39 Michael Olbrich wrote: > Please take a look at rules/busybox.make. I thinks that's a better way to do > this. > Just add config options without prompt and the correct default for the ones > that don't need to be configured. grep + sed can do the rest. > ... > And it's @$(call touch) and @$(call targetinfo). The latest > 'ptxdist newpacket target' should generate the latest syntax.
Hi! I hope this is a better one for you. If there is still something "wrong" or could be better -- let me know. The possibility to configure more options what would be supported by wpa_supplicant (different encryption methods, ...) could be integrated later. Nice hint to use the ptxconfig file with grep and sed. === This patch adds a new package names 'wpa_supplicant'. Official homepage of the package: http://hostap.epitest.fi/wpa_supplicant/ Signed-off-by: Markus Rathgeb <[email protected]> --- /dev/null => rules/wpa_supplicant.in | 83 ++++++++++++++++++++++++ /dev/null => rules/wpa_supplicant.make | 110 ++++++++++++++++++++++++++++++++ 2 files changed, 193 insertions(+), 0 deletions(-) diff --git a/rules/wpa_supplicant.in b/rules/wpa_supplicant.in new file mode 100644 index 0000000..336eb7b --- /dev/null +++ b/rules/wpa_supplicant.in @@ -0,0 +1,83 @@ +## SECTION=networking + +menuconfig WPA_SUPPLICANT + tristate + prompt "wpa_supplicant" + select OPENSSL + select LIBNL + help + IEEE 802.1X/WPA supplicant for secure wireless transfers + +if WPA_SUPPLICANT + +menu "wpa_supplicant drivers" + +config WPA_SUPPLICANT_DRIVER_HOSTAP + bool + prompt "HOSTAP" + help + TBD + +config WPA_SUPPLICANT_DRIVER_HERMES + bool + prompt "HERMES" + help + TBD + +config WPA_SUPPLICANT_DRIVER_MADWIFI + bool + prompt "MADWIFI" + help + TBD + +config WPA_SUPPLICANT_DRIVER_ATMEL + bool + prompt "ATMEL" + help + TBD + +config WPA_SUPPLICANT_DRIVER_WEXT + bool + prompt "WEXT" + help + TBD + +config WPA_SUPPLICANT_DRIVER_RALINK + bool + prompt "RALINK" + help + TBD + +config WPA_SUPPLICANT_DRIVER_NDISWRAPPER + bool + prompt "NDISWRAPPER" + help + TBD + +config WPA_SUPPLICANT_DRIVER_BROADCOM + bool + prompt "BROADCOM" + help + TBD + +config WPA_SUPPLICANT_DRIVER_IPW + bool + prompt "IPW" + help + TBD + +config WPA_SUPPLICANT_DRIVER_BSD + bool + prompt "BSD" + help + TBD + +config WPA_SUPPLICANT_DRIVER_NDIS + bool + prompt "NDIS" + help + TBD + +endmenu + +endif diff --git a/rules/wpa_supplicant.make b/rules/wpa_supplicant.make new file mode 100644 index 0000000..20f09d4 --- /dev/null +++ b/rules/wpa_supplicant.make @@ -0,0 +1,110 @@ +# -*-makefile-*- +# +# Copyright (C) 2009 by Markus Rathgeb <[email protected]> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_WPA_SUPPLICANT) += wpa_supplicant + +# +# Paths and names +# +WPA_SUPPLICANT_NAME := wpa_supplicant +WPA_SUPPLICANT_VERSION := 0.6.9 +WPA_SUPPLICANT := $(WPA_SUPPLICANT_NAME)-$(WPA_SUPPLICANT_VERSION) +WPA_SUPPLICANT_SUFFIX := tar.gz +WPA_SUPPLICANT_URL := http://hostap.epitest.fi/releases/$(WPA_SUPPLICANT).$(WPA_SUPPLICANT_SUFFIX) +WPA_SUPPLICANT_SOURCE := $(SRCDIR)/$(WPA_SUPPLICANT).$(WPA_SUPPLICANT_SUFFIX) +WPA_SUPPLICANT_DIR := $(BUILDDIR)/$(WPA_SUPPLICANT)/$(WPA_SUPPLICANT_NAME) +WPA_SUPPLICANT_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(WPA_SUPPLICANT_SOURCE): + @$(call targetinfo) + @$(call get, WPA_SUPPLICANT) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +WPA_SUPPLICANT_PATH := PATH=$(CROSS_PATH) +WPA_SUPPLICANT_ENV := $(CROSS_ENV) + +# +# autoconf +# +WPA_SUPPLICANT_AUTOCONF := $(CROSS_AUTOCONF_USR) + +$(STATEDIR)/wpa_supplicant.prepare: + @$(call targetinfo) + + cd $(WPA_SUPPLICANT_DIR) && \ + $(WPA_SUPPLICANT_PATH) $(WPA_SUPPLICANT_ENV) + @rm -f $(WPA_SUPPLICANT_DIR)/.config + @echo "CC=$(CROSS_CC)" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CFLAGS += -I$(SYSROOT)/include" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CFLAGS += -I$(SYSROOT)/usr/include" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "LDFLAGS += -L$(SYSROOT)/lib" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "LDFLAGS += -L$(SYSROOT)/usr/lib" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_BACKEND=file" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_CTRL_IFACE=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_GTC=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_LEAP=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_MD5=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_MSCHAPV2=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_OTP=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_PEAP=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_TLS=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_EAP_TTLS=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_IEEE8021X_EAPOL=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_PEERKEY=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_PKCS12=y" >> $(WPA_SUPPLICANT_DIR)/.config && \ + echo "CONFIG_SMARTCARD=y" >> $(WPA_SUPPLICANT_DIR)/.config + @grep -e PTXCONF_WPA_SUPPLICANT_ $(PTXDIST_PTXCONFIG) | \ + sed -e 's/PTXCONF_WPA_SUPPLICANT_/CONFIG_/g' >> $(WPA_SUPPLICANT_DIR)/.config + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/wpa_supplicant.targetinstall: + @$(call targetinfo) + + @$(call install_init, wpa_supplicant) + @$(call install_fixup, wpa_supplicant,PACKAGE,wpa-supplicant) + @$(call install_fixup, wpa_supplicant,PRIORITY,optional) + @$(call install_fixup, wpa_supplicant,VERSION,$(WPA_SUPPLICANT_VERSION)) + @$(call install_fixup, wpa_supplicant,SECTION,base) + @$(call install_fixup, wpa_supplicant,AUTHOR,"Markus Rathgeb <[email protected]>") + @$(call install_fixup, wpa_supplicant,DEPENDS,) + @$(call install_fixup, wpa_supplicant,DESCRIPTION,missing) + + @$(call install_copy, wpa_supplicant, 0, 0, 0755, $(WPA_SUPPLICANT_DIR)/wpa_supplicant, /usr/sbin/wpa_supplicant) + @$(call install_copy, wpa_supplicant, 0, 0, 0755, $(WPA_SUPPLICANT_DIR)/wpa_cli, /usr/bin/wpa_cli) + + @$(call install_finish, wpa_supplicant) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +wpa_supplicant_clean: + rm -rf $(STATEDIR)/wpa_supplicant.* + rm -rf $(PKGDIR)/wpa_supplicant_* + rm -rf $(WPA_SUPPLICANT_DIR) + +# vim: syntax=make -- Markus Rathgeb Public Key Server: http://wwwkeys.us.pgp.net/ bzw. hkp://wwwkeys.us.pgp.net/ Public Key Server: http://stinkfoot.org:11371/ bzw. hkp://stinkfoot.org "Erst nachdem wir alles verloren haben, haben wir die Freiheit, alles zu tun." "It's only after we've lost everything, that we're free to do anything!"
signature.asc
Description: This is a digitally signed message part.
-- ptxdist mailing list [email protected]
