diff options
Diffstat (limited to 'net-analyzer/hexinject')
-rw-r--r-- | net-analyzer/hexinject/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/hexinject/files/hexinject-1.6-fix-build-system.patch | 18 | ||||
-rw-r--r-- | net-analyzer/hexinject/hexinject-1.6-r1.ebuild | 36 | ||||
-rw-r--r-- | net-analyzer/hexinject/hexinject-1.6.ebuild | 34 |
4 files changed, 92 insertions, 0 deletions
diff --git a/net-analyzer/hexinject/Manifest b/net-analyzer/hexinject/Manifest index 6f1954f3ba24..6c24de43327b 100644 --- a/net-analyzer/hexinject/Manifest +++ b/net-analyzer/hexinject/Manifest @@ -1,4 +1,8 @@ AUX hexinject-1.5-fix-build-system.patch 433 SHA256 87a83bb89c834aba9f6fdf5e9c56de6473660278834ee67bfeeeabc64423f89c SHA512 db17bbb6d1ac936b5eedadd9460bacb1f59c21556fcc8c60e135920383d6990b0498a1f74182352b8061629934e728a865e2cba922abec4c7c7035bbc346e2e1 WHIRLPOOL cf691c1ff0c7c7d44abd85a2f6153fe99dce19319dcc009c9259c1a095deac79444ec47bb97b48fcf94b63fd2a6923997332f5b65327d5e8136af147d75b37dd +AUX hexinject-1.6-fix-build-system.patch 462 SHA256 cb410b131fd447f8b18b2e69bd35a0ae79df1689eb32f8ff97365eb8e250e8c5 SHA512 5cf816c71789d6c487acd757e62d44c4ca0ada32393d2de138311e61eb22c0ca5c49a9e539a7fe333b4fc8ea48ec29b49c4e14db97bc267c45aaa39f8fab04d1 WHIRLPOOL f1ee404a7e79a724495782011e9ec12f3bfa2987775b2f3d421b64b76fcbd3af9c0f3a6e39edf3da012af5ef22c25a240743b6fceb8be73cd241c330993da5b3 DIST hexinject-1.5.tar.gz 14449 SHA256 329f0686069988ac0dae4a00082b205ac9669bc8e202d4b112c600bcbc198ce9 SHA512 cd145b6f2ae9d739effca03959fb474df11d28ff015c0e5bd1e30c341f60085154795f3c8a601b7241623944b3868b6fc9a3e1530a3aa4e7aaa2b3794a5aa34a WHIRLPOOL 96e065ca7135f12db6e5949fb8fd537e0981f5b0cc1d57d40eb59003aabc87ae2459872cb11108727c0032b6c5282d385512678859da081d783bc692f8044c93 +DIST hexinject-1.6.tar.gz 16876 SHA256 06e64636923af593c742129d81b717667223bff39918f26bf56809ead9700e65 SHA512 7432122a7ca42b7ac066cc55daec2d4a656b08e0f390db1a49f626181080d07687026d04a150573e3341e4e76f87a20b6466deddcc9d022e7d66fadcb8dac1ad WHIRLPOOL 8c49413e47e142aa6b48acad8cb9b4510065a76f6615ad417a7e0734aaa481f1ee126ca9824e075fce7a614162ef22a8c46ed7d78b13b7db60876548fa71e009 EBUILD hexinject-1.5.ebuild 756 SHA256 09565bedd7830e8f0d97ffdd8a51d4fe2da4ea8909b8e99465849c801184c513 SHA512 2d17be0ac7931ac94d94924681f8f6f7ed0ed4b2072f2e5e46a5bf1277b4a67b62cdcabdad61d3db5fc7eb216258135d4ce389e4cae4a5ab476a209a62878a92 WHIRLPOOL 8fd175a1aeaca97833912647e1e8414ee268c19a7bb229a7ed8fa227346e076036e319451037b8a39b75e342e21e9f4969680dc9f2c161f8b4d6f45e2d81152e +EBUILD hexinject-1.6-r1.ebuild 697 SHA256 41e20a5b1b14c9bb9f13cd55009c1a3d5a4646a802f3e53616bb75342ebf4c28 SHA512 89ca26ae193bca85ca9fe8ca0e5075f96254887666f24d84ae2e194d941d3e50bc7f46a40bbde3c319b3cdf977080e29b5924a1d2e11dfadb601f23c9914f2a8 WHIRLPOOL 5412f1c71a395a23aad3bac62fe55832268415f19c948af8a1698708c8def0f5fedc4664115c8051ff240dfe2b0a0b248bf8da3294d21b36b418bfcea072a373 +EBUILD hexinject-1.6.ebuild 696 SHA256 029ad872cb49c6de2cd30dadb23792e253044998d08e538577a54a06f1685eb7 SHA512 0a41dbb13e7551603261a7c40ce956779a62a1bb6e35fa35530d957f3872fb223cd961cf6e1734fcd7bc6ce9c91b81e799b18699e1ac5c8d82eb42c55beb91f5 WHIRLPOOL e3ca179cb32794d7a760cdb5896f4bea4e1dd73d6d50d1cebcd0c2c4b0b98785177e00902dc1e540c96c73d0fb62319342a8efb2155522f9c583a708060e617f MISC metadata.xml 1004 SHA256 e507c67a149b536ccfaaaaf3bbbcf5f2afb75e19fa2a3a641dfa400ded2ff182 SHA512 e9e01a46cc45ab6625e4d444d857a31340b93879c24cb7e2a1d420e644b376f484ad4076bc36302ab536bf88a9ffd7c1850115d3c2433181b82c948e84077ccd WHIRLPOOL 891d1d137c3481c9bb69cf843fed93fe0167b328cbd5e95bbbe115bb8802ec9923a896b3d0b1296838bbc563d584c66f95e7b1c4f8ff3c41d72d5499f853546c 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 000000000000..fbe91199bbfa --- /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 000000000000..e36c1803461e --- /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 +} diff --git a/net-analyzer/hexinject/hexinject-1.6.ebuild b/net-analyzer/hexinject/hexinject-1.6.ebuild new file mode 100644 index 000000000000..5d8011ced352 --- /dev/null +++ b/net-analyzer/hexinject/hexinject-1.6.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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}" + +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 +} |