* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hexinject/files/, net-analyzer/hexinject/
@ 2017-01-04 13:25 David Seifert
0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2017-01-04 13:25 UTC (permalink / raw
To: gentoo-commits
commit: e60dab5b27bc3212e4c21b0caa079dcc61830425
Author: Kacper Kołodziej <kacper <AT> kolodziej <DOT> in>
AuthorDate: Sun Nov 27 12:47:22 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Jan 4 13:25:08 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e60dab5b
net-analyzer/hexinject: new package
Package-Manager: portage-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/2933
net-analyzer/hexinject/Manifest | 1 +
.../files/hexinject-1.5-fix-build-system.patch | 15 +++++++++
net-analyzer/hexinject/hexinject-1.5.ebuild | 37 ++++++++++++++++++++++
net-analyzer/hexinject/metadata.xml | 19 +++++++++++
4 files changed, 72 insertions(+)
diff --git a/net-analyzer/hexinject/Manifest b/net-analyzer/hexinject/Manifest
new file mode 100644
index 00000000..75d69e9
--- /dev/null
+++ b/net-analyzer/hexinject/Manifest
@@ -0,0 +1 @@
+DIST hexinject-1.5.tar.gz 14449 SHA256 329f0686069988ac0dae4a00082b205ac9669bc8e202d4b112c600bcbc198ce9 SHA512 cd145b6f2ae9d739effca03959fb474df11d28ff015c0e5bd1e30c341f60085154795f3c8a601b7241623944b3868b6fc9a3e1530a3aa4e7aaa2b3794a5aa34a WHIRLPOOL 96e065ca7135f12db6e5949fb8fd537e0981f5b0cc1d57d40eb59003aabc87ae2459872cb11108727c0032b6c5282d385512678859da081d783bc692f8044c93
diff --git a/net-analyzer/hexinject/files/hexinject-1.5-fix-build-system.patch b/net-analyzer/hexinject/files/hexinject-1.5-fix-build-system.patch
new file mode 100644
index 00000000..046d083
--- /dev/null
+++ b/net-analyzer/hexinject/files/hexinject-1.5-fix-build-system.patch
@@ -0,0 +1,15 @@
+Respect user flags
+
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,7 @@
+ all:
+- gcc -o hexinject hexinject.c -lpcap
+- gcc -o prettypacket prettypacket.c
+- gcc -o hex2raw hex2raw.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o hexinject hexinject.c -lpcap
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o prettypacket prettypacket.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o hex2raw hex2raw.c
+
+ clean:
+ rm -f hexinject prettypacket hex2raw *~
diff --git a/net-analyzer/hexinject/hexinject-1.5.ebuild b/net-analyzer/hexinject/hexinject-1.5.ebuild
new file mode 100644
index 00000000..5c68e66
--- /dev/null
+++ b/net-analyzer/hexinject/hexinject-1.5.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Network packet sniffer and injector"
+HOMEPAGE="http://hexinject.sourceforge.net/"
+SRC_URI="http://downloads.sourceforge.net/project/${PN}/${P}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+tools experimental"
+
+DEPEND="net-libs/libpcap"
+RDEPEND="${DEPEND}
+ experimental? ( dev-lang/tcl )"
+
+S="${WORKDIR}/${PN}"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.5-fix-build-system.patch )
+
+src_prepare() {
+ default
+ append-cflags -std=gnu89
+ tc-export CC
+}
+
+src_install() {
+ dobin hexinject
+ use tools && dobin hex2raw prettypacket
+ use experimental && dobin packets.tcl
+ einstalldocs
+}
diff --git a/net-analyzer/hexinject/metadata.xml b/net-analyzer/hexinject/metadata.xml
new file mode 100644
index 00000000..4f674db
--- /dev/null
+++ b/net-analyzer/hexinject/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ HexInject is a very versatile packet injector and sniffer, that provide
+ a command-line framework for raw network access. It's designed to work
+ together with others command-line utilities, and for this reason it
+ facilitates the creation of powerful shell scripts capable of reading,
+ intercepting and modifying network traffic in a transparent manner.
+ </longdescription>
+ <use>
+ <flag name="tools">Install hex2raw and prettypacket tools</flag>
+ <flag name="experimental">Install experimental packets.tcl</flag>
+ </use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hexinject/files/, net-analyzer/hexinject/
@ 2017-10-24 23:57 Thomas Deutschmann
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Deutschmann @ 2017-10-24 23:57 UTC (permalink / raw
To: gentoo-commits
commit: 7e4ce47327ba61cd792d94e9a29f6522407bac8f
Author: Nils Freydank <holgersson <AT> posteo <DOT> de>
AuthorDate: Tue Oct 24 23:56:52 2017 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Oct 24 23:57:51 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e4ce473
net-analyzer/hexinject: Respect CFLAGS
Closes: https://github.com/gentoo/gentoo/pull/5987
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
.../files/hexinject-1.6-fix-build-system.patch | 18 +++++++++++
net-analyzer/hexinject/hexinject-1.6-r1.ebuild | 36 ++++++++++++++++++++++
2 files changed, 54 insertions(+)
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
new file mode 100644
index 00000000000..fbe91199bbf
--- /dev/null
+++ b/net-analyzer/hexinject/files/hexinject-1.6-fix-build-system.patch
@@ -0,0 +1,18 @@
+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.
+
+--- a/Makefile 2017-10-20 18:15:11.743805540 +0200
++++ b/Makefile 2017-10-20 18:24:55.120009439 +0200
+@@ -1,6 +1,6 @@
+-CC = gcc
+-CFLAGS = -Wall
+-LDFLAGS = -lpcap
++CC ?= gcc
++CFLAGS += -Wall
++LDFLAGS = -lpcap
+
+ all:
+ $(CC) $(CFLAGS) $(LDFLAGS) -o hexinject hexinject.c
diff --git a/net-analyzer/hexinject/hexinject-1.6-r1.ebuild b/net-analyzer/hexinject/hexinject-1.6-r1.ebuild
new file mode 100644
index 00000000000..e36c1803461
--- /dev/null
+++ b/net-analyzer/hexinject/hexinject-1.6-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Network packet sniffer and injector"
+HOMEPAGE="http://hexinject.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+tools experimental"
+
+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
+}
+
+src_install() {
+ dobin hexinject
+ use tools && dobin hex2raw prettypacket
+ use experimental && dobin packets.tcl
+ einstalldocs
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-24 23:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-04 13:25 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hexinject/files/, net-analyzer/hexinject/ David Seifert
-- strict thread matches above, loose matches on Subject: below --
2017-10-24 23:57 Thomas Deutschmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox