mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
@@ -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 *~
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user