Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (97c709e7aeb5e0de91646b14f10037f215e8beb2)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (97c709e7aeb5e0de91646b14f10037f215e8beb2)
  • Date: Thu, 5 Jul 2012 07:48:49 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 4 +
net/hostapd/BUILD | 43 +++++++++++++++
net/hostapd/CONFIGURE | 100
+++++++++++++++++++++++++++++++++++++
net/hostapd/DEPENDS | 16 +++++
net/hostapd/DETAILS | 21 +++++++
net/hostapd/FINAL | 4 +
net/hostapd/HISTORY | 3 +
net/hostapd/INSTALL | 20 +++++++
net/hostapd/PRE_BUILD | 8 ++
net/hostapd/hostapd-1.0.tar.gz.sig |binary
net/hostapd/init.d/hostapd | 11 ++++
net/hostapd/init.d/hostapd.conf | 2
12 files changed, 232 insertions(+)

New commits:
commit 97c709e7aeb5e0de91646b14f10037f215e8beb2
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

hostapd: new spell, IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS
Authenticator

diff --git a/ChangeLog b/ChangeLog
index db71a7d..cdf0863 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-05 Vlad Glagolev <stealth AT sourcemage.org>
+ * net/hostapd: new spell, IEEE 802.11 AP, IEEE
802.1X/WPA/WPA2/EAP/RADIUS
+ Authenticator
+
2012-07-03 Vlad Glagolev <stealth AT sourcemage.org>
* utils/wol: new spell, Wake On LAN client

diff --git a/net/hostapd/BUILD b/net/hostapd/BUILD
new file mode 100755
index 0000000..93af546
--- /dev/null
+++ b/net/hostapd/BUILD
@@ -0,0 +1,43 @@
+cd "$SOURCE_DIRECTORY/hostapd" &&
+
+local VARS="CONFIG_DEBUG_FILE CONFIG_DRIVER_HOSTAP CONFIG_DRIVER_NL80211 \
+ CONFIG_DRIVER_NONE CONFIG_DRIVER_RADIUS_ACL CONFIG_DRIVER_WIRED \
+ CONFIG_EAP CONFIG_EAP_AKA CONFIG_EAP_AKA_PRIME CONFIG_EAP_GPSK \
+ CONFIG_EAP_GPSK_SHA256 CONFIG_EAP_GTC CONFIG_EAP_IKEV2 \
+ CONFIG_EAP_MD5 CONFIG_EAP_MSCHAPV2 CONFIG_EAP_PAX
CONFIG_EAP_PEAP \
+ CONFIG_EAP_PSK CONFIG_EAP_PWD CONFIG_EAP_SAKE CONFIG_EAP_SIM \
+ CONFIG_EAP_TLS CONFIG_EAP_TNC CONFIG_EAP_TTLS \
+ CONFIG_FULL_DYNAMIC_VLAN CONFIG_IAPP CONFIG_IEEE80211N \
+ CONFIG_IEEE80211R CONFIG_IEEE80211W CONFIG_INTERWORKING
CONFIG_IPV6 \
+ CONFIG_LIBNL32 CONFIG_NO_ACCOUNTING CONFIG_NO_DUMP_STATE \
+ CONFIG_NO_RADIUS CONFIG_NO_RANDOM_POOL CONFIG_NO_STDOUT_DEBUG \
+ CONFIG_NO_VLAN CONFIG_PEERKEY CONFIG_PKCS12 CONFIG_RADIUS_SERVER
\
+ CONFIG_RSN_PREAUTH CONFIG_WPA_TRACE CONFIG_WPS CONFIG_WPS2 \
+ CONFIG_WPS_UPNP" &&
+
+# TLS support
+VARS="CONFIG_TLS CONFIG_TLSV11 $VARS" &&
+
+# untested
+#if [[ $CONFIG_DRIVER_MADWIFI == y ]]; then
+# VARS="CONFIG_DRIVER_MADWIFI $VARS" &&
+# echo "CFLAGS += -I/usr/include/madwifi" >> .config
+#fi &&
+
+if [[ $CONFIG_DRIVER_NL80211 == y ]]; then
+ persistent_add CONFIG_LIBNL32 &&
+ CONFIG_LIBNL32=y &&
+ echo "CFLAGS += -I$INSTALL_ROOT/usr/include/libnl3" >> .config
+fi &&
+
+# Create .config file for make
+for v in $VARS; do
+ if [[ -n ${!v} && ${!v} != n ]]; then
+ echo "$v=${!v:-y}" >> .config
+ fi
+done &&
+
+# Print config for sorcery compile log
+cat .config &&
+
+make
diff --git a/net/hostapd/CONFIGURE b/net/hostapd/CONFIGURE
new file mode 100755
index 0000000..d175881
--- /dev/null
+++ b/net/hostapd/CONFIGURE
@@ -0,0 +1,100 @@
+config_query_list CONFIG_TLS "Select TLS library to use:" \
+ openssl \
+ gnutls \
+ nss \
+ internal \
+ none &&
+
+config_query CONFIG_TLSV11 "Enable TLS v1.1 to get a stronger construction
of messages when block ciphers are used?" n &&
+
+#
+# Drivers
+#
+config_query CONFIG_DRIVER_HOSTAP "Build driver interface for Host AP
driver?" y &&
+config_query CONFIG_DRIVER_WIRED "Build driver interface for wired
authenticator?" n &&
+config_query CONFIG_DRIVER_NL80211 "Build driver interface for drivers using
the nl80211 kernel interface?" y &&
+config_query CONFIG_DRIVER_NONE "Build driver interface for no driver (e.g.,
RADIUS server only)?" n &&
+# untested
+#config_query CONFIG_DRIVER_MADWIFI "Build driver interface for madwifi
driver?" n &&
+
+#
+# IEEE 802.11 options
+#
+config_query CONFIG_IAPP "Enable IEEE 802.11F/IAPP support?" y &&
+config_query CONFIG_RSN_PREAUTH "Enable WPA2/IEEE 802.11i RSN
pre-authentication support?" y &&
+config_query CONFIG_PEERKEY "Enable PeerKey handshake for Station to Station
Link (IEEE 802.11e DLS) support?" y &&
+config_query CONFIG_IEEE80211W "Enable IEEE 802.11w (management frame
protection) support (experimental)?" n &&
+
+#
+# EAP server
+#
+config_query CONFIG_EAP "Build integrated EAP server?" y &&
+
+if [[ $CONFIG_EAP == y ]]; then
+ config_query CONFIG_EAP_MD5 "Enable EAP-MD5 support for the integrated EAP
server?" y &&
+ config_query CONFIG_EAP_TLS "Enable EAP-TLS support for the integrated EAP
server?" y &&
+ config_query CONFIG_EAP_MSCHAPV2 "Enable EAP-MSCHAPv2 support for the
integrated EAP server" y &&
+ config_query CONFIG_EAP_PEAP "Enable EAP-PEAP support for the integrated
EAP server?" y &&
+ config_query CONFIG_EAP_GTC "Enable EAP-GTC support for the integrated EAP
server?" y &&
+ config_query CONFIG_EAP_TTLS "Enable EAP-TTLS support for the integrated
EAP server?" y &&
+ config_query CONFIG_EAP_SIM "Enable EAP-SIM support for the integrated EAP
server?" n &&
+ config_query CONFIG_EAP_AKA "Enable EAP-AKA support for the integrated EAP
server?" n &&
+
+ if [[ $CONFIG_EAP_AKA == y ]]; then
+ config_query CONFIG_EAP_AKA_PRIME "Enable EAP-AKA' support for the
integrated EAP server?" n
+ fi &&
+
+ config_query CONFIG_EAP_PAX "Enable EAP-PAX support for the integrated EAP
server?" n &&
+ config_query CONFIG_EAP_PSK "Enable EAP-PSK support for the integrated EAP
server?" n &&
+ config_query CONFIG_EAP_PWD "Enable EAP-pwd support for the integrated EAP
server (secure authentication with a password)?" n &&
+ config_query CONFIG_EAP_SAKE "Enable EAP-SAKE support for the integrated
EAP server?" n &&
+ config_query CONFIG_EAP_GPSK "Enable EAP-GPSK support for the integrated
EAP server?" n &&
+
+ if [[ $CONFIG_EAP_GPSK == y ]]; then
+ config_query CONFIG_EAP_GPSK_SHA256 "Include support for optional SHA256
cipher suite in EAP-GPSK?" n
+ fi &&
+
+ config_query CONFIG_EAP_IKEV2 "Enable EAP-IKEv2 support?" n &&
+ config_query CONFIG_EAP_TNC "Enable Trusted Network Connect (EAP-TNC)
support?" n
+
+ config_query CONFIG_WPS "Enable Wi-Fi Protected Setup (WPS)?" n &&
+
+ if [[ $CONFIG_WPS == y ]]; then
+ config_query CONFIG_WPS2 "Enable WSC 2.0 support?" n &&
+ config_query CONFIG_WPS_UPNP "Enable UPnP support for external WPS
Registrars?" n
+ fi &&
+
+ config_query CONFIG_PKCS12 "Enable PKCS#12 (PFX) support?" y &&
+
+ config_query CONFIG_NO_RADIUS "Remove support for RADIUS?" n &&
+
+ if [[ $CONFIG_NO_RADIUS == n ]]; then
+ config_query CONFIG_RADIUS_SERVER "Enable RADIUS authentication server
(provides access to the integrated EAP server from external hosts using
RADIUS)?" n &&
+
+ if [[ $CONFIG_RADIUS_SERVER == y ]]; then
+ config_query CONFIG_IPV6 "Build IPv6 support for RADIUS operations?" y
+ fi &&
+
+ config_query CONFIG_DRIVER_RADIUS_ACL "Use the hostapd's IEEE 802.11
authentication (ACL), but without the IEEE 802.11 Management capability?" n
+ config_query CONFIG_NO_ACCOUNTING "Remove support for RADIUS
accounting?" n
+ fi &&
+
+ config_query CONFIG_IEEE80211R "Enable IEEE Std 802.11r-2008 (Fast BSS
Transition)?" n &&
+ config_query CONFIG_IEEE80211N "Enable IEEE 802.11n (High Throughput)
support?" n &&
+
+ config_query CONFIG_NO_VLAN "Remove support for VLANs?" n &&
+
+ if [[ $CONFIG_NO_VLAN == n ]]; then
+ config_query CONFIG_FULL_DYNAMIC_VLAN "Enable support for fully dynamic
VLANs (enables hostapd to automatically create bridge and VLAN interfaces if
necessary)?" n
+ fi
+fi &&
+
+#
+# Debugging/OS options
+#
+config_query CONFIG_NO_STDOUT_DEBUG "Remove debugging code that is printing
out debug messages to stdout?" n &&
+config_query CONFIG_DEBUG_FILE "Add support for writing debug log to a
file?" n &&
+config_query CONFIG_NO_DUMP_STATE "Remove support for dumping state into a
file on SIGUSR1 signal?" n &&
+config_query CONFIG_WPA_TRACE "Enable tracing code for developer debugging?"
n &&
+config_query CONFIG_NO_RANDOM_POOL "Disable internal hostapd random pool in
favour of /dev/urandom?" n &&
+config_query CONFIG_INTERWORKING "Enable Interworking (IEEE 802.11u)
support?" n
diff --git a/net/hostapd/DEPENDS b/net/hostapd/DEPENDS
new file mode 100755
index 0000000..203504e
--- /dev/null
+++ b/net/hostapd/DEPENDS
@@ -0,0 +1,16 @@
+# untested
+#if [[ $CONFIG_DRIVER_MADWIFI == y ]]; then
+# depends madwifi
+#fi &&
+
+if [[ $CONFIG_DRIVER_NL80211 == y ]]; then
+ depends libnl
+fi &&
+
+if [[ $CONFIG_TLS != internal && $CONFIG_TLS != none ]]; then
+ depends $CONFIG_TLS
+fi &&
+
+if [[ $CONFIG_EAP_SIM == y || $CONFIG_EAP_AKA == y ]]; then
+ depends pcsc-lite
+fi
diff --git a/net/hostapd/DETAILS b/net/hostapd/DETAILS
new file mode 100755
index 0000000..9529ff5
--- /dev/null
+++ b/net/hostapd/DETAILS
@@ -0,0 +1,21 @@
+ SPELL=hostapd
+ VERSION=1.0
+ SOURCE=$SPELL-$VERSION.tar.gz
+ SOURCE_GPG=gurus.gpg:$SOURCE.sig:WORKS_FOR_ME
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ SOURCE_URL[0]=http://hostap.epitest.fi/releases/$SOURCE
+ LICENSE[0]=GPL
+ DOCS="README*"
+ WEB_SITE=http://hostap.epitest.fi/hostapd/
+ ENTERED=20120705
+ SHORT="IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS
Authenticator"
+cat << EOF
+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.
+
+hostapd is designed to be a "daemon" program that runs in the background and
acts
+as the backend component controlling authentication. hostapd supports
separate
+frontend programs and an example text-based frontend, hostapd_cli, is
included
+with hostapd.
+EOF
diff --git a/net/hostapd/FINAL b/net/hostapd/FINAL
new file mode 100755
index 0000000..4d77b56
--- /dev/null
+++ b/net/hostapd/FINAL
@@ -0,0 +1,4 @@
+message "${MESSAGE_COLOR}If you installed the init script you probably" \
+ "need to edit\n/etc/sysconfig/hostapd and" \
+ "/etc/hostapd/hostapd.conf\nto configure hardware and network" \
+ "settings.${DEFAULT_COLOR}"
diff --git a/net/hostapd/HISTORY b/net/hostapd/HISTORY
new file mode 100644
index 0000000..7a610d3
--- /dev/null
+++ b/net/hostapd/HISTORY
@@ -0,0 +1,3 @@
+2012-07-05 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, {PRE_,}BUILD, CONFIGURE, DEPENDS, FINAL, INSTALL,
+ init.d/hostapd{,.conf}: spell created
diff --git a/net/hostapd/INSTALL b/net/hostapd/INSTALL
new file mode 100755
index 0000000..de421c1
--- /dev/null
+++ b/net/hostapd/INSTALL
@@ -0,0 +1,20 @@
+cd "$SOURCE_DIRECTORY/hostapd" &&
+
+make DESTDIR="$INSTALL_ROOT" install &&
+
+install -vm 755 -d "$INSTALL_ROOT/usr/share/man/man1" \
+ "$INSTALL_ROOT/usr/share/man/man8"
+
+install -vm 644 *.1 "$INSTALL_ROOT/usr/share/man/man1" &&
+install -vm 644 *.8 "$INSTALL_ROOT/usr/share/man/man8" &&
+
+install -vm 755 -d "$INSTALL_ROOT/usr/share/doc/hostapd" &&
+
+for c in hostapd.accept hostapd.conf hostapd.deny hostapd.eap_user
wired.conf \
+ hostapd.radius_clients hostapd.sim_db hostapd.vlan hostapd.wpa_psk;
do
+ install -vm 644 "$c" "$INSTALL_ROOT/usr/share/doc/hostapd/$c"
+done &&
+
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file hostapd.conf "$INSTALL_ROOT/etc/hostapd/hostapd.conf"
+fi
diff --git a/net/hostapd/PRE_BUILD b/net/hostapd/PRE_BUILD
new file mode 100755
index 0000000..8053703
--- /dev/null
+++ b/net/hostapd/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+# /etc/hostapd.* -> /etc/hostapd/hostapd.*
+sedit "s:/etc/hostapd:/etc/hostapd/hostapd:g" hostapd/hostapd.conf &&
+
+# INSTALL_ROOT will be used in INSTALL
+sedit "s:/usr/local:/usr:g" hostapd/Makefile
diff --git a/net/hostapd/hostapd-1.0.tar.gz.sig
b/net/hostapd/hostapd-1.0.tar.gz.sig
new file mode 100644
index 0000000..c82f348
Binary files /dev/null and b/net/hostapd/hostapd-1.0.tar.gz.sig differ
diff --git a/net/hostapd/init.d/hostapd b/net/hostapd/init.d/hostapd
new file mode 100755
index 0000000..bbbd5fb
--- /dev/null
+++ b/net/hostapd/init.d/hostapd
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+. /etc/sysconfig/hostapd
+
+PROGRAM=/usr/bin/hostapd
+PIDFILE=/var/run/hostapd.pid
+ARGS="-B -P $PIDFILE $HOSTAPD_ARGS /etc/hostapd/hostapd.conf"
+NEEDS="+network"
+RUNLEVEL=3
+
+. /etc/init.d/smgl_init
diff --git a/net/hostapd/init.d/hostapd.conf b/net/hostapd/init.d/hostapd.conf
new file mode 100644
index 0000000..b316863
--- /dev/null
+++ b/net/hostapd/init.d/hostapd.conf
@@ -0,0 +1,2 @@
+# For the arguments and description see hostapd(8)
+HOSTAPD_ARGS=""



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (97c709e7aeb5e0de91646b14f10037f215e8beb2), Vlad Glagolev, 07/05/2012

Archive powered by MHonArc 2.6.24.

Top of Page