diff options
Diffstat (limited to 'network/hostapd/hostapd.SlackBuild')
-rw-r--r-- | network/hostapd/hostapd.SlackBuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/network/hostapd/hostapd.SlackBuild b/network/hostapd/hostapd.SlackBuild index 08b80dca7d76a..9f0b30c661edb 100644 --- a/network/hostapd/hostapd.SlackBuild +++ b/network/hostapd/hostapd.SlackBuild @@ -22,7 +22,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=hostapd -VERSION=${VERSION:-0.5.11} +VERSION=${VERSION:-0.6.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,7 +62,7 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +cd $PRGNAM-$VERSION/$PRGNAM chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -70,7 +70,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -cat $CWD/config > .config +cat $CWD/hostapd.defconfig > .config +# Fix bug with mac80211-based drivers in hostapd 0.6.10 +# http://lists.shmoo.com/pipermail/hostap/2010-February/021118.html +patch -p2 < $CWD/DTIM.patch CFLAGS+="$SLKCFLAGS" make @@ -84,9 +87,7 @@ install -D -m 0755 $CWD/rc.hostapd $PKG/etc/rc.d/rc.hostapd.new DOINST_TMP=$(mktemp) # temporary holding place for i in \ - hlr_auc_gw.milenage_db hostapd.accept hostapd.conf \ - hostapd.deny hostapd.eap_user hostapd.radius_clients \ - hostapd.sim_db hostapd.wpa_psk madwifi.conf wired.conf ; + hostapd.??* *.conf do cat $i > $PKG/etc/hostapd/$i.new ; chmod 0600 $PKG/etc/hostapd/$i.new ; @@ -101,7 +102,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION +cp -ar ../COPYING ChangeLog README* *.txt logwatch $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |