summaryrefslogtreecommitdiff
path: root/package/hostapd
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/hostapd
Initial import
Diffstat (limited to 'package/hostapd')
-rw-r--r--package/hostapd/Config.in41
-rw-r--r--package/hostapd/Makefile35
-rw-r--r--package/hostapd/files/hostapd.conf23
-rw-r--r--package/hostapd/files/hostapd.config77
-rw-r--r--package/hostapd/ipkg/hostapd-utils.control5
-rw-r--r--package/hostapd/ipkg/hostapd.conffiles1
-rw-r--r--package/hostapd/ipkg/hostapd.control6
-rw-r--r--package/hostapd/patches/patch-hostapd_Makefile12
8 files changed, 200 insertions, 0 deletions
diff --git a/package/hostapd/Config.in b/package/hostapd/Config.in
new file mode 100644
index 000000000..562f1f23c
--- /dev/null
+++ b/package/hostapd/Config.in
@@ -0,0 +1,41 @@
+config ADK_COMPILE_HOSTAPD
+ tristate
+ default n
+ depends ADK_PACKAGE_HOSTAPD || ADK_PACKAGE_HOSTAPD_UTILS
+
+config ADK_PACKAGE_HOSTAPD
+ prompt "hostapd........................... An IEEE 802.11 AP, IEEE 802.1x/WPA/WPA2/EAP/RADIUS Authenticator"
+ tristate
+ default n
+ select ADK_COMPILE_HOSTAPD
+ select ADK_PACKAGE_LIBOPENSSL
+ select ADK_PACKAGE_LIBNL
+ help
+
+ hostapd is a user space daemon for access point and
+ authentication servers. It implements IEEE 802.11 access point
+ management, IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS
+ client, EAP server, and RADIUS authentication server.
+
+ http://hostap.epitest.fi/hostapd/
+
+ Includes:
+ - hostapd
+
+config ADK_PACKAGE_HOSTAPD_UTILS
+ prompt "hostapd-utils..................... An IEEE 802.11 AP, IEEE 802.1x/WPA/WPA2/EAP/RADIUS Authenticator (CLI utility)"
+ tristate
+ default n
+ select ADK_COMPILE_HOSTAPD
+ depends on ADK_PACKAGE_HOSTAPD
+ help
+
+ hostapd is a user space daemon for access point and
+ authentication servers. It implements IEEE 802.11 access point
+ management, IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS
+ client, EAP server, and RADIUS authentication server.
+
+ http://hostap.epitest.fi/hostapd/
+
+ Includes:
+ - hostapd_cli
diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile
new file mode 100644
index 000000000..b5e957719
--- /dev/null
+++ b/package/hostapd/Makefile
@@ -0,0 +1,35 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= hostapd
+PKG_VERSION:= 0.6.9
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 83630d11fa66ade9091f1b304fccd74c
+MASTER_SITES:= http://hostap.epitest.fi/releases/
+
+WRKSRC= ${WRKDIST}/${PKG_NAME}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,HOSTAPD,hostapd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,HOSTAPD_UTILS,hostapd-utils,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE= auto
+#MAKE_FLAGS+= OPTFLAGS="${TARGET_CFLAGS}"
+
+do-configure:
+ ${CP} ./files/hostapd.config ${WRKBUILD}/.config
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_HOSTAPD_UTILS}/usr/sbin
+ ${INSTALL_BIN} ${WRKBUILD}/hostapd_cli ${IDIR_HOSTAPD_UTILS}/usr/sbin/
+ ${INSTALL_DIR} ${IDIR_HOSTAPD}/etc
+ ${INSTALL_DIR} ${IDIR_HOSTAPD}/usr/sbin
+ ${INSTALL_BIN} ${WRKBUILD}/hostapd ${IDIR_HOSTAPD}/usr/sbin/
+ ${INSTALL_DATA} ./files/hostapd.conf ${IDIR_HOSTAPD}/etc
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/hostapd/files/hostapd.conf b/package/hostapd/files/hostapd.conf
new file mode 100644
index 000000000..8676e96a6
--- /dev/null
+++ b/package/hostapd/files/hostapd.conf
@@ -0,0 +1,23 @@
+##### hostapd configuration file #####
+interface=wlan0
+#bridge=br0
+driver=nl80211
+logger_syslog=-1
+logger_syslog_level=0
+logger_stdout=-1
+logger_stdout_level=0
+ctrl_interface=/var/run/hostapd
+ctrl_interface_group=0
+# set ssid, channel and mode
+ssid=openadk
+hw_mode=g
+channel=1
+# enable WPA2 (WEP/WPA disabled)
+macaddr_acl=0
+auth_algs=1
+ignore_broadcast_ssid=0
+wpa=2
+wpa_passphrase=secret123
+wpa_key_mgmt=WPA-PSK
+wpa_pairwise=TKIP
+rsn_pairwise=CCMP
diff --git a/package/hostapd/files/hostapd.config b/package/hostapd/files/hostapd.config
new file mode 100644
index 000000000..7f9815dff
--- /dev/null
+++ b/package/hostapd/files/hostapd.config
@@ -0,0 +1,77 @@
+# Example hostapd build time configuration
+#
+# This file lists the configuration options that are used when building the
+# hostapd binary. All lines starting with # are ignored. Configuration option
+# lines must be commented out complete, if they are not to be included, i.e.,
+# just setting VARIABLE=n is not disabling that variable.
+#
+# This file is included in Makefile, so variables like CFLAGS and LIBS can also
+# be modified from here. In most cass, these lines should use += in order not
+# to override previous values of the variables.
+
+# Driver interface for drivers using the nl80211 kernel interface
+CONFIG_DRIVER_NL80211=y
+
+# Driver interface for Host AP driver
+#CONFIG_DRIVER_HOSTAP=y
+
+# Driver interface for wired authenticator
+#CONFIG_DRIVER_WIRED=y
+
+# Driver interface for madwifi driver
+#CONFIG_DRIVER_MADWIFI=y
+#CFLAGS += -I../head # change to reflect local setup; directory for madwifi src
+
+# Driver interface for Prism54 driver
+#CONFIG_DRIVER_PRISM54=y
+
+# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
+#CONFIG_DRIVER_BSD=y
+#CFLAGS += -I/usr/local/include
+#LIBS += -L/usr/local/lib
+
+# IEEE 802.11F/IAPP
+#CONFIG_IAPP=y
+
+# WPA2/IEEE 802.11i RSN pre-authentication
+# CONFIG_RSN_PREAUTH=y
+
+# Integrated EAP authenticator
+#CONFIG_EAP=y
+
+# EAP-MD5 for the integrated EAP authenticator
+#CONFIG_EAP_MD5=y
+
+# EAP-TLS for the integrated EAP authenticator
+#CONFIG_EAP_TLS=y
+
+# EAP-MSCHAPv2 for the integrated EAP authenticator
+#CONFIG_EAP_MSCHAPV2=y
+
+# EAP-PEAP for the integrated EAP authenticator
+#CONFIG_EAP_PEAP=y
+
+# EAP-PSK for the integrated EAP authenticator
+#CONFIG_EAP_PSK=y
+
+# EAP-GTC for the integrated EAP authenticator
+#CONFIG_EAP_GTC=y
+
+# EAP-TTLS for the integrated EAP authenticator
+#CONFIG_EAP_TTLS=y
+
+# EAP-SIM for the integrated EAP authenticator
+#CONFIG_EAP_SIM=y
+
+# PKCS#12 (PFX) support (used to read private key and certificate file from
+# a file that usually has extension .p12 or .pfx)
+#CONFIG_PKCS12=y
+
+# RADIUS authentication server. This provides access to the integrated EAP
+# authenticator from external hosts using RADIUS.
+#CONFIG_RADIUS_SERVER=y
+#
+# Remove debugging code that is printing out debug messages to stdout.
+# This can be used to reduce the size of the hostapd considerably if debugging
+# code is not needed.
+#CONFIG_NO_STDOUT_DEBUG=y
diff --git a/package/hostapd/ipkg/hostapd-utils.control b/package/hostapd/ipkg/hostapd-utils.control
new file mode 100644
index 000000000..5f8d82d9c
--- /dev/null
+++ b/package/hostapd/ipkg/hostapd-utils.control
@@ -0,0 +1,5 @@
+Package: hostapd-utils
+Priority: optional
+Section: net
+Depends: hostapd
+Description: an IEEE 802.11 AP, IEEE 802.1x/WPA/WPA2/EAP/RADIUS Authenticator (CLI utility)
diff --git a/package/hostapd/ipkg/hostapd.conffiles b/package/hostapd/ipkg/hostapd.conffiles
new file mode 100644
index 000000000..f61980010
--- /dev/null
+++ b/package/hostapd/ipkg/hostapd.conffiles
@@ -0,0 +1 @@
+/etc/hostapd.conf
diff --git a/package/hostapd/ipkg/hostapd.control b/package/hostapd/ipkg/hostapd.control
new file mode 100644
index 000000000..cb2dac672
--- /dev/null
+++ b/package/hostapd/ipkg/hostapd.control
@@ -0,0 +1,6 @@
+Package: hostapd
+Priority: optional
+Section: net
+Depends: kmod-madwifi, libopenssl
+Provides: hostpad
+Description: an IEEE 802.11 AP, IEEE 802.1x/WPA/WPA2/EAP/RADIUS Authenticator
diff --git a/package/hostapd/patches/patch-hostapd_Makefile b/package/hostapd/patches/patch-hostapd_Makefile
new file mode 100644
index 000000000..fdae44c6c
--- /dev/null
+++ b/package/hostapd/patches/patch-hostapd_Makefile
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- hostapd-0.6.9.orig/hostapd/Makefile 2009-03-23 15:06:28.000000000 +0100
++++ hostapd-0.6.9/hostapd/Makefile 2009-04-29 23:24:00.835839521 +0200
+@@ -8,7 +8,7 @@ endif
+
+ # define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to
+ # a file (undefine it, if you want to save in binary size)
+-CFLAGS += -DHOSTAPD_DUMP_STATE
++# CFLAGS += -DHOSTAPD_DUMP_STATE
+
+ CFLAGS += -I../src
+ CFLAGS += -I../src/crypto