summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-01-08 09:50:21 +0100
committerJeroen Roovers <jer@gentoo.org>2020-01-08 09:50:51 +0100
commitda1a0855fad66cdf517dd88322585ae66121b6d1 (patch)
tree2e244bdf9856d054f5617904e52561eacec1af23 /net-analyzer/firewalk
parentnet-analyzer/ibmonitor: EAPI=7 (diff)
downloadgentoo-da1a0855fad66cdf517dd88322585ae66121b6d1.tar.gz
gentoo-da1a0855fad66cdf517dd88322585ae66121b6d1.tar.bz2
gentoo-da1a0855fad66cdf517dd88322585ae66121b6d1.zip
net-analyzer/firewalk: EAPI=7, fix usage()
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/firewalk')
-rw-r--r--net-analyzer/firewalk/files/firewalk-5.0-usage.diff22
-rw-r--r--net-analyzer/firewalk/firewalk-5.0-r2.ebuild32
2 files changed, 54 insertions, 0 deletions
diff --git a/net-analyzer/firewalk/files/firewalk-5.0-usage.diff b/net-analyzer/firewalk/files/firewalk-5.0-usage.diff
new file mode 100644
index 000000000000..dac54f558135
--- /dev/null
+++ b/net-analyzer/firewalk/files/firewalk-5.0-usage.diff
@@ -0,0 +1,22 @@
+--- a/include/firewalk.h
++++ b/include/firewalk.h
+@@ -280,7 +280,7 @@
+ /* dump usage */
+ void
+ usage(
+- u_char * /* argv[0] */
++ char * /* argv[0] */
+ );
+
+ #endif /* _FIREWALK_H */
+--- a/src/main.c
++++ b/src/main.c
+@@ -171,7 +171,7 @@
+ }
+
+ void
+-usage(u_char *argv0)
++usage(char *argv0)
+ {
+ fprintf(stderr, "Usage : %s [options] target_gateway metric\n"
+ "\t\t [-d %d - %d] destination port to use (ramping phase)\n"
diff --git a/net-analyzer/firewalk/firewalk-5.0-r2.ebuild b/net-analyzer/firewalk/firewalk-5.0-r2.ebuild
new file mode 100644
index 000000000000..40b2b60d3a86
--- /dev/null
+++ b/net-analyzer/firewalk/firewalk-5.0-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A tool for determining a firewall's rule set"
+HOMEPAGE="http://packetfactory.openwall.net/projects/firewalk/"
+SRC_URI="mirror://gentoo/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="
+ dev-libs/libdnet
+ net-libs/libnet:1.1
+ net-libs/libpcap
+"
+RDEPEND="
+ ${DEPEND}
+"
+S=${WORKDIR}/${PN^}
+DOCS=( README TODO BUGS )
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc3.4.diff
+ "${FILESDIR}"/${P}-usage.diff
+)
+
+src_install() {
+ default
+ doman man/firewalk.8
+}