commit:     5bdfa68a1ee35bb9632c92b0595282cb4dd9049b
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 13 21:26:49 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Mar 13 21:26:49 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bdfa68a

net-analyzer/masscan: Version 1.0.5.

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-analyzer/masscan/Manifest             |  1 +
 net-analyzer/masscan/masscan-1.0.5.ebuild | 41 +++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/net-analyzer/masscan/Manifest b/net-analyzer/masscan/Manifest
index ed7949ba074..36558711b2b 100644
--- a/net-analyzer/masscan/Manifest
+++ b/net-analyzer/masscan/Manifest
@@ -1,2 +1,3 @@
 DIST masscan-1.0.3.tar.gz 333393 BLAKE2B 
b75cab481b5f87694553f373b8fde82ae4c5e001b98816e41138bda7b682edfbd04bfe419f77021784611982cc41b10694ad412d1c784d41b4ba7a0f0c95031b
 SHA512 
e64b11deaaaa71d5be95e8f2b1fdfa679f5c8e8074c97f9d60d57659f33aec0699673c5aab72824f62d1a8b0e8c9188dcf296dd078bc6c2dbdad95c35c3a5f40
 DIST masscan-1.0.4.tar.gz 343513 BLAKE2B 
e50789c8a2246c4109990e93c9c53cf68b2b555955f675e1a9acd4074c2b85773aba58f3644db1f98a88c4cff85cff5a9035f2fbc56978103458dc34e6dc353a
 SHA512 
eb82d8ad4d6a5c77cf79197e18470a68f7c361f0785180d631e9625578e90af6ffdaa45b728349da5a1cb945a8f902541b8f708be8a4075737ccb06e948d6e2b
+DIST masscan-1.0.5.tar.gz 353901 BLAKE2B 
83145955b42f660788fdd7687b0a88ad84d6f31a4f99fc1fe4691f266f3c3492882334d9f0b4acf3c31d33950daedda56b6623cd3ba6ef9a27914613f09d485b
 SHA512 
55d58234994ebea10bcb3f45a24cdb51b020350faa116aee3a48861a119f66c339d1f533c978f52e37ccf5266be6fd2802765f13461d94eb28ec8d18c68e2f88

diff --git a/net-analyzer/masscan/masscan-1.0.5.ebuild 
b/net-analyzer/masscan/masscan-1.0.5.ebuild
new file mode 100644
index 00000000000..b8f0e1839d5
--- /dev/null
+++ b/net-analyzer/masscan/masscan-1.0.5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2018 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,,;}' \
+               -e '/^CC =/d' \
+               Makefile || die
+
+       tc-export CC
+}
+
+src_install() {
+       dobin bin/masscan
+
+       insinto /etc/masscan
+       doins data/exclude.conf
+       doins "${FILESDIR}"/masscan.conf
+
+       dodoc doc/bot.html *.md
+
+       doman doc/masscan.8
+}

Reply via email to