diff options
Diffstat (limited to 'network/aircrack-ng')
-rw-r--r-- | network/aircrack-ng/aircrack-ng.SlackBuild | 30 | ||||
-rw-r--r-- | network/aircrack-ng/aircrack-ng.info | 6 |
2 files changed, 21 insertions, 15 deletions
diff --git a/network/aircrack-ng/aircrack-ng.SlackBuild b/network/aircrack-ng/aircrack-ng.SlackBuild index 375650b2d9..ab690d470a 100644 --- a/network/aircrack-ng/aircrack-ng.SlackBuild +++ b/network/aircrack-ng/aircrack-ng.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for aircrack-ng # Originally written by Yalla-One <yallaone@gmail.com> -# Copyright 2018, 2019 Dominik Drobek <dominik.drobek (at) o2.pl> +# Copyright 2018-2020 Dominik Drobek <dominik.drobek (at) o2.pl> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=aircrack-ng -VERSION=${VERSION:-1.5.2} +VERSION=${VERSION:-1.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -79,7 +89,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS -fcommon" \ CXXFLAGS="$SLKCFLAGS" \ ./autogen.sh \ --prefix=/usr \ @@ -102,18 +112,14 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS ChangeLog INSTALLING LICENSE* README VERSION \ + AUTHORS ChangeLog INSTALLING LICENSE* README* SECURITY.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# experimental tools seem to ignore docdir option -if [ "$AIRCRACK_EXPERIMENTAL" != "no" ]; then - mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION - rm -r $PKG/usr/share -fi +rm -f $PKG/usr/lib*/*.la mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/aircrack-ng/aircrack-ng.info b/network/aircrack-ng/aircrack-ng.info index 49a1280369..0d318507cc 100644 --- a/network/aircrack-ng/aircrack-ng.info +++ b/network/aircrack-ng/aircrack-ng.info @@ -1,8 +1,8 @@ PRGNAM="aircrack-ng" -VERSION="1.5.2" +VERSION="1.7" HOMEPAGE="https://www.aircrack-ng.org" -DOWNLOAD="https://download.aircrack-ng.org/aircrack-ng-1.5.2.tar.gz" -MD5SUM="2648c192d206e953c67dca64967d2982" +DOWNLOAD="https://download.aircrack-ng.org/aircrack-ng-1.7.tar.gz" +MD5SUM="a918ea7146f91d8c799fb770c38f4bec" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |