mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 05:11:05 +02:00
masscan: v1.0.4 bump
This commit is contained in:
parent
f0fef3ded6
commit
a01708344d
2 changed files with 54 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
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
|
||||
|
|
|
|||
53
net-analyzer/masscan/masscan-1.0.4-r1.ebuild
Normal file
53
net-analyzer/masscan/masscan-1.0.4-r1.ebuild
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# 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"
|
||||
IUSE="pf_ring"
|
||||
|
||||
RDEPEND="net-libs/libpcap
|
||||
pf_ring? ( sys-kernel/pf_ring-kmod )"
|
||||
|
||||
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
|
||||
dodoc *.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use pf_ring; then
|
||||
ewarn "You have compiled without pf_ring flag being enabled"
|
||||
ewarn "To get beyond 2 million packets/second, you need an Intel 10-gbps"
|
||||
ewarn "Ethernet adapter and a special driver known as PF_RING DNA"
|
||||
ewarn "from http://www.ntop.org/products/pf_ring/ "
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue