public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rick Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/aircrack-ng/
Date: Tue, 25 Apr 2023 19:13:16 +0000 (UTC)	[thread overview]
Message-ID: <1682449995.f03395527ef657d411375a51f9ad536f160507e3.zerochaos@gentoo> (raw)

commit:     f03395527ef657d411375a51f9ad536f160507e3
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 25 19:10:30 2023 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Tue Apr 25 19:13:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0339552

net-wireless/aircrack-ng: modernize, fix qa

removed a bunch of unneeded code and further modernized ebuild
Thanks to significant help from mgorny and Arfrever
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 ...-ng-1.7-r2.ebuild => aircrack-ng-1.7-r3.ebuild} | 38 ++++++++++------------
 net-wireless/aircrack-ng/aircrack-ng-9999.ebuild   | 38 ++++++++++------------
 2 files changed, 34 insertions(+), 42 deletions(-)

diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.7-r2.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.7-r3.ebuild
similarity index 78%
rename from net-wireless/aircrack-ng/aircrack-ng-1.7-r2.ebuild
rename to net-wireless/aircrack-ng/aircrack-ng-1.7-r3.ebuild
index a4fe5c4ec493..6020f6024964 100644
--- a/net-wireless/aircrack-ng/aircrack-ng-1.7-r2.ebuild
+++ b/net-wireless/aircrack-ng/aircrack-ng-1.7-r3.ebuild
@@ -3,12 +3,11 @@
 
 EAPI=8
 
-#this doesn't work because of multiple calls to distutils-r1_src_compile
-#DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..11} )
 DISTUTILS_OPTIONAL=1
 
-inherit toolchain-funcs distutils-r1 flag-o-matic autotools
+inherit distutils-r1 autotools
 
 DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
 HOMEPAGE="http://www.aircrack-ng.org"
@@ -50,8 +49,8 @@ RDEPEND="${CDEPEND}
 		sys-apps/pciutils )
 	sys-apps/hwdata
 	airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )"
-#BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} )
-#		airgraph-ng? ( ${DISTUTILS_DEPS} )"
+BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} )
+	airgraph-ng? ( ${DISTUTILS_DEPS} )"
 
 REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} )
 	airgraph-ng? ( ${PYTHON_REQUIRED_USE} )"
@@ -61,6 +60,9 @@ RESTRICT="!test? ( test )"
 src_prepare() {
 	default
 	eautoreconf
+	if use airgraph-ng || use airdrop-ng; then
+		distutils-r1_src_prepare
+	fi
 }
 
 src_configure() {
@@ -76,33 +78,27 @@ src_configure() {
 		$(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
-
+python_compile() {
 	if use airgraph-ng; then
 		cd "${S}/scripts/airgraph-ng" || die
-		distutils-r1_src_compile
+		distutils-r1_python_compile
 	fi
 	if use airdrop-ng; then
 		cd "${S}/scripts/airdrop-ng" || die
+		distutils-r1_python_compile
+	fi
+}
+
+src_compile() {
+	default
+	if use airgraph-ng || use airdrop-ng; then
 		distutils-r1_src_compile
 	fi
 }
 
 src_install() {
 	default
-
-	if use airgraph-ng; then
-		cd "${S}/scripts/airgraph-ng" || die
-		distutils-r1_src_install
-	fi
-	if use airdrop-ng; then
-		cd "${S}/scripts/airdrop-ng" || die
+	if use airgraph-ng || use airdrop-ng; then
 		distutils-r1_src_install
 	fi
 

diff --git a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild
index 41428d7587ed..b66df597673b 100644
--- a/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild
+++ b/net-wireless/aircrack-ng/aircrack-ng-9999.ebuild
@@ -3,12 +3,11 @@
 
 EAPI=8
 
-#this doesn't work because of multiple calls to distutils-r1_src_compile
-#DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{9..11} )
 DISTUTILS_OPTIONAL=1
 
-inherit toolchain-funcs distutils-r1 flag-o-matic autotools
+inherit distutils-r1 autotools
 
 DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
 HOMEPAGE="http://www.aircrack-ng.org"
@@ -50,8 +49,8 @@ RDEPEND="${CDEPEND}
 		sys-apps/pciutils )
 	sys-apps/hwdata
 	airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )"
-#BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} )
-#		airgraph-ng? ( ${DISTUTILS_DEPS} )"
+BDEPEND="airdrop-ng? ( ${DISTUTILS_DEPS} )
+	airgraph-ng? ( ${DISTUTILS_DEPS} )"
 
 REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} )
 	airgraph-ng? ( ${PYTHON_REQUIRED_USE} )"
@@ -61,6 +60,9 @@ RESTRICT="!test? ( test )"
 src_prepare() {
 	default
 	eautoreconf
+	if use airgraph-ng || use airdrop-ng; then
+		distutils-r1_src_prepare
+	fi
 }
 
 src_configure() {
@@ -76,33 +78,27 @@ src_configure() {
 		$(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
-
+python_compile() {
 	if use airgraph-ng; then
 		cd "${S}/scripts/airgraph-ng" || die
-		distutils-r1_src_compile
+		distutils-r1_python_compile
 	fi
 	if use airdrop-ng; then
 		cd "${S}/scripts/airdrop-ng" || die
+		distutils-r1_python_compile
+	fi
+}
+
+src_compile() {
+	default
+	if use airgraph-ng || use airdrop-ng; then
 		distutils-r1_src_compile
 	fi
 }
 
 src_install() {
 	default
-
-	if use airgraph-ng; then
-		cd "${S}/scripts/airgraph-ng" || die
-		distutils-r1_src_install
-	fi
-	if use airdrop-ng; then
-		cd "${S}/scripts/airdrop-ng" || die
+	if use airgraph-ng || use airdrop-ng; then
 		distutils-r1_src_install
 	fi
 


             reply	other threads:[~2023-04-25 19:13 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-25 19:13 Rick Farina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-10  1:05 [gentoo-commits] repo/gentoo:master commit in: net-wireless/aircrack-ng/ Rick Farina
2023-08-19 22:48 Rick Farina
2023-04-25  1:36 Rick Farina
2023-04-24 21:05 Rick Farina
2023-04-24 21:05 Rick Farina
2023-03-07 15:45 Sam James
2023-03-07 11:42 Sam James
2023-03-04  5:41 Arthur Zamarin
2022-05-11  0:36 Rick Farina
2022-01-13  1:53 Rick Farina
2022-01-04 10:30 David Seifert
2022-01-04  3:29 Sam James
2021-12-25  0:02 Mike Gilbert
2021-12-07 20:29 Sam James
2021-11-25 17:05 Mike Gilbert
2021-05-03  9:47 Mikle Kolyada
2021-02-17 16:47 Rick Farina
2020-11-05 22:26 Michał Górny
2020-10-13  9:26 Agostino Sarubbo
2020-10-09  8:40 Agostino Sarubbo
2020-10-03 14:53 Sam James
2020-07-23  2:07 Rick Farina
2020-07-23  2:07 Rick Farina
2020-05-28  1:28 Rick Farina
2020-05-28  1:28 Rick Farina
2020-02-14 19:40 Rick Farina
2020-01-27 21:32 Rick Farina
2020-01-27 21:32 Rick Farina
2019-05-21 16:45 Stephen Klimaszewski
2019-05-05 19:05 Mike Gilbert
2019-04-02 10:32 Alon Bar-Lev
2019-03-30 19:05 Mikle Kolyada
2019-03-24 10:01 Agostino Sarubbo
2019-01-21 22:05 Alon Bar-Lev
2019-01-21 20:37 Alon Bar-Lev
2018-12-17 16:21 Rick Farina
2018-10-09  9:42 Mikle Kolyada
2018-10-01 14:52 Richard Farina
2018-09-27 23:55 Alon Bar-Lev
2018-08-16 23:50 Mikle Kolyada
2018-08-14 11:31 Alon Bar-Lev
2018-08-14 11:31 Alon Bar-Lev
2018-08-14 11:31 Alon Bar-Lev
2018-08-14 11:31 Alon Bar-Lev
2018-07-09 14:20 Richard Farina
2017-03-03 12:56 Alon Bar-Lev
2017-02-04 21:40 Alon Bar-Lev
2016-06-30 17:16 Richard Farina
2015-12-18  4:37 Richard Farina
2015-12-11 22:55 Richard Farina
2015-11-22  3:36 Richard Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1682449995.f03395527ef657d411375a51f9ad536f160507e3.zerochaos@gentoo \
    --to=zerochaos@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox