# HG changeset patch # User Hans-G?nter Theisgen # Date 1646907088 -3600 # Node ID 85d57ffe78605a9f6ade40ace40f552606e2b9dc # Parent 290ce85aaca4eacfae79014f7fbeeb5034eb5de6 updated hostapd (2.9 -> 2.10) diff -r 290ce85aaca4 -r 85d57ffe7860 hostapd/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hostapd/description.txt Thu Mar 10 11:11:28 2022 +0100 @@ -0,0 +1,12 @@ +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. +The current version supports Linux (Host AP, madwifi, mac80211-based +drivers) and FreeBSD (net80211). + +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. diff -r 290ce85aaca4 -r 85d57ffe7860 hostapd/receipt --- a/hostapd/receipt Thu Mar 10 09:47:42 2022 +0100 +++ b/hostapd/receipt Thu Mar 10 11:11:28 2022 +0100 @@ -1,19 +1,20 @@ # SliTaz package receipt. PACKAGE="hostapd" -VERSION="2.9" +VERSION="2.10" CATEGORY="network" SHORT_DESC="Daemon for wireless software access points." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" +WEB_SITE="https://w1.fi/hostapd" TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="https://w1.fi/hostapd" WGET_URL="${WEB_SITE%/*}/releases/$TARBALL" -HOST_ARCH="i486 arm" DEPENDS="openssl libnl" BUILD_DEPENDS="openssl-dev libnl-dev" +HOST_ARCH="i486 arm" + # What is the latest version available today? current_version() { @@ -27,26 +28,35 @@ cd $src/hostapd && cp -a $stuff/config .config && sed -i "s|/usr/local/bin|/usr/bin|" Makefile && - make && make DESTDIR=$DESTDIR install + make && + make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd - mkdir -p $install/usr/share/man $install/usr/share/doc - - cp -a $src/hostapd/*.[1-8] $install/usr/share/man - cp -a $src/hostapd/README* $install/usr/share/doc - cp -a $src/hostapd/ChangeLog $install/usr/share/doc - cp -a $src/hostapd/*.conf $install/usr/share/doc - cp -a $src/hostapd/*.txt $install/usr/share/doc - cp -a $stuff/hostapd $fs/etc/init.d && - 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/hostapd/hlr_auc_gw.milenage_db \ - $fs/etc/hostapd && - cp -a $install/usr/bin $fs/usr + mkdir -p $fs/usr $fs/etc/init.d + mkdir -p $fs/etc/hostapd + mkdir -p $install/usr/share/man + mkdir -p $install/usr/share/doc + + cp -a $src/hostapd/*.[1-8] $install/usr/share/man + cp -a $src/hostapd/README* $install/usr/share/doc + cp -a $src/hostapd/ChangeLog $install/usr/share/doc + cp -a $src/hostapd/*.conf $install/usr/share/doc + cp -a $src/hostapd/*.txt $install/usr/share/doc + cp -a $stuff/hostapd $fs/etc/init.d + cp -a $src/hostapd/hostapd.accept $fs/etc/hostapd + cp -a $src/hostapd/hostapd.conf $fs/etc/hostapd + cp -a $src/hostapd/hostapd.deny $fs/etc/hostapd + cp -a $src/hostapd/hostapd.eap_user $fs/etc/hostapd + cp -a $src/hostapd/hostapd.radius_clients \ + $fs/etc/hostapd + cp -a $src/hostapd/hostapd.sim_db $fs/etc/hostapd + cp -a $src/hostapd/hostapd.vlan $fs/etc/hostapd + cp -a $src/hostapd/hostapd.wpa_psk $fs/etc/hostapd + cp -a $src/hostapd/wired.conf $fs/etc/hostapd + cp -a $src/hostapd/hlr_auc_gw.milenage_db \ + $fs/etc/hostapd + cp -a $install/usr/bin $fs/usr } diff -r 290ce85aaca4 -r 85d57ffe7860 hostapd/stuff/hostapd --- a/hostapd/stuff/hostapd Thu Mar 10 09:47:42 2022 +0100 +++ b/hostapd/stuff/hostapd Thu Mar 10 11:11:28 2022 +0100 @@ -1,5 +1,5 @@ #!/bin/sh -# /etc/init.d/dbus: Start, stop and restart DBUS daemon on SliTaz, +# /etc/init.d/hostapd: Start, stop and restart hostapd on SliTaz, # at boot time or with the command line. Daemons options are configured # with /etc/daemons.conf # @@ -10,43 +10,48 @@ DESC="$(_ 'daemon for wireless software access points')" DAEMON=/usr/bin/hostapd PIDFILE=/var/run/hostapd.pid +OPTIONS="$HOSTAPD_OPTIONS" +[ -n "$HOSTAPD_OPTIONS" ] || OPTIONS="-B -P $PIDFILE /etc/hostapd/hostapd.conf" case "$1" in - start) - if active_pidfile $PIDFILE hostapd ; then - _ '%s is already running.' $NAME - exit 1 - fi - action 'Starting %s: %s...' "$DESC" $NAME - $DAEMON $OPTIONS - status - ;; - stop) - if ! active_pidfile $PIDFILE hostapd ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Stopping %s: %s...' "$DESC" $NAME - kill $(cat $PIDFILE) - status - ;; - restart) - if ! active_pidfile $PIDFILE hostapd ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Restarting %s: %s...' "$DESC" $NAME - kill $(cat $PIDFILE) - sleep 2 - $DAEMON $OPTIONS - status - ;; - *) - emsg "$(_ 'Usage:') $0 [start|stop|restart]" - newline - exit 1 - ;; + (start) + if active_pidfile $PIDFILE hostapd + then + _ '%s is already running.' $NAME + exit 1 + fi + action 'Starting %s: %s...' "$DESC" $NAME + $DAEMON $OPTIONS + status + ;; + (stop) + if ! active_pidfile $PIDFILE hostapd + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Stopping %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + status + ;; + (restart) + if ! active_pidfile $PIDFILE hostapd + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Restarting %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + sleep 2 + $DAEMON $OPTIONS + status + ;; + (*) + emsg "$(_ 'Usage:') $0 [start|stop|restart]" + newline + exit 1 + ;; esac exit 0