wok-current rev 24646
updated hostapd (2.9 -> 2.10)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 11:11:28 2022 +0100 (2022-03-10) |
parents | 290ce85aaca4 |
children | 6b3ebe448683 |
files | hostapd/description.txt hostapd/receipt hostapd/stuff/hostapd |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hostapd/description.txt Thu Mar 10 11:11:28 2022 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +Hostapd is a user space daemon for access point and authentication 1.5 +servers. 1.6 +It implements IEEE 802.11 access point management, 1.7 +IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, 1.8 +and RADIUS authentication server. 1.9 +The current version supports Linux (Host AP, madwifi, mac80211-based 1.10 +drivers) and FreeBSD (net80211). 1.11 + 1.12 +hostapd is designed to be a "daemon" program that runs in the 1.13 +background and acts as the backend component controlling authentication. 1.14 +Hostapd supports separate frontend programs and an example text-based 1.15 +frontend, hostapd_cli, is included with hostapd.
2.1 --- a/hostapd/receipt Thu Mar 10 09:47:42 2022 +0100 2.2 +++ b/hostapd/receipt Thu Mar 10 11:11:28 2022 +0100 2.3 @@ -1,19 +1,20 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="hostapd" 2.7 -VERSION="2.9" 2.8 +VERSION="2.10" 2.9 CATEGORY="network" 2.10 SHORT_DESC="Daemon for wireless software access points." 2.11 MAINTAINER="pankso@slitaz.org" 2.12 LICENSE="GPL2" 2.13 +WEB_SITE="https://w1.fi/hostapd" 2.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 2.15 -WEB_SITE="https://w1.fi/hostapd" 2.16 WGET_URL="${WEB_SITE%/*}/releases/$TARBALL" 2.17 -HOST_ARCH="i486 arm" 2.18 2.19 DEPENDS="openssl libnl" 2.20 BUILD_DEPENDS="openssl-dev libnl-dev" 2.21 2.22 +HOST_ARCH="i486 arm" 2.23 + 2.24 # What is the latest version available today? 2.25 current_version() 2.26 { 2.27 @@ -27,26 +28,35 @@ 2.28 cd $src/hostapd && 2.29 cp -a $stuff/config .config && 2.30 sed -i "s|/usr/local/bin|/usr/bin|" Makefile && 2.31 - make && make DESTDIR=$DESTDIR install 2.32 + make && 2.33 + make install DESTDIR=$DESTDIR 2.34 } 2.35 2.36 # Rules to gen a SliTaz package suitable for Tazpkg. 2.37 genpkg_rules() 2.38 { 2.39 - mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd 2.40 - mkdir -p $install/usr/share/man $install/usr/share/doc 2.41 - 2.42 - cp -a $src/hostapd/*.[1-8] $install/usr/share/man 2.43 - cp -a $src/hostapd/README* $install/usr/share/doc 2.44 - cp -a $src/hostapd/ChangeLog $install/usr/share/doc 2.45 - cp -a $src/hostapd/*.conf $install/usr/share/doc 2.46 - cp -a $src/hostapd/*.txt $install/usr/share/doc 2.47 - cp -a $stuff/hostapd $fs/etc/init.d && 2.48 - cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \ 2.49 - $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \ 2.50 - $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \ 2.51 - $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \ 2.52 - $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \ 2.53 - $fs/etc/hostapd && 2.54 - cp -a $install/usr/bin $fs/usr 2.55 + mkdir -p $fs/usr $fs/etc/init.d 2.56 + mkdir -p $fs/etc/hostapd 2.57 + mkdir -p $install/usr/share/man 2.58 + mkdir -p $install/usr/share/doc 2.59 + 2.60 + cp -a $src/hostapd/*.[1-8] $install/usr/share/man 2.61 + cp -a $src/hostapd/README* $install/usr/share/doc 2.62 + cp -a $src/hostapd/ChangeLog $install/usr/share/doc 2.63 + cp -a $src/hostapd/*.conf $install/usr/share/doc 2.64 + cp -a $src/hostapd/*.txt $install/usr/share/doc 2.65 + cp -a $stuff/hostapd $fs/etc/init.d 2.66 + cp -a $src/hostapd/hostapd.accept $fs/etc/hostapd 2.67 + cp -a $src/hostapd/hostapd.conf $fs/etc/hostapd 2.68 + cp -a $src/hostapd/hostapd.deny $fs/etc/hostapd 2.69 + cp -a $src/hostapd/hostapd.eap_user $fs/etc/hostapd 2.70 + cp -a $src/hostapd/hostapd.radius_clients \ 2.71 + $fs/etc/hostapd 2.72 + cp -a $src/hostapd/hostapd.sim_db $fs/etc/hostapd 2.73 + cp -a $src/hostapd/hostapd.vlan $fs/etc/hostapd 2.74 + cp -a $src/hostapd/hostapd.wpa_psk $fs/etc/hostapd 2.75 + cp -a $src/hostapd/wired.conf $fs/etc/hostapd 2.76 + cp -a $src/hostapd/hlr_auc_gw.milenage_db \ 2.77 + $fs/etc/hostapd 2.78 + cp -a $install/usr/bin $fs/usr 2.79 }
3.1 --- a/hostapd/stuff/hostapd Thu Mar 10 09:47:42 2022 +0100 3.2 +++ b/hostapd/stuff/hostapd Thu Mar 10 11:11:28 2022 +0100 3.3 @@ -1,5 +1,5 @@ 3.4 #!/bin/sh 3.5 -# /etc/init.d/dbus: Start, stop and restart DBUS daemon on SliTaz, 3.6 +# /etc/init.d/hostapd: Start, stop and restart hostapd on SliTaz, 3.7 # at boot time or with the command line. Daemons options are configured 3.8 # with /etc/daemons.conf 3.9 # 3.10 @@ -10,43 +10,48 @@ 3.11 DESC="$(_ 'daemon for wireless software access points')" 3.12 DAEMON=/usr/bin/hostapd 3.13 PIDFILE=/var/run/hostapd.pid 3.14 +OPTIONS="$HOSTAPD_OPTIONS" 3.15 +[ -n "$HOSTAPD_OPTIONS" ] || 3.16 OPTIONS="-B -P $PIDFILE /etc/hostapd/hostapd.conf" 3.17 3.18 case "$1" in 3.19 - start) 3.20 - if active_pidfile $PIDFILE hostapd ; then 3.21 - _ '%s is already running.' $NAME 3.22 - exit 1 3.23 - fi 3.24 - action 'Starting %s: %s...' "$DESC" $NAME 3.25 - $DAEMON $OPTIONS 3.26 - status 3.27 - ;; 3.28 - stop) 3.29 - if ! active_pidfile $PIDFILE hostapd ; then 3.30 - _ '%s is not running.' $NAME 3.31 - exit 1 3.32 - fi 3.33 - action 'Stopping %s: %s...' "$DESC" $NAME 3.34 - kill $(cat $PIDFILE) 3.35 - status 3.36 - ;; 3.37 - restart) 3.38 - if ! active_pidfile $PIDFILE hostapd ; then 3.39 - _ '%s is not running.' $NAME 3.40 - exit 1 3.41 - fi 3.42 - action 'Restarting %s: %s...' "$DESC" $NAME 3.43 - kill $(cat $PIDFILE) 3.44 - sleep 2 3.45 - $DAEMON $OPTIONS 3.46 - status 3.47 - ;; 3.48 - *) 3.49 - emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 3.50 - newline 3.51 - exit 1 3.52 - ;; 3.53 + (start) 3.54 + if active_pidfile $PIDFILE hostapd 3.55 + then 3.56 + _ '%s is already running.' $NAME 3.57 + exit 1 3.58 + fi 3.59 + action 'Starting %s: %s...' "$DESC" $NAME 3.60 + $DAEMON $OPTIONS 3.61 + status 3.62 + ;; 3.63 + (stop) 3.64 + if ! active_pidfile $PIDFILE hostapd 3.65 + then 3.66 + _ '%s is not running.' $NAME 3.67 + exit 1 3.68 + fi 3.69 + action 'Stopping %s: %s...' "$DESC" $NAME 3.70 + kill $(cat $PIDFILE) 3.71 + status 3.72 + ;; 3.73 + (restart) 3.74 + if ! active_pidfile $PIDFILE hostapd 3.75 + then 3.76 + _ '%s is not running.' $NAME 3.77 + exit 1 3.78 + fi 3.79 + action 'Restarting %s: %s...' "$DESC" $NAME 3.80 + kill $(cat $PIDFILE) 3.81 + sleep 2 3.82 + $DAEMON $OPTIONS 3.83 + status 3.84 + ;; 3.85 + (*) 3.86 + emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 3.87 + newline 3.88 + exit 1 3.89 + ;; 3.90 esac 3.91 3.92 exit 0