summaryrefslogtreecommitdiff
path: root/net-wireless/aircrack-ng
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/aircrack-ng')
-rw-r--r--net-wireless/aircrack-ng/Manifest6
-rw-r--r--net-wireless/aircrack-ng/aircrack-ng-1.5.2.ebuild3
-rw-r--r--net-wireless/aircrack-ng/aircrack-ng-1.6.ebuild119
-rw-r--r--net-wireless/aircrack-ng/aircrack-ng-9999.ebuild5
4 files changed, 126 insertions, 7 deletions
diff --git a/net-wireless/aircrack-ng/Manifest b/net-wireless/aircrack-ng/Manifest
index 6678da022bdf..f6d7b1e8750f 100644
--- a/net-wireless/aircrack-ng/Manifest
+++ b/net-wireless/aircrack-ng/Manifest
@@ -1,4 +1,6 @@
DIST aircrack-ng-1.5.2.tar.gz 7138360 BLAKE2B cfc178d76273bb1cf6c34b1656a710d046a094f9c772a562f19ae783c30810cf7b6aa8668566ef6998af79090266771aeea8037b446eb0b9755b602ddcebc0d2 SHA512 72c249782dda3a875fbec98e4fe0e6044a6f123ebd36341a5f42733dfe6c26d96b5c74f67c0547b81c5dd5e2f52a6f475b424885f8e6fa21279ac539228038f5
-EBUILD aircrack-ng-1.5.2.ebuild 2919 BLAKE2B 43fcdcb640aa5935a3e2219effd6916261ef339a11cbd5640c4c3c0b7b19eb7a770152e827b8435073a035dfd31783981a588cc50400b7e7381cb792d5f08727 SHA512 8b55b035ce6adc7496ad42096e3350b68673a1c5fbc767435656941107d7259a3e8d578a90eae25ed357eebda34afe3ca1ce39e62e0921f03df92009f18b6e28
-EBUILD aircrack-ng-9999.ebuild 2902 BLAKE2B 5f58efb09471a894c7cff3898d7a73b252fe92270f2834fd22acb3c3f57ebccfcd96fe493bc7715d0bde7189ffb713ef8ae5dca5fc74b8ba864375d522f0e934 SHA512 5108b684defd91d55de9ebd9c0d26a4fe6c8e625cb7ba84eabaf0ded2f7cdd4e64b6796230185398f7679e7c1923bec3cf9f92503967729d87ca3ac519d018e3
+DIST aircrack-ng-1.6.tar.gz 7933308 BLAKE2B c4cacdc9b767789a7b2426857831c1f8166d3f2e11a71cffc1466f2d4006552dfe420a50e0085f3c74fbdc23770309bb81d49e0c5372b0e4a8fa5e294c16d942 SHA512 df65ec3032ff20dc4aae4921e6a9c330a51b5df89af02d4c6fbf691fcfade21658b1a2d5de286a7e729dc6fb740f6fd4e6b6f53649486ef64bc3d00d81a95bd5
+EBUILD aircrack-ng-1.5.2.ebuild 2893 BLAKE2B a93ce214ad665bbf50e7d08bb1250731e2993437592fa6db39b1a207090ec4264e6f8b8b51d6a4f6f97b972250d0abb2afd5b23394899ae3075464939ef4a5ce SHA512 7797d00f2128120e5755a023903f6677c83face85d31053b71e9a11f73fcb2f64069464727aae58c6a234ad1fe673a987afe49c9271a191dd5cf0420b6f43572
+EBUILD aircrack-ng-1.6.ebuild 3065 BLAKE2B b9c609292bc81035b97a48a2ba3824f2c6a9c96a6d299b4831525f5f14f66d79366ddc5f0159e81130c5737f23a9cd62d5bc2938db2b31000384cd8f1438c445 SHA512 0a9dbcb42146f62aad2e4b6db30bf86605347c094131f4a23056512d6fab3e81169350c62474c3f37222e919c5b2fa4e7c3f251e019ca3974e69420c582fa3a0
+EBUILD aircrack-ng-9999.ebuild 2896 BLAKE2B a71674967487bffbe6662aba8c02b5861d403f4cf97cb8ff711d19d46ad295a4e6089acaa5dca96fb1aab4704fc44bc3ed8dac6b60656bab149d0875c02da557 SHA512 69c5efbb589d303a88a1ef18fcd2def9c9273e26fa967eebc320d5f6443c592119012ea213f0d35ce224d3627de4c296f0f6f46723ba061f335f65728d68cf0c
MISC metadata.xml 936 BLAKE2B 1e62943b6dbb382d972c07ec810b332be4e9e949b025450bdcc6380f129c463c5dc370a476bb3db64172e8ac319b93361ce0cc1cd71d2072acb5a0891413ebf7 SHA512 6fc72c61abbddf6019c5a3610e422d24cd0d915e98789b411c978b54c61b4d6c50224a5d0905b25520f27067245327dd10ad3cada1d0a316d66b18ed9fc3016e
diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.5.2.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.5.2.ebuild
index c03f3658dc90..bc429d293451 100644
--- a/net-wireless/aircrack-ng/aircrack-ng-1.5.2.ebuild
+++ b/net-wireless/aircrack-ng/aircrack-ng-1.5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -14,7 +14,6 @@ HOMEPAGE="http://www.aircrack-ng.org"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git"
- KEYWORDS="amd64 arm x86"
else
MY_PV=${PV/_/-}
SRC_URI="https://download.aircrack-ng.org/${P}.tar.gz"
diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.6.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.6.ebuild
new file mode 100644
index 000000000000..69db574fc3d5
--- /dev/null
+++ b/net-wireless/aircrack-ng/aircrack-ng-1.6.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Upstream aircrack-ng supports python 3.x but lorcon doesn't yet and
+# it is needed for airdrop-ng. Will adjust when ready.
+#PYTHON_COMPAT=( python2_7 python3_{6,7,8})
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_OPTIONAL=1
+
+inherit toolchain-funcs distutils-r1 flag-o-matic autotools
+
+DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
+HOMEPAGE="http://www.aircrack-ng.org"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git"
+else
+ MY_PV=${PV/_/-}
+ SRC_URI="https://download.aircrack-ng.org/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD libressl +netlink +pcre +sqlite +experimental"
+
+DEPEND="net-libs/libpcap
+ sys-apps/hwloc:0=
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ netlink? ( dev-libs/libnl:3 )
+ pcre? ( dev-libs/libpcre )
+ airdrop-ng? ( ${PYTHON_DEPS} )
+ airgraph-ng? ( ${PYTHON_DEPS} )
+ experimental? ( sys-libs/zlib )
+ sqlite? ( >=dev-db/sqlite-3.4 )"
+RDEPEND="${DEPEND}"
+PDEPEND="kernel_linux? (
+ net-wireless/iw
+ net-wireless/wireless-tools
+ sys-apps/ethtool
+ sys-apps/usbutils
+ sys-apps/pciutils )
+ sys-apps/hwids
+ airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )"
+
+REQUIRED_USE="
+ airdrop-ng? ( ${PYTHON_REQUIRED_USE} )
+ airgraph-ng? ( ${PYTHON_REQUIRED_USE} )"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ STATIC_LIBDIR_NAME="$(get_libdir)" \
+ --disable-asan \
+ --enable-shared \
+ --disable-static \
+ --without-opt \
+ $(use_enable netlink libnl) \
+ $(use_with experimental) \
+ $(use_with sqlite sqlite3)
+}
+
+src_compile() {
+ if [[ $($(tc-getCC) --version) == clang* ]] ; then
+ #https://bugs.gentoo.org/show_bug.cgi?id=472890
+ filter-flags -frecord-gcc-switches
+ fi
+
+ default
+
+ if use airgraph-ng; then
+ cd "${S}/scripts/airgraph-ng"
+ distutils-r1_src_compile
+ fi
+ if use airdrop-ng; then
+ cd "${S}/scripts/airdrop-ng"
+ distutils-r1_src_compile
+ fi
+}
+
+src_install() {
+ default
+
+ if use airgraph-ng; then
+ cd "${S}/scripts/airgraph-ng"
+ distutils-r1_src_install
+ fi
+ if use airdrop-ng; then
+ cd "${S}/scripts/airdrop-ng"
+ distutils-r1_src_install
+ fi
+
+ # we don't need aircrack-ng's oui updater, we have our own
+ rm "${ED}"/usr/sbin/airodump-ng-oui-update
+}
+
+pkg_postinst() {
+ # Message is (c) FreeBSD
+ # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5
+ if use kernel_FreeBSD ; then
+ einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor"
+ einfo "mode of your wireless card. So do not care about what the manpages say about"
+ einfo "airmon-ng, airodump-ng sets monitor mode automatically."
+ echo
+ einfo "To return from monitor mode, issue the following command:"
+ einfo " ifconfig \${INTERFACE} -mediaopt monitor"
+ einfo
+ einfo "For aireplay-ng you need FreeBSD >= 7.0."
+ fi
+}
diff --git a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild
index a2e14c08c242..fa7cdd3ca822 100644
--- a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild
+++ b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -14,11 +14,10 @@ HOMEPAGE="http://www.aircrack-ng.org"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/aircrack-ng/aircrack-ng.git"
- KEYWORDS=""
else
MY_PV=${PV/_/-}
SRC_URI="https://download.aircrack-ng.org/${P}.tar.gz"
- KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux"
fi
LICENSE="GPL-2"