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

Closes: https://bugs.gentoo.org/724862
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2022-12-06 22:25:31 +01:00
parent d86053615e
commit dee8bad893
2 changed files with 16 additions and 15 deletions

View File

@@ -1,18 +1,22 @@
Author: holgersson <holgersson@posteo.de>
Date: Fri Oct 20 18:30:00 2017 +0200
Dont call gcc directly, and respect CFLAGS. As this project
is plain C I dont 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 *~

View File

@@ -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
}