summaryrefslogtreecommitdiff
path: root/net-analyzer/masscan
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/masscan
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/masscan')
-rw-r--r--net-analyzer/masscan/Manifest9
-rw-r--r--net-analyzer/masscan/files/masscan-1.0.3-gcc5.patch11
-rw-r--r--net-analyzer/masscan/files/masscan.conf7
-rw-r--r--net-analyzer/masscan/masscan-1.0.3-r2.ebuild45
-rw-r--r--net-analyzer/masscan/masscan-1.0.4.ebuild41
-rw-r--r--net-analyzer/masscan/metadata.xml26
6 files changed, 139 insertions, 0 deletions
diff --git a/net-analyzer/masscan/Manifest b/net-analyzer/masscan/Manifest
new file mode 100644
index 000000000000..c3ebd387cb54
--- /dev/null
+++ b/net-analyzer/masscan/Manifest
@@ -0,0 +1,9 @@
+AUX masscan-1.0.3-gcc5.patch 293 SHA256 6705e610199996644c5e6567f2918746377e153ca882b72ea31f350febc2b6f2 SHA512 78718499c8548dcf88fa7f57c38ddf5fe5c9b5720a5141b4dd7e1b24d2f33e4b640c7ff3d3a8ba38590431c5e4fc3a7f16825b2e2fb05d6836d84d68f431d6ba WHIRLPOOL e9ee3fee18b06e3e0794761cc39460d39d425c51ffd12cbf1ab897c7524afc794648a9c621a39bf59a2ea386a67e4ba145d467a3598beb749432d4b114c79df9
+AUX masscan.conf 174 SHA256 dcbfb005306c945d38ebde125735c2b13cc6f574aa2dfe566a2ac099345ae2b0 SHA512 dee80bdeac6755a7edd24a12b25fc071e45680a8849eeb60193ad1089262989aeb7b44f75b0de34e6b07dac1ceecb759f1776e27bec2bfcd13b077baad0ebb77 WHIRLPOOL 1de52ffcd3ec9af1955af37632baa53b41ce599d371cc39f0a4f15ed985cbf75eee187be268c8ba58271ebb79028dff2212f4ddb77bc868a16da6cbdc6d6059e
+DIST masscan-1.0.3.tar.gz 333393 SHA256 331edd529df1904bcbcfb43029ced7e2dafe1744841e74cd9fc9f440b8301085 SHA512 e64b11deaaaa71d5be95e8f2b1fdfa679f5c8e8074c97f9d60d57659f33aec0699673c5aab72824f62d1a8b0e8c9188dcf296dd078bc6c2dbdad95c35c3a5f40 WHIRLPOOL fa1c4e931ef0d6ca534b0ccff790e86eef3a058f46b39fff0c94326fa41ddee9007030240a83171171ef10ead862721844330599ff271bbc08ca9f168ff6a3d0
+DIST masscan-1.0.4.tar.gz 343513 SHA256 51de345f677f46595fc3bd747bfb61bc9ff130adcbec48f3401f8057c8702af9 SHA512 eb82d8ad4d6a5c77cf79197e18470a68f7c361f0785180d631e9625578e90af6ffdaa45b728349da5a1cb945a8f902541b8f708be8a4075737ccb06e948d6e2b WHIRLPOOL e90bfe019e1c047b3f3c8e8c7e51ac2998c8b4eed817c9757dcf1d1fdffa9f1f298d4944e6cad67346159c8ba1ad886895f2b74184a8aa7818881e4a15c28a72
+EBUILD masscan-1.0.3-r2.ebuild 981 SHA256 b4db8345c044ff5585345f469c39cebaa10285d788ad6ee0183e0419840bdeb9 SHA512 73af493d6e0f90b62383c3a3931b761b90d185a650bcfedf1565c077996b238c9247ee6eee24d5b26f4cb5a674ce937b1ecafeea7e5e7b4221c838d79e7cdfb7 WHIRLPOOL 148230c8666d9ab63db8bd1ce9f0c5423807502bd8539315f55f885d07190828ed1b6f2237bef47cbfee862a89f568650cb926a94607c4ea11ae765647c02d17
+EBUILD masscan-1.0.4.ebuild 802 SHA256 bd866147baf2047861216b975e70f04327b1ab4e46c7c49842e022ef3b25e242 SHA512 009a6801721979fef9d79101bd9f3badd492c386d4abbef0b2b7a861de23685ceecb885feb0c1ba1cfc06ee9a53e86c293c893445164b72d600734f7c0a834d6 WHIRLPOOL 4f4be5682d95ee22a37c91050b506636a0bec709c38db29638e55c37a8f26f64fdfeeb92333b89e89d7fe0b3f340b0f06f6dd30d2ff85750eceab271236d860a
+MISC ChangeLog 2696 SHA256 2fe448458275c0fe304f6d7afb62bd3a630d655f8d6b058682dab1fe86411b7c SHA512 e9e2a33a4f7aec1e2a91d8a8693943ec638ede9003ee8f8778304a055b9f1285765c86039278ef3999ef32c4874f907c719c129e8adda5a80ad2a8fba502a2e6 WHIRLPOOL d579980ddb71321082ac3823e944417cc633af60f6edb3283b7960ecc0491890509338abd5a1d54062a4d4487ff2d8cc7d4c2aec297d4271b635db1c7d05c9c6
+MISC ChangeLog-2015 710 SHA256 505faf9588494c29f28ed91e4abebc23f08b228643d4b9c88893e342669bce87 SHA512 b58db508c6295eda52cd697de40b8b080d343b5adb32a01bb4d799876163cd32703674c2080c002b9bb1ccff71358526875797a92de208e1e73c86e1e77a1278 WHIRLPOOL 9e4702c176f1cafb6532cb3aeef88fe46b60581de583480274d472409e6e809f19c16daeff9cc2d1cfeeeb4edf7df94e3c4ea50dad6ede4b3ae65ee3128a66bd
+MISC metadata.xml 982 SHA256 57f14d3e67aabf7648de4b1196b84a8e4f29b3e8b4ce66b4afb20ba4a2d4087c SHA512 02a138f9c887f08d6bea4707fcc717d1dc8feccd3ed9c2e030973768bc42fdb41e67a987485398f61f723cae75e3db7ff3144c5e8a0a572da8b52f96badd0480 WHIRLPOOL 2d0e534e96b35bee5265e806c0949ae8d3ed5dbf861c4fad37201ca0479f6bc917594dc509271e3de1718cde67b03e599bb24833027cfe5659da79d2074aa6b1
diff --git a/net-analyzer/masscan/files/masscan-1.0.3-gcc5.patch b/net-analyzer/masscan/files/masscan-1.0.3-gcc5.patch
new file mode 100644
index 000000000000..6bf92fd25d14
--- /dev/null
+++ b/net-analyzer/masscan/files/masscan-1.0.3-gcc5.patch
@@ -0,0 +1,11 @@
+--- a/src/string_s.h
++++ b/src/string_s.h
+@@ -77,7 +77,7 @@
+ typedef int errno_t;
+ errno_t fopen_s(FILE **fp, const char *filename, const char *mode);
+
+-#elif defined(__GNUC__) && (__GNUC__ == 4)
++#elif defined(__GNUC__)
+ #include <inttypes.h>
+ /* GCC 4 */
+ # define sprintf_s snprintf
diff --git a/net-analyzer/masscan/files/masscan.conf b/net-analyzer/masscan/files/masscan.conf
new file mode 100644
index 000000000000..86a88868dffe
--- /dev/null
+++ b/net-analyzer/masscan/files/masscan.conf
@@ -0,0 +1,7 @@
+rate = 100000.00
+output-format = xml
+output-status = all
+output-filename = scan.xml
+ports = 0-65535
+#range = 0.0.0.0-255.255.255.255
+excludefile = /etc/masscan/exclude.conf
diff --git a/net-analyzer/masscan/masscan-1.0.3-r2.ebuild b/net-analyzer/masscan/masscan-1.0.3-r2.ebuild
new file mode 100644
index 000000000000..894968ab55bd
--- /dev/null
+++ b/net-analyzer/masscan/masscan-1.0.3-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Mass IP port scanner"
+HOMEPAGE="https://github.com/robertdavidgraham/masscan"
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="AGPL-3"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="net-libs/libpcap"
+DEPEND="${RDEPEND}"
+
+src_prepare(){
+ epatch "${FILESDIR}"/${PN}-1.0.3-gcc5.patch
+
+ sed -i \
+ -e '/$(CC)/s!$(CFLAGS)!$(LDFLAGS) $(CFLAGS)!g' \
+ -e '/^GITVER :=/s!= .(.*!=!g' \
+ -e '/^SYS/s|gcc|$(CC)|g' \
+ -e '/$(CC)/s!-DGIT=\"$(GITVER)\"!!g' \
+ -e '/^CFLAGS =/{s,=,+=,;s,-g -ggdb,,;s,-O3,,;}' \
+ Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake CC="$(tc-getCC)" DESTDIR="${D}" PREFIX=/usr install
+
+ insinto /etc/masscan
+ doins data/exclude.conf
+ doins "${FILESDIR}"/masscan.conf
+
+ mv doc/bot.{hml,html} || die
+ dohtml doc/bot.html
+ doman doc/masscan.8
+ dodoc *.md
+}
diff --git a/net-analyzer/masscan/masscan-1.0.4.ebuild b/net-analyzer/masscan/masscan-1.0.4.ebuild
new file mode 100644
index 000000000000..66006b6476c1
--- /dev/null
+++ b/net-analyzer/masscan/masscan-1.0.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Mass IP port scanner"
+HOMEPAGE="https://github.com/robertdavidgraham/masscan"
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="AGPL-3"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="net-libs/libpcap"
+
+src_prepare(){
+ default
+
+ sed -i \
+ -e '/$(CC)/s!$(CFLAGS)!$(LDFLAGS) $(CFLAGS)!g' \
+ -e '/^GITVER :=/s!= .(.*!=!g' \
+ -e '/^SYS/s|gcc|$(CC)|g' \
+ -e '/^CFLAGS =/{s,=,+=,;s,-g -ggdb,,;s,-O3,,;}' \
+ Makefile || die
+
+ tc-export CC
+}
+
+src_install() {
+ dobin bin/masscan
+
+ insinto /etc/masscan
+ doins data/exclude.conf
+ doins "${FILESDIR}"/masscan.conf
+
+ mv doc/bot.{hml,html} || die
+ dodoc doc/bot.html *.md
+
+ doman doc/masscan.8
+}
diff --git a/net-analyzer/masscan/metadata.xml b/net-analyzer/masscan/metadata.xml
new file mode 100644
index 000000000000..ab58c05fdec9
--- /dev/null
+++ b/net-analyzer/masscan/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+ <longdescription lang="en">
+ This is the fastest Internet port scanner. It can scan the
+ entire Internet in under 6 minutes, transmitting 10 million
+ packets per second.
+
+ It produces results similar to nmap, the most famous port
+ scanner. Internally, it operates more like scanrand,
+ unicornscan, and ZMap, using asynchronous transmission.
+ The major difference is that it's faster than these other
+ scanners. In addition, it's more flexible, allowing
+ arbitrary address ranges and port ranges.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">robertdavidgraham/masscan</remote-id>
+ </upstream>
+</pkgmetadata>