[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/

2022-03-20 Thread Sam James
commit: faabae38e4abd60e28073844bbd1e7885270dbdc
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar 20 18:41:00 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar 20 18:43:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faabae38

net-analyzer/hunt: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James  gentoo.org>

 net-analyzer/hunt/hunt-1.5_p6_p1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild 
b/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
index 3790bdef6529..b31b315b3758 100644
--- a/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
+++ b/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -31,7 +31,7 @@ src_configure() {
 src_compile() {
local target
for target in . tpserv; do
-   emake CC=$(tc-getCC) LDFLAGS="${CFLAGS} ${LDFLAGS}" -C 
"${target}"
+   emake CC="$(tc-getCC)" LDFLAGS="${CFLAGS} ${LDFLAGS}" -C 
"${target}"
done
 }
 



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/, net-analyzer/hunt/files/

2021-05-04 Thread Sam James
commit: b6346d471e739bc4def7dc86a2e25e15de45e49a
Author: Jakov Smolic  sartura  hr>
AuthorDate: Thu Apr 29 23:49:38 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May  4 22:17:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6346d47

net-analyzer/hunt: Respect CFLAGS

Closes: https://bugs.gentoo.org/724864
Signed-off-by: Jakov Smolic  sartura.hr>
Signed-off-by: Sam James  gentoo.org>

 net-analyzer/hunt/files/hunt-1.5-gentoo.patch |  5 -
 net-analyzer/hunt/hunt-1.5_p6_p1.ebuild   | 17 +++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/net-analyzer/hunt/files/hunt-1.5-gentoo.patch 
b/net-analyzer/hunt/files/hunt-1.5-gentoo.patch
index e0bcccae0aa..b5b49944f01 100644
--- a/net-analyzer/hunt/files/hunt-1.5-gentoo.patch
+++ b/net-analyzer/hunt/files/hunt-1.5-gentoo.patch
@@ -8,7 +8,10 @@
  
 --- a/tpserv/Makefile
 +++ b/tpserv/Makefile
-@@ -3,7 +3,7 @@
+@@ -1,9 +1,8 @@
+-CFLAGS=-Wall -O2 -g
+-
++CFLAGS += -Wall
  all: tpserv
  
  tpserv: tpserv.o

diff --git a/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild 
b/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
index ec3c6e7a044..3790bdef652 100644
--- a/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
+++ b/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
@@ -1,31 +1,28 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+
 inherit flag-o-matic toolchain-funcs
 
-DESCRIPTION="tool for checking well known weaknesses in the TCP/IP protocol"
+DESCRIPTION="Tool for checking well known weaknesses in the TCP/IP protocol"
 HOMEPAGE="http://lin.fsid.cvut.cz/~kra/index.html";
 SRC_URI="
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
-   mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-$(ver_cut 
4).$(ver_cut 6).diff.gz
-"
+   mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-$(ver_cut 
4).$(ver_cut 6).diff.gz"
+S="${WORKDIR}/${P/_p*}"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc x86"
+
 PATCHES=(
+   "${WORKDIR}"/${PN}_1.5-6.1.diff
"${FILESDIR}"/${P/_p*}-exit.patch
"${FILESDIR}"/${P/_p*}-gentoo.patch
"${FILESDIR}"/${P/_p*}-log2.patch
"${FILESDIR}"/${P/_p*}-tpserv-log.patch
 )
-S=${WORKDIR}/${P/_p*}
-
-src_prepare() {
-   eapply "${WORKDIR}"/${PN}_${PV/_p*}-$(ver_cut 4).$(ver_cut 6).diff
-   default
-}
 
 src_configure() {
append-cppflags -DSYNC_FAST



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/files/

2020-12-12 Thread David Seifert
commit: 7660b80e62dcf009808e23a35d0847087e17e200
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Dec 12 13:34:51 2020 +
Commit: David Seifert  gentoo  org>
CommitDate: Sat Dec 12 13:34:51 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7660b80e

net-analyzer/hunt: remove unused patch

Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: David Seifert  gentoo.org>

 net-analyzer/hunt/files/hunt-1.5-flags.patch | 21 -
 1 file changed, 21 deletions(-)

diff --git a/net-analyzer/hunt/files/hunt-1.5-flags.patch 
b/net-analyzer/hunt/files/hunt-1.5-flags.patch
deleted file mode 100644
index 2ffcd823847..000
--- a/net-analyzer/hunt/files/hunt-1.5-flags.patch
+++ /dev/null
@@ -1,21 +0,0 @@
 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



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/

2020-11-26 Thread Aaron Bauman
commit: b23eb422e0a17104c7c25e227e39df5a32833116
Author: Aaron Bauman  gentoo  org>
AuthorDate: Fri Nov 27 00:52:34 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Fri Nov 27 00:52:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b23eb422

net-analyzer/hunt: drop old

Signed-off-by: Aaron Bauman  gentoo.org>

 net-analyzer/hunt/Manifest   |  1 -
 net-analyzer/hunt/hunt-1.5-r1.ebuild | 33 -
 net-analyzer/hunt/hunt-1.5-r3.ebuild | 32 
 3 files changed, 66 deletions(-)

diff --git a/net-analyzer/hunt/Manifest b/net-analyzer/hunt/Manifest
index 9d632564e41..d2eafa941c9 100644
--- a/net-analyzer/hunt/Manifest
+++ b/net-analyzer/hunt/Manifest
@@ -1,3 +1,2 @@
-DIST hunt-1.5.tgz 99241 BLAKE2B 
df9092cdf6de0016ae5fe8d360a712eccd3c0f71bead3c93142ba2c3c421031cb5e6ff8c3b4782856286fd41a61e40a6453b48f240365ba88f6805bb3bbdd909
 SHA512 
b016f7ae0ac7568b4a5006b7c5e6f3e80df71a67d94a1e62afc46fb0f10cb661df7e3bff1f0229836a2247ef368dc2681ad955821e97cb6a91fcfe489b871a61
 DIST hunt_1.5-6.1.diff.gz 4556 BLAKE2B 
74c27722ae61494ca922b013cc691c0e835d7cdcc01399aaf7fe9bc7da4532954c4da2023fc92e3a4f664bb2b5ab8ef22ff1c04694dc1ab7c205125ccea1ff84
 SHA512 
45ff3f977a32202d8ab9b7daa76a0ebb507d0b73d635c0f3649cf3b2bcb9fdc3094c9631d696dfaf27371bc5fb5eb62dbdc258795979755c7713a45357938a05
 DIST hunt_1.5.orig.tar.gz 99241 BLAKE2B 
df9092cdf6de0016ae5fe8d360a712eccd3c0f71bead3c93142ba2c3c421031cb5e6ff8c3b4782856286fd41a61e40a6453b48f240365ba88f6805bb3bbdd909
 SHA512 
b016f7ae0ac7568b4a5006b7c5e6f3e80df71a67d94a1e62afc46fb0f10cb661df7e3bff1f0229836a2247ef368dc2681ad955821e97cb6a91fcfe489b871a61

diff --git a/net-analyzer/hunt/hunt-1.5-r1.ebuild 
b/net-analyzer/hunt/hunt-1.5-r1.ebuild
deleted file mode 100644
index 299342dba80..000
--- a/net-analyzer/hunt/hunt-1.5-r1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# 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
deleted file mode 100644
index 7e824be3caa..000
--- a/net-analyzer/hunt/hunt-1.5-r3.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# 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
-}



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/

2020-11-26 Thread Thomas Deutschmann
commit: 004c280e8803299e99e7a96697f827918bff2071
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Fri Nov 27 00:05:24 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Fri Nov 27 00:05:24 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=004c280e

net-analyzer/hunt: x86 stable (bug #756985)

Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann  gentoo.org>

 net-analyzer/hunt/hunt-1.5_p6_p1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild 
b/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
index bdcca2f3eaf..ec3c6e7a044 100644
--- a/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
+++ b/net-analyzer/hunt/hunt-1.5_p6_p1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
 PATCHES=(
"${FILESDIR}"/${P/_p*}-exit.patch
"${FILESDIR}"/${P/_p*}-gentoo.patch



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/files/, net-analyzer/hunt/

2020-01-23 Thread Jeroen Roovers
commit: 500fb42c0284932b3d08e04a69ecfb78ca1be673
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Thu Jan 23 08:32:57 2020 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Thu Jan 23 09:18:11 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=500fb42c

net-analyzer/hunt: Version 1.5_p6_p1

- Apply Debian patch 6.1
- Build and install tpserv/transproxy
- EAPI=7

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers  gentoo.org>

 net-analyzer/hunt/Manifest|   2 +
 net-analyzer/hunt/files/hunt-1.5-gentoo.patch |  19 
 net-analyzer/hunt/files/hunt-1.5-tpserv-log.patch | 100 ++
 net-analyzer/hunt/hunt-1.5_p6_p1.ebuild   |  46 ++
 4 files changed, 167 insertions(+)

diff --git a/net-analyzer/hunt/Manifest b/net-analyzer/hunt/Manifest
index 0909b26c00b..9d632564e41 100644
--- a/net-analyzer/hunt/Manifest
+++ b/net-analyzer/hunt/Manifest
@@ -1 +1,3 @@
 DIST hunt-1.5.tgz 99241 BLAKE2B 
df9092cdf6de0016ae5fe8d360a712eccd3c0f71bead3c93142ba2c3c421031cb5e6ff8c3b4782856286fd41a61e40a6453b48f240365ba88f6805bb3bbdd909
 SHA512 
b016f7ae0ac7568b4a5006b7c5e6f3e80df71a67d94a1e62afc46fb0f10cb661df7e3bff1f0229836a2247ef368dc2681ad955821e97cb6a91fcfe489b871a61
+DIST hunt_1.5-6.1.diff.gz 4556 BLAKE2B 
74c27722ae61494ca922b013cc691c0e835d7cdcc01399aaf7fe9bc7da4532954c4da2023fc92e3a4f664bb2b5ab8ef22ff1c04694dc1ab7c205125ccea1ff84
 SHA512 
45ff3f977a32202d8ab9b7daa76a0ebb507d0b73d635c0f3649cf3b2bcb9fdc3094c9631d696dfaf27371bc5fb5eb62dbdc258795979755c7713a45357938a05
+DIST hunt_1.5.orig.tar.gz 99241 BLAKE2B 
df9092cdf6de0016ae5fe8d360a712eccd3c0f71bead3c93142ba2c3c421031cb5e6ff8c3b4782856286fd41a61e40a6453b48f240365ba88f6805bb3bbdd909
 SHA512 
b016f7ae0ac7568b4a5006b7c5e6f3e80df71a67d94a1e62afc46fb0f10cb661df7e3bff1f0229836a2247ef368dc2681ad955821e97cb6a91fcfe489b871a61

diff --git a/net-analyzer/hunt/files/hunt-1.5-gentoo.patch 
b/net-analyzer/hunt/files/hunt-1.5-gentoo.patch
new file mode 100644
index 000..e0bcccae0aa
--- /dev/null
+++ b/net-analyzer/hunt/files/hunt-1.5-gentoo.patch
@@ -0,0 +1,19 @@
+--- a/Makefile
 b/Makefile
+@@ -1,4 +1,4 @@
+-CFLAGS=-Wall -O2 -g -D_REENTRANT -std=gnu89
++CFLAGS += -Wall -D_REENTRANT -std=gnu89
+ #CFLAGS+=-DSYNC_FAST
+ #CFLAGS+=-D_WITH_LINUX_KERNEL_HDR
+ 
+--- a/tpserv/Makefile
 b/tpserv/Makefile
+@@ -3,7 +3,7 @@
+ all: tpserv
+ 
+ tpserv: tpserv.o
+-  $(CC) -o $@ $< $(LIBS)
++  $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
+ 
+ clean:
+   rm -f *.o

diff --git a/net-analyzer/hunt/files/hunt-1.5-tpserv-log.patch 
b/net-analyzer/hunt/files/hunt-1.5-tpserv-log.patch
new file mode 100644
index 000..2e50dfe04ec
--- /dev/null
+++ b/net-analyzer/hunt/files/hunt-1.5-tpserv-log.patch
@@ -0,0 +1,100 @@
+--- a/tpserv/tpserv.c
 b/tpserv/tpserv.c
+@@ -55,7 +55,7 @@
+   return v1 > v2 ? v1 : v2;
+ }
+ 
+-static void log(int level, int pid, char *format, ...)
++static void hunt_log(int level, int pid, char *format, ...)
+ {
+   char buf[BUFSIZE];
+   va_list va;
+@@ -93,21 +93,21 @@
+ {
+   if (verbose <= 1)
+   return;
+-  log(LOG_DEBUG, pid, "read  %4d bytes %s", len, 
print_connection(from_addr, to_addr));
++  hunt_log(LOG_DEBUG, pid, "read  %4d bytes %s", len, 
print_connection(from_addr, to_addr));
+ }
+ 
+ static void print_write(int pid, struct sockaddr_in *from_addr, struct 
sockaddr_in *to_addr, int len)
+ {
+   if (verbose <= 1)
+   return;
+-  log(LOG_DEBUG, pid, "write %4d bytes %s", len, 
print_connection(from_addr, to_addr));
++  hunt_log(LOG_DEBUG, pid, "write %4d bytes %s", len, 
print_connection(from_addr, to_addr));
+ }
+ 
+ static void print_connect(int pid, struct sockaddr_in *from_addr, struct 
sockaddr_in *to_addr)
+ {
+   if (!verbose)
+   return;
+-  log(LOG_DEBUG, pid, "connect  %s", print_connection(from_addr, 
to_addr));
++  hunt_log(LOG_DEBUG, pid, "connect  %s", 
print_connection(from_addr, to_addr));
+ 
+ }
+ 
+@@ -115,7 +115,7 @@
+ {
+   if (!verbose)
+   return;
+-  log(LOG_DEBUG, pid, "disconnect   %s", print_connection(from_addr, 
to_addr));
++  hunt_log(LOG_DEBUG, pid, "disconnect   %s", 
print_connection(from_addr, to_addr));
+ }
+ 
+ #if 0
+@@ -154,17 +154,17 @@
+   int fd_remote;
+   
+   if ((fd_remote = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
+-  log(LOG_ERR, pid, "socket failed %d:%s\n", errno, 
strerror(errno));
++  hunt_log(LOG_ERR, pid, "socket failed %d:%s\n", errno, 
strerror(errno));
+   exit(1);
+   }
+   to_addr_len = sizeof(*to_addr);
+   if (connect(fd_remote, to_addr, to_addr_len) < 0) {
+-  log(LOG_ERR, pid, "failed to connect to remote addr\n");
++  hunt_log(LOG_ERR, pid, "failed to connect to remote addr\n");
+   exit(1);
+   }
+   local_addr_len = size

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/

2016-01-13 Thread Jeroen Roovers
commit: d1ca2a9734f90ebf65b51db30771f59c7a108fe1
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Thu Jan 14 07:31:32 2016 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Thu Jan 14 07:32:10 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1ca2a97

net-analyzer/hunt: Old.

Package-Manager: portage-2.2.26

 net-analyzer/hunt/hunt-1.5-r2.ebuild | 32 
 1 file changed, 32 deletions(-)

diff --git a/net-analyzer/hunt/hunt-1.5-r2.ebuild 
b/net-analyzer/hunt/hunt-1.5-r2.ebuild
deleted file mode 100644
index f9ce55c..000
--- a/net-analyzer/hunt/hunt-1.5-r2.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils 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() {
-   emake CC=$(tc-getCC)
-}
-
-src_install() {
-   dobin hunt
-   doman man/hunt.1
-   dodoc CHANGES README* TODO tpsetup/transproxy
-}



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/hunt/

2016-01-13 Thread Jeroen Roovers
commit: 25a7fb64d0dfa3fc0196dc05d16daf0eff6d9a9a
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Thu Jan 14 07:30:23 2016 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Thu Jan 14 07:32:04 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25a7fb64

net-analyzer/hunt: Fix building with gcc-5 (bug #517774 by Willard Dawson).

Package-Manager: portage-2.2.26

 net-analyzer/hunt/hunt-1.5-r3.ebuild | 33 +
 1 file changed, 33 insertions(+)

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 000..61c0067
--- /dev/null
+++ b/net-analyzer/hunt/hunt-1.5-r3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}