public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hexinject/, net-analyzer/hexinject/files/
@ 2022-12-06 21:25 David Seifert
  0 siblings, 0 replies; only message in thread
From: David Seifert @ 2022-12-06 21:25 UTC (permalink / raw
  To: gentoo-commits

commit:     dee8bad893c1a600b59e6ab18b2a9d8474c03003
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  6 21:25:31 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec  6 21:25:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee8bad8

net-analyzer/hexinject: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/724862
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/hexinject-1.6-fix-build-system.patch     | 22 +++++++++++++---------
 ...nject-1.6-r1.ebuild => hexinject-1.6-r2.ebuild} |  9 +++------
 2 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/net-analyzer/hexinject/files/hexinject-1.6-fix-build-system.patch b/net-analyzer/hexinject/files/hexinject-1.6-fix-build-system.patch
index fbe91199bbfa..9d22337afa93 100644
--- a/net-analyzer/hexinject/files/hexinject-1.6-fix-build-system.patch
+++ b/net-analyzer/hexinject/files/hexinject-1.6-fix-build-system.patch
@@ -1,18 +1,22 @@
 Author: holgersson <holgersson@posteo.de>
 Date:   Fri Oct 20 18:30:00 2017 +0200
 
-Don’t call gcc directly, and respect CFLAGS. As this project
-is plain C I don’t care fore CXXFLAGS here.
+Respect CC, CFLAGS, CPPFLAGS and LDFLAGS.
 
---- a/Makefile	2017-10-20 18:15:11.743805540 +0200
-+++ b/Makefile	2017-10-20 18:24:55.120009439 +0200
-@@ -1,6 +1,6 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,11 +1,7 @@
 -CC = gcc
 -CFLAGS = -Wall
 -LDFLAGS = -lpcap
-+CC ?= gcc
 +CFLAGS += -Wall
-+LDFLAGS = -lpcap
++LDLIBS = -lpcap
  
- all:
- 	$(CC) $(CFLAGS) $(LDFLAGS) -o hexinject hexinject.c
+-all:
+-	$(CC) $(CFLAGS) $(LDFLAGS) -o hexinject hexinject.c
+-	$(CC) $(CFLAGS) $(LDFLAGS) -o prettypacket prettypacket.c
+-	$(CC) $(CFLAGS) $(LDFLAGS) -o hex2raw hex2raw.c
++all: hexinject prettypacket hex2raw
+ 
+ clean:
+ 	rm -f hexinject prettypacket hex2raw *~

diff --git a/net-analyzer/hexinject/hexinject-1.6-r1.ebuild b/net-analyzer/hexinject/hexinject-1.6-r2.ebuild
similarity index 91%
rename from net-analyzer/hexinject/hexinject-1.6-r1.ebuild
rename to net-analyzer/hexinject/hexinject-1.6-r2.ebuild
index e36c1803461e..bfef01f88b8f 100644
--- a/net-analyzer/hexinject/hexinject-1.6-r1.ebuild
+++ b/net-analyzer/hexinject/hexinject-1.6-r2.ebuild
@@ -1,13 +1,14 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=8
 
 inherit toolchain-funcs
 
 DESCRIPTION="Network packet sniffer and injector"
 HOMEPAGE="http://hexinject.sourceforge.net/"
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+S="${WORKDIR}/${PN}"
 
 LICENSE="BSD"
 SLOT="0"
@@ -18,13 +19,9 @@ DEPEND="net-libs/libpcap"
 RDEPEND="${DEPEND}
 	experimental? ( dev-lang/tcl )"
 
-S="${WORKDIR}/${PN}"
-
 PATCHES=( "${FILESDIR}"/${PN}-1.6-fix-build-system.patch )
 
 src_configure() {
-	default
-
 	tc-export CC
 }
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-06 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06 21:25 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hexinject/, net-analyzer/hexinject/files/ David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox