# HG changeset patch # User Antoine Bodin # Date 1279227174 -7200 # Node ID f4ab8a128b6f267aaf16f0679430899dbe557890 # Parent 93b7952261f97caefe2695a3ea30f46d81ea0ab2 Add: hostapd 0.6.10 diff -r 93b7952261f9 -r f4ab8a128b6f hostapd/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hostapd/receipt Thu Jul 15 22:52:54 2010 +0200 @@ -0,0 +1,42 @@ +# SliTaz package receipt. + +PACKAGE="hostapd" +VERSION="0.6.10" +CATEGORY="network" +SHORT_DESC="Daemon for wireless software access points." +MAINTAINER="gokhlayeh@mailoo.org" +DEPENDS="openssl libnl" +BUILD_DEPENDS="openssl-dev libnl-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://hostap.epitest.fi/hostapd/" +WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cp -a stuff/config $src/hostapd/.config + mkdir -p $src/_pkg/usr/bin + + cd $src/hostapd + + sed -i "s|/usr/local/bin|$src/_pkg/usr/bin|" Makefile + + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr $fs/etc/hostapd $fs/etc/init.d + + cp -a $_pkg/usr/bin $fs/usr + + cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \ + $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \ + $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \ + $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \ + $src/hostapd/wired.conf $src/src/hlr_auc_gw/hlr_auc_gw.milenage_db \ + $fs/etc/hostapd + + cp -a stuff/hostapd $fs/etc/init.d +} diff -r 93b7952261f9 -r f4ab8a128b6f hostapd/stuff/config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hostapd/stuff/config Thu Jul 15 22:52:54 2010 +0200 @@ -0,0 +1,92 @@ +# 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 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/usr # change to reflect local setup; directory for madwifi src + +# Driver interface for Prism54 driver +CONFIG_DRIVER_PRISM54=y + +# IEEE 802.11F/IAPP +CONFIG_IAPP=y + +# WPA2/IEEE 802.11i RSN pre-authentication +CONFIG_RSN_PREAUTH=y + +# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) +CONFIG_PEERKEY=y + +# IEEE 802.11w (management frame protection) +# This version is an experimental implementation based on IEEE 802.11w/D1.0 +# draft and is subject to change since the standard has not yet been finalized. +# Driver support is also needed for IEEE 802.11w. +CONFIG_IEEE80211W=y + +# Integrated EAP server +CONFIG_EAP=y + +# EAP-MD5 for the integrated EAP server +CONFIG_EAP_MD5=y + +# EAP-TLS for the integrated EAP server +CONFIG_EAP_TLS=y + +# EAP-MSCHAPv2 for the integrated EAP server +CONFIG_EAP_MSCHAPV2=y + +# EAP-PEAP for the integrated EAP server +CONFIG_EAP_PEAP=y + +# EAP-GTC for the integrated EAP server +CONFIG_EAP_GTC=y + +# EAP-TTLS for the integrated EAP server +CONFIG_EAP_TTLS=y + +# EAP-SIM for the integrated EAP server +CONFIG_EAP_SIM=y + +# EAP-AKA for the integrated EAP server +CONFIG_EAP_AKA=y + +# EAP-PAX for the integrated EAP server +CONFIG_EAP_PAX=y + +# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK) +CONFIG_EAP_PSK=y + +# EAP-SAKE for the integrated EAP server +CONFIG_EAP_SAKE=y + +# EAP-GPSK for the integrated EAP server +CONFIG_EAP_GPSK=y +# Include support for optional SHA256 cipher suite in EAP-GPSK +CONFIG_EAP_GPSK_SHA256=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 +# server from external hosts using RADIUS. +CONFIG_RADIUS_SERVER=y + +# Build IPv6 support for RADIUS operations +CONFIG_IPV6=y + +CONFIG_DRIVER_NL80211=y diff -r 93b7952261f9 -r f4ab8a128b6f hostapd/stuff/hostapd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hostapd/stuff/hostapd Thu Jul 15 22:52:54 2010 +0200 @@ -0,0 +1,53 @@ +#!/bin/sh +# /etc/init.d/dbus: Start, stop and restart DBUS daemon on SliTaz, +# at boot time or with the command line. Daemons options are configured +# with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=hostapd +DESC="daemon for wireless software access points" +DAEMON=/usr/bin/hostapd +PIDFILE=/var/run/hostapd.pid +OPTIONS="-B -P $PIDFILE /etc/hostapd/hostapd.conf" + +case "$1" in + start) + if [ -f $PIDFILE ] ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + ;; + stop) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + status + ;; + restart) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 \ No newline at end of file