1 |
commit: 7e4ce47327ba61cd792d94e9a29f6522407bac8f |
2 |
Author: Nils Freydank <holgersson <AT> posteo <DOT> de> |
3 |
AuthorDate: Tue Oct 24 23:56:52 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 24 23:57:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e4ce473 |
7 |
|
8 |
net-analyzer/hexinject: Respect CFLAGS |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/5987 |
11 |
|
12 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
13 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
14 |
|
15 |
.../files/hexinject-1.6-fix-build-system.patch | 18 +++++++++++ |
16 |
net-analyzer/hexinject/hexinject-1.6-r1.ebuild | 36 ++++++++++++++++++++++ |
17 |
2 files changed, 54 insertions(+) |
18 |
|
19 |
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 |
20 |
new file mode 100644 |
21 |
index 00000000000..fbe91199bbf |
22 |
--- /dev/null |
23 |
+++ b/net-analyzer/hexinject/files/hexinject-1.6-fix-build-system.patch |
24 |
@@ -0,0 +1,18 @@ |
25 |
+Author: holgersson <holgersson@××××××.de> |
26 |
+Date: Fri Oct 20 18:30:00 2017 +0200 |
27 |
+ |
28 |
+Don’t call gcc directly, and respect CFLAGS. As this project |
29 |
+is plain C I don’t care fore CXXFLAGS here. |
30 |
+ |
31 |
+--- a/Makefile 2017-10-20 18:15:11.743805540 +0200 |
32 |
++++ b/Makefile 2017-10-20 18:24:55.120009439 +0200 |
33 |
+@@ -1,6 +1,6 @@ |
34 |
+-CC = gcc |
35 |
+-CFLAGS = -Wall |
36 |
+-LDFLAGS = -lpcap |
37 |
++CC ?= gcc |
38 |
++CFLAGS += -Wall |
39 |
++LDFLAGS = -lpcap |
40 |
+ |
41 |
+ all: |
42 |
+ $(CC) $(CFLAGS) $(LDFLAGS) -o hexinject hexinject.c |
43 |
|
44 |
diff --git a/net-analyzer/hexinject/hexinject-1.6-r1.ebuild b/net-analyzer/hexinject/hexinject-1.6-r1.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..e36c1803461 |
47 |
--- /dev/null |
48 |
+++ b/net-analyzer/hexinject/hexinject-1.6-r1.ebuild |
49 |
@@ -0,0 +1,36 @@ |
50 |
+# Copyright 1999-2017 Gentoo Foundation |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI="6" |
54 |
+ |
55 |
+inherit toolchain-funcs |
56 |
+ |
57 |
+DESCRIPTION="Network packet sniffer and injector" |
58 |
+HOMEPAGE="http://hexinject.sourceforge.net/" |
59 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
60 |
+ |
61 |
+LICENSE="BSD" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~amd64 ~x86" |
64 |
+IUSE="+tools experimental" |
65 |
+ |
66 |
+DEPEND="net-libs/libpcap" |
67 |
+RDEPEND="${DEPEND} |
68 |
+ experimental? ( dev-lang/tcl )" |
69 |
+ |
70 |
+S="${WORKDIR}/${PN}" |
71 |
+ |
72 |
+PATCHES=( "${FILESDIR}"/${PN}-1.6-fix-build-system.patch ) |
73 |
+ |
74 |
+src_configure() { |
75 |
+ default |
76 |
+ |
77 |
+ tc-export CC |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ dobin hexinject |
82 |
+ use tools && dobin hex2raw prettypacket |
83 |
+ use experimental && dobin packets.tcl |
84 |
+ einstalldocs |
85 |
+} |