wok-4.x rev 5824
Add: hostapd 0.6.10
author | Antoine Bodin <gokhlayeh@mailoo.org> |
---|---|
date | Thu Jul 15 22:52:54 2010 +0200 (2010-07-15) |
parents | 93b7952261f9 |
children | 283b8d93992b |
files | hostapd/receipt hostapd/stuff/config hostapd/stuff/hostapd |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hostapd/receipt Thu Jul 15 22:52:54 2010 +0200 1.3 @@ -0,0 +1,42 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="hostapd" 1.7 +VERSION="0.6.10" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Daemon for wireless software access points." 1.10 +MAINTAINER="gokhlayeh@mailoo.org" 1.11 +DEPENDS="openssl libnl" 1.12 +BUILD_DEPENDS="openssl-dev libnl-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://hostap.epitest.fi/hostapd/" 1.15 +WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cp -a stuff/config $src/hostapd/.config 1.21 + mkdir -p $src/_pkg/usr/bin 1.22 + 1.23 + cd $src/hostapd 1.24 + 1.25 + sed -i "s|/usr/local/bin|$src/_pkg/usr/bin|" Makefile 1.26 + 1.27 + make && make DESTDIR=$PWD/_pkg install 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/usr $fs/etc/hostapd $fs/etc/init.d 1.34 + 1.35 + cp -a $_pkg/usr/bin $fs/usr 1.36 + 1.37 + cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \ 1.38 + $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \ 1.39 + $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \ 1.40 + $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \ 1.41 + $src/hostapd/wired.conf $src/src/hlr_auc_gw/hlr_auc_gw.milenage_db \ 1.42 + $fs/etc/hostapd 1.43 + 1.44 + cp -a stuff/hostapd $fs/etc/init.d 1.45 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/hostapd/stuff/config Thu Jul 15 22:52:54 2010 +0200 2.3 @@ -0,0 +1,92 @@ 2.4 +# Example hostapd build time configuration 2.5 +# 2.6 +# This file lists the configuration options that are used when building the 2.7 +# hostapd binary. All lines starting with # are ignored. Configuration option 2.8 +# lines must be commented out complete, if they are not to be included, i.e., 2.9 +# just setting VARIABLE=n is not disabling that variable. 2.10 +# 2.11 +# This file is included in Makefile, so variables like CFLAGS and LIBS can also 2.12 +# be modified from here. In most cass, these lines should use += in order not 2.13 +# to override previous values of the variables. 2.14 + 2.15 +# Driver interface for Host AP driver 2.16 +CONFIG_DRIVER_HOSTAP=y 2.17 + 2.18 +# Driver interface for wired authenticator 2.19 +CONFIG_DRIVER_WIRED=y 2.20 + 2.21 +# Driver interface for madwifi driver 2.22 +#CONFIG_DRIVER_MADWIFI=y 2.23 +#CFLAGS += -I/usr # change to reflect local setup; directory for madwifi src 2.24 + 2.25 +# Driver interface for Prism54 driver 2.26 +CONFIG_DRIVER_PRISM54=y 2.27 + 2.28 +# IEEE 802.11F/IAPP 2.29 +CONFIG_IAPP=y 2.30 + 2.31 +# WPA2/IEEE 802.11i RSN pre-authentication 2.32 +CONFIG_RSN_PREAUTH=y 2.33 + 2.34 +# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) 2.35 +CONFIG_PEERKEY=y 2.36 + 2.37 +# IEEE 802.11w (management frame protection) 2.38 +# This version is an experimental implementation based on IEEE 802.11w/D1.0 2.39 +# draft and is subject to change since the standard has not yet been finalized. 2.40 +# Driver support is also needed for IEEE 802.11w. 2.41 +CONFIG_IEEE80211W=y 2.42 + 2.43 +# Integrated EAP server 2.44 +CONFIG_EAP=y 2.45 + 2.46 +# EAP-MD5 for the integrated EAP server 2.47 +CONFIG_EAP_MD5=y 2.48 + 2.49 +# EAP-TLS for the integrated EAP server 2.50 +CONFIG_EAP_TLS=y 2.51 + 2.52 +# EAP-MSCHAPv2 for the integrated EAP server 2.53 +CONFIG_EAP_MSCHAPV2=y 2.54 + 2.55 +# EAP-PEAP for the integrated EAP server 2.56 +CONFIG_EAP_PEAP=y 2.57 + 2.58 +# EAP-GTC for the integrated EAP server 2.59 +CONFIG_EAP_GTC=y 2.60 + 2.61 +# EAP-TTLS for the integrated EAP server 2.62 +CONFIG_EAP_TTLS=y 2.63 + 2.64 +# EAP-SIM for the integrated EAP server 2.65 +CONFIG_EAP_SIM=y 2.66 + 2.67 +# EAP-AKA for the integrated EAP server 2.68 +CONFIG_EAP_AKA=y 2.69 + 2.70 +# EAP-PAX for the integrated EAP server 2.71 +CONFIG_EAP_PAX=y 2.72 + 2.73 +# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK) 2.74 +CONFIG_EAP_PSK=y 2.75 + 2.76 +# EAP-SAKE for the integrated EAP server 2.77 +CONFIG_EAP_SAKE=y 2.78 + 2.79 +# EAP-GPSK for the integrated EAP server 2.80 +CONFIG_EAP_GPSK=y 2.81 +# Include support for optional SHA256 cipher suite in EAP-GPSK 2.82 +CONFIG_EAP_GPSK_SHA256=y 2.83 + 2.84 +# PKCS#12 (PFX) support (used to read private key and certificate file from 2.85 +# a file that usually has extension .p12 or .pfx) 2.86 +CONFIG_PKCS12=y 2.87 + 2.88 +# RADIUS authentication server. This provides access to the integrated EAP 2.89 +# server from external hosts using RADIUS. 2.90 +CONFIG_RADIUS_SERVER=y 2.91 + 2.92 +# Build IPv6 support for RADIUS operations 2.93 +CONFIG_IPV6=y 2.94 + 2.95 +CONFIG_DRIVER_NL80211=y
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/hostapd/stuff/hostapd Thu Jul 15 22:52:54 2010 +0200 3.3 @@ -0,0 +1,53 @@ 3.4 +#!/bin/sh 3.5 +# /etc/init.d/dbus: Start, stop and restart DBUS daemon on SliTaz, 3.6 +# at boot time or with the command line. Daemons options are configured 3.7 +# with /etc/daemons.conf 3.8 +# 3.9 +. /etc/init.d/rc.functions 3.10 +. /etc/daemons.conf 3.11 + 3.12 +NAME=hostapd 3.13 +DESC="daemon for wireless software access points" 3.14 +DAEMON=/usr/bin/hostapd 3.15 +PIDFILE=/var/run/hostapd.pid 3.16 +OPTIONS="-B -P $PIDFILE /etc/hostapd/hostapd.conf" 3.17 + 3.18 +case "$1" in 3.19 + start) 3.20 + if [ -f $PIDFILE ] ; then 3.21 + echo "$NAME already running." 3.22 + exit 1 3.23 + fi 3.24 + echo -n "Starting $DESC: $NAME... " 3.25 + $DAEMON $OPTIONS 3.26 + status 3.27 + ;; 3.28 + stop) 3.29 + if [ ! -f $PIDFILE ] ; then 3.30 + echo "$NAME is not running." 3.31 + exit 1 3.32 + fi 3.33 + echo -n "Stopping $DESC: $NAME... " 3.34 + kill `cat $PIDFILE` 3.35 + status 3.36 + ;; 3.37 + restart) 3.38 + if [ ! -f $PIDFILE ] ; then 3.39 + echo "$NAME is not running." 3.40 + exit 1 3.41 + fi 3.42 + echo -n "Restarting $DESC: $NAME... " 3.43 + kill `cat $PIDFILE` 3.44 + sleep 2 3.45 + $DAEMON $OPTIONS 3.46 + status 3.47 + ;; 3.48 + *) 3.49 + echo "" 3.50 + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 3.51 + echo "" 3.52 + exit 1 3.53 + ;; 3.54 +esac 3.55 + 3.56 +exit 0 3.57 \ No newline at end of file