From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-921221-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 219F4139085 for <garchives@archives.gentoo.org>; Wed, 4 Jan 2017 13:26:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD544E0C81; Wed, 4 Jan 2017 13:26:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 82B98E0C81 for <gentoo-commits@lists.gentoo.org>; Wed, 4 Jan 2017 13:26:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DB0BE3412B7 for <gentoo-commits@lists.gentoo.org>; Wed, 4 Jan 2017 13:26:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B406724C5 for <gentoo-commits@lists.gentoo.org>; Wed, 4 Jan 2017 13:25:58 +0000 (UTC) From: "David Seifert" <soap@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" <soap@gentoo.org> Message-ID: <1483536308.e60dab5b27bc3212e4c21b0caa079dcc61830425.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hexinject/files/, net-analyzer/hexinject/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/hexinject/Manifest net-analyzer/hexinject/files/hexinject-1.5-fix-build-system.patch net-analyzer/hexinject/hexinject-1.5.ebuild net-analyzer/hexinject/metadata.xml X-VCS-Directories: net-analyzer/hexinject/files/ net-analyzer/hexinject/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: e60dab5b27bc3212e4c21b0caa079dcc61830425 X-VCS-Branch: master Date: Wed, 4 Jan 2017 13:25:58 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1649ce20-de9a-4c1a-b719-668d7ce74741 X-Archives-Hash: f9421e723d8e669effe1461e2f25ca87 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>