summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Timo Gurr <tgurr@exherbo.org> 2018-08-06 16:27:01 +0200
committerAvatar Timo Gurr <tgurr@exherbo.org> 2018-08-06 16:27:43 +0200
commit83d7399f3e4acaa5e853cbfdba93a9add12fde37 (patch)
tree26c9dd40edccbb598ed90be243735b8e78ca208a
parent550543f4d49b774f762d534aac0abc49afdb4185 (diff)
downloadnet-83d7399f3e4acaa5e853cbfdba93a9add12fde37.tar.gz
net-83d7399f3e4acaa5e853cbfdba93a9add12fde37.tar.xz
aircrack-ng: version bump to 1.3
-rw-r--r--metadata/repository_mask.conf7
-rw-r--r--packages/net-wireless/aircrack-ng/aircrack-ng-1.1-r3.exheres-034
-rw-r--r--packages/net-wireless/aircrack-ng/aircrack-ng-1.2-rc2-r1.exheres-064
-rw-r--r--packages/net-wireless/aircrack-ng/aircrack-ng-1.3.exheres-07
-rw-r--r--packages/net-wireless/aircrack-ng/aircrack-ng.exlib70
5 files changed, 73 insertions, 109 deletions
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index 258346f..42a97b8 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -28,13 +28,6 @@ net-fs/cifs-utils[<=5.3] [[
description = [ CVE-2012-1586 ]
]]
-net-wireless/aircrack-ng[>=1.1_p2245] [[
- author = [ Wouter van Kesteren <woutershep@gmail.com> ]
- date = [ 1 May 2015 ]
- token = testing
- description = [ Release candidate ]
-]]
-
apache-mod/mod_wsgi[<4.1.0] [[
author = [ Wulf C. Krueger <philantrop@exherbo.org> ]
date = [ 14 Jun 2014 ]
diff --git a/packages/net-wireless/aircrack-ng/aircrack-ng-1.1-r3.exheres-0 b/packages/net-wireless/aircrack-ng/aircrack-ng-1.1-r3.exheres-0
deleted file mode 100644
index 8253cb3..0000000
--- a/packages/net-wireless/aircrack-ng/aircrack-ng-1.1-r3.exheres-0
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2009 Maxime Coste
-# Copyright 2010-2011 Wulf C. Krueger <philantrop@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require aircrack-ng
-
-PLATFORMS="~amd64 ~x86"
-LICENCES="GPL-2 openssl"
-MYOPTIONS="sqlite"
-
-DEPENDENCIES="
- build+run:
- sqlite? ( dev-db/sqlite:3 )
- run:
- net-wireless/wireless_tools
-"
-
-DEFAULT_SRC_INSTALL_PARAMS=(
- bindir=/usr/$(exhost --target)/bin
- sbindir=/usr/$(exhost --target)/bin
- mandir=/usr/share/man/man1
- docdir=/usr/share/doc/${PNV}
- unstable=true
-)
-
-src_prepare() {
- default
- export TOOL_PREFIX="$(exhost --tool-prefix)"
-}
-
-src_compile() {
- emake sqlite=$(option sqlite true false) unstable=true
-}
-
diff --git a/packages/net-wireless/aircrack-ng/aircrack-ng-1.2-rc2-r1.exheres-0 b/packages/net-wireless/aircrack-ng/aircrack-ng-1.2-rc2-r1.exheres-0
deleted file mode 100644
index e336791..0000000
--- a/packages/net-wireless/aircrack-ng/aircrack-ng-1.2-rc2-r1.exheres-0
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 2011-2015 Wouter van Kesteren <woutershep@gmail.com>
-# Distributed under the terms of the GNU General Public License v2
-
-require aircrack-ng
-
-PLATFORMS="~amd64 ~x86"
-LICENCES="|| ( GPL-2 GPL-3 )"
-MYOPTIONS="
- sqlite [[ description = [ Needed for airolib-ng databases ] ]]
- nl80211 [[ description = [ Use netlink (nl80211) instead of iwconfig ] ]]
-
- ( providers: gcrypt libressl openssl ) [[ number-selected = exactly-one ]]
-"
-
-DEPENDENCIES="
- build:
- nl80211? ( virtual/pkg-config )
- build+run:
- dev-libs/pcre
- dev-libs/libpcap [[ note = [ automagic ] ]]
- providers:gcrypt? ( dev-libs/libgcrypt )
- providers:libressl? ( dev-libs/libressl:= )
- providers:openssl? ( dev-libs/openssl )
- nl80211? ( net-libs/libnl:3.0 )
- sqlite? ( dev-db/sqlite:3[>=3.6] )
- run:
- !nl80211? ( net-wireless/wireless_tools )
-"
-
-src_prepare() {
- # well it would have been automagic if it wasnt for cross
- edo sed -i -e 's/ld -lpcap/true/' src/Makefile
-}
-
-src_compile() {
- local usr_target=/usr/$(exhost --target)
-
- MY_PARAMS=(
- experimental=true
- pcre=true
-
- # ordered as per makefile
- prefix=/usr
- bindir=${usr_target}/bin
- sbindir=${usr_target}/bin
- docdir=/usr/share/doc/${PNVR}
- libdir=${usr_target}/lib
- etcdir=/etc/aircrack-ng
-
- gcrypt=$(option providers:gcrypt true false)
- libnl=$(option nl80211 true false)
- sqlite=$(option sqlite true false)
- )
-
- emake "${MY_PARAMS[@]}" all
-}
-
-src_install() {
- emake DESTDIR="${IMAGE}" "${MY_PARAMS[@]}" install
-
- # idealy we would add 'doc' above, but
- # the makefiles are too broken for that.
- emake DESTDIR="${IMAGE}" "${MY_PARAMS[@]}" doc
-}
diff --git a/packages/net-wireless/aircrack-ng/aircrack-ng-1.3.exheres-0 b/packages/net-wireless/aircrack-ng/aircrack-ng-1.3.exheres-0
new file mode 100644
index 0000000..a9323e6
--- /dev/null
+++ b/packages/net-wireless/aircrack-ng/aircrack-ng-1.3.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2011-2015 Wouter van Kesteren <woutershep@gmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+require aircrack-ng
+
+PLATFORMS="~amd64 ~x86"
+
diff --git a/packages/net-wireless/aircrack-ng/aircrack-ng.exlib b/packages/net-wireless/aircrack-ng/aircrack-ng.exlib
index 1eef28d..63e6616 100644
--- a/packages/net-wireless/aircrack-ng/aircrack-ng.exlib
+++ b/packages/net-wireless/aircrack-ng/aircrack-ng.exlib
@@ -2,6 +2,11 @@
# Copyright 2010-2015 Wulf C. Krueger <philantrop@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
+require toolchain-funcs \
+ autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ]
+
+export_exlib_phases src_configure
+
SUMMARY="Tools for cracking wireless network security"
DESCRIPTION="
Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that can recover
@@ -10,16 +15,73 @@ attack along with some optimizations like KoreK attacks, as well as the all-new
PTW attack, thus making the attack much faster compared to other WEP cracking
tools. In fact, Aircrack-ng is a set of tools for auditing wireless networks.
"
-
-HOMEPAGE="http://${PN}.org"
+HOMEPAGE="https://${PN}.org"
+DOWNLOADS="https://download.${PN}.org/${PNV}.tar.gz"
BUGS_TO="philantrop@exherbo.org"
-REMOTE_IDS="freecode:${PN}"
UPSTREAM_CHANGELOG="${HOMEPAGE}/doku.php#changelog [[ lang = en ]]"
UPSTREAM_DOCUMENTATION="${HOMEPAGE}/doku.php [[ lang = en ]]"
+LICENCES="|| ( GPL-2 GPL-3 )"
SLOT="0"
+MYOPTIONS="
+ sqlite [[ description = [ Needed for airolib-ng databases ] ]]
+
+ ( providers: gcrypt libressl openssl ) [[ number-selected = exactly-one ]]
+"
+
+DEPENDENCIES="
+ build:
+ virtual/pkg-config
+ build+run:
+ dev-libs/libpcap
+ dev-libs/pcre
+ net-libs/libnl:3.0[>=3.2]
+ sys-apps/ethtool
+ providers:gcrypt? ( dev-libs/libgcrypt[>=1.2.0] )
+ providers:libressl? ( dev-libs/libressl:= )
+ providers:openssl? ( dev-libs/openssl )
+ sqlite? ( dev-db/sqlite:3[>=3.6] )
+ test:
+ dev-util/cmocka
+"
+
+AT_M4DIR=( build/m4 )
+
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ --enable-libnl
+ --disable-asan
+ --disable-code-coverage
+ --disable-tsan
+ --disable-valgrind
+ --without-airpcap
+ --without-duma
+ --without-experimental
+ --without-ext-scripts
+ --without-gcov
+ --without-jemalloc
+ --without-opt
+ --without-tcmalloc
+ --without-xcode
+)
+DEFAULT_SRC_CONFIGURE_OPTION_WITHS=(
+ 'providers:gcrypt gcrypt'
+ 'sqlite sqlite3'
+)
+
+aircrack-ng_src_configure() {
+ local myconf=(
+ "${DEFAULT_SRC_CONFIGURE_PARAMS[@]}" \
+ $(for s in "${DEFAULT_SRC_CONFIGURE_OPTION_WITHS[@]}" ; do \
+ option_with ${s} ; \
+ done )
+ )
+
+ myconf+=(
+ $(cc-has-defined __AVX512__ && echo --with-avx512 || echo --without-avx512)
+ )
-DOWNLOADS="http://download.${PN}.org/${PNV}.tar.gz"
+ econf "${myconf[@]}"
+}