summaryrefslogtreecommitdiff
path: root/net-analyzer/hunt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/hunt
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/hunt')
-rw-r--r--net-analyzer/hunt/Manifest9
-rw-r--r--net-analyzer/hunt/files/hunt-1.5-exit.patch10
-rw-r--r--net-analyzer/hunt/files/hunt-1.5-flags.patch21
-rw-r--r--net-analyzer/hunt/files/hunt-1.5-log2.patch22
-rw-r--r--net-analyzer/hunt/hunt-1.5-r1.ebuild33
-rw-r--r--net-analyzer/hunt/hunt-1.5-r3.ebuild32
-rw-r--r--net-analyzer/hunt/metadata.xml8
7 files changed, 135 insertions, 0 deletions
diff --git a/net-analyzer/hunt/Manifest b/net-analyzer/hunt/Manifest
new file mode 100644
index 000000000000..f962e93fd8b2
--- /dev/null
+++ b/net-analyzer/hunt/Manifest
@@ -0,0 +1,9 @@
+AUX hunt-1.5-exit.patch 208 SHA256 fcc6e917aebb727c60fd072b6cbd0fc1e73842044a19d24468402d9b1840a0af SHA512 f268d172d1280bf1f05cb61da7295c74f0c60ba2c648058491cda7e89702f740648f9fc90c764867d6bb490a24ab318db95de594c1111b7c2b4d099dd113bae8 WHIRLPOOL b0023948fbcaa74c8c9d52a917e3613cf1d6f3c95f9021d3e26d02c7b8752a9a66dfe043946bbc9617813b9f1e0bdf2f8b8d20ea7a33ddb0219c121dccc913d7
+AUX hunt-1.5-flags.patch 507 SHA256 59c62e8b5a9a37b5f1304ecd6d50d583ee9ef65e8f61eedda8faefe0b6a5dec4 SHA512 2d354317438a387220089635aeda449a922746ce0b38b14b57bc0daf30f5216691a7c5098d569143e2b70bd7e8d7156b2a42423bca13c5e77c635f64d1804546 WHIRLPOOL 9144a5b86e4bf5e433fcca70aff6c93b9ca59d0fd4fb5344c7fad900b95a42a9e77227314bcab6a7b1f97243d75fbd6f227655b235296009eaf9d1422efd11e6
+AUX hunt-1.5-log2.patch 387 SHA256 8735c57e9224a20ee540b71fc709608a2614957565c3ecdd9de0c67c6c398c64 SHA512 efb910e3149a97195323ddf35ab1a3e4ed075d7dcc0a1972e727b0107266b183bc09f7bd12f8dcf2735be1f6f76a5201caa1b7d1b50bce5464ef8f70a00f4bff WHIRLPOOL 2103e209ed0f81da71b06893af04bd39c883e82accb9ce1a1b83abe3018bc6b680248b4b0aa440bff84446175ed484bcdfc0eed84485705af5407229ea9d0a1b
+DIST hunt-1.5.tgz 99241 SHA256 a8a1978f3bd05ca3f01c168c13c9a09b1e1e9038c14fdfe43694c07fe3a0e328 SHA512 b016f7ae0ac7568b4a5006b7c5e6f3e80df71a67d94a1e62afc46fb0f10cb661df7e3bff1f0229836a2247ef368dc2681ad955821e97cb6a91fcfe489b871a61 WHIRLPOOL 01b354797c83828899d5b957428f04e731e9edf12d601615d89bf70b55447cef9f65c4c9e5a5d6f7fcb5edb5fd49ad6942a88a5988866003b8e5a83045001b9c
+EBUILD hunt-1.5-r1.ebuild 673 SHA256 8da729dc454aaad5c5fd63a721bf40543768a0eda1d30063f6ca74e7660d06c2 SHA512 a9efe3c17f62afd6b7cec5f468f60494da5bce16dc2ef3a2af2cc93c27245ea5f67f1456ef3e3a76c21a894a65611b2640151c437aed8103cbb6c6a6f0e7f757 WHIRLPOOL 788ab59ec9b266def02b20e36b9a2b30f72c55b5690111919573aea7c524bb408bf140287eec5df425272feda795281f17d63ab96d0f9c32c25d70e2ace84528
+EBUILD hunt-1.5-r3.ebuild 689 SHA256 6439453e1d9b901fc682562e84a349e04a5ad12d5662ed09593b5ed9b3403fcc SHA512 4e459769df7a4c42d1b2a269b01ca5ce51a47666ce73a4a983e62b27df284b9950e568a8b95c2c3ecd274ea3021499b37f8ba3673cc7a0134ce17a995c98a9f6 WHIRLPOOL 302f27e9203dce66167c6d19e0281a0f22b84d4b9274f8fa5e93adffc1f65e218aa55818be6835cb65b93b9a172a54c0e0c05b23b54d65c24eab1c146caa80f5
+MISC ChangeLog 2863 SHA256 7db0b3261c1ecc2e4570b61b2d08ca0f6df1db960a9b03a55957777bbdfd9cd7 SHA512 1a33439964e0d813c3b0b2455c47e630cef3d5ae8520df72d3977ae0ad0785125caaf99733e1d15f6de4d20da66e4ca46e7e892c21c61275aca5887f7aae332f WHIRLPOOL 99c675cc67ef19263f2a9131361032b6b4829e556128c98232439fe8df692550368ee2ae5e376563d6f6864e289020d3fba916f728713e3b01db27d5f3ec3c8c
+MISC ChangeLog-2015 1764 SHA256 f84441b386ad60699e01a2743dbced43c309eea7b5dfb9bbeb413374f1e479c2 SHA512 722148da0c4572f8910391bfe3e6f90203a79ce311e659e584f361d1c0aef5b80fd50170e060f9223493b162ea4ca1ef5dac4d8de936b8391fcabd2f0ee2128c WHIRLPOOL 8b56984c8e692e7d72cea1f2c9f58c2c705538a340f11a5dd5c7accb8c7e1d6e16f20943d3e67cebdab490865854c13241d331fc3e228fe07425984413dde375
+MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee
diff --git a/net-analyzer/hunt/files/hunt-1.5-exit.patch b/net-analyzer/hunt/files/hunt-1.5-exit.patch
new file mode 100644
index 000000000000..226093e1795a
--- /dev/null
+++ b/net-analyzer/hunt/files/hunt-1.5-exit.patch
@@ -0,0 +1,10 @@
+--- a/timer.c
++++ b/timer.c
+@@ -8,6 +8,7 @@
+ */
+ #include <stdio.h>
+ #include <unistd.h>
++#include <stdlib.h> /* exit() */
+ #include "hunt.h"
+
+ struct list timejob_list = LIST_INIT(struct timejob, j_next);
diff --git a/net-analyzer/hunt/files/hunt-1.5-flags.patch b/net-analyzer/hunt/files/hunt-1.5-flags.patch
new file mode 100644
index 000000000000..2ffcd823847e
--- /dev/null
+++ b/net-analyzer/hunt/files/hunt-1.5-flags.patch
@@ -0,0 +1,21 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,8 +1,7 @@
+-CFLAGS=-Wall -O2 -g -D_REENTRANT
++CFLAGS += -I. -Wall -D_REENTRANT
+ #CFLAGS+=-DSYNC_FAST
+ #CFLAGS+=-D_WITH_LINUX_KERNEL_HDR
+
+-LDFLAGS=
+ #LDFLAGS=-static
+
+ OBJ=hunt.o main.o c/list.o c/hash.o c/array.o util.o net.o \
+@@ -11,7 +10,7 @@
+ addpolicy.o options.o resolv.o timer.o pktrelay.o
+
+ hunt: $(OBJ)
+- $(CC) ${LDFLAGS} -o $@ $^ -lpthread
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lpthread
+
+ hunt_static: $(OBJ)
+ $(CC) ${LDFLAGS} -static -o $@ $^ -lpthread
diff --git a/net-analyzer/hunt/files/hunt-1.5-log2.patch b/net-analyzer/hunt/files/hunt-1.5-log2.patch
new file mode 100644
index 000000000000..fc36eaea1f3b
--- /dev/null
+++ b/net-analyzer/hunt/files/hunt-1.5-log2.patch
@@ -0,0 +1,22 @@
+--- a/hunt.h
++++ b/hunt.h
+@@ -401,7 +401,7 @@
+ void set_tty_color_bg(enum TTY_COLOR fg, enum TTY_COLOR bg);
+
+ int is_power2(unsigned int i);
+-int log2(unsigned int i);
++int _hunt_log2(unsigned int i);
+ int count_mask(unsigned int mask);
+
+
+--- a/util.c
++++ b/util.c
+@@ -70,7 +70,7 @@
+ return i ? 0 : 1;
+ }
+
+-int log2(unsigned int i)
++int _hunt_log2(unsigned int i)
+ {
+ int l = 0;
+
diff --git a/net-analyzer/hunt/hunt-1.5-r1.ebuild b/net-analyzer/hunt/hunt-1.5-r1.ebuild
new file mode 100644
index 000000000000..299342dba80e
--- /dev/null
+++ b/net-analyzer/hunt/hunt-1.5-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="tool for checking well known weaknesses in the TCP/IP protocol"
+HOMEPAGE="http://lin.fsid.cvut.cz/~kra/index.html"
+SRC_URI="http://lin.fsid.cvut.cz/~kra/hunt/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+
+src_prepare() {
+ sed -i Makefile \
+ -e 's:^CFLAGS=:CFLAGS += -I. :g' \
+ -e '/^LDFLAGS=/d' \
+ -e 's:${LDFLAGS}:$(LDFLAGS):g' \
+ -e 's:-O2 -g::' \
+ || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ dobin hunt
+ doman man/hunt.1
+ dodoc CHANGES README* TODO tpsetup/transproxy
+}
diff --git a/net-analyzer/hunt/hunt-1.5-r3.ebuild b/net-analyzer/hunt/hunt-1.5-r3.ebuild
new file mode 100644
index 000000000000..7e824be3caa3
--- /dev/null
+++ b/net-analyzer/hunt/hunt-1.5-r3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="tool for checking well known weaknesses in the TCP/IP protocol"
+HOMEPAGE="http://lin.fsid.cvut.cz/~kra/index.html"
+SRC_URI="http://lin.fsid.cvut.cz/~kra/hunt/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-exit.patch \
+ "${FILESDIR}"/${P}-flags.patch \
+ "${FILESDIR}"/${P}-log2.patch
+}
+
+src_compile() {
+ append-cflags -std=gnu89
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ dobin hunt
+ doman man/hunt.1
+ dodoc CHANGES README* TODO tpsetup/transproxy
+}
diff --git a/net-analyzer/hunt/metadata.xml b/net-analyzer/hunt/metadata.xml
new file mode 100644
index 000000000000..74c2baebb4ec
--- /dev/null
+++ b/net-analyzer/hunt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+</pkgmetadata>