net-analyzer/masscan - 1.3.2 (pentoo)

Search

Install

Install this version:

emerge -a =net-analyzer/masscan-1.3.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-analyzer/masscan-1.3.2

Or alternatively:

emerge --autounmask-write -a =net-analyzer/masscan-1.3.2

Package Information

Description:
Mass IP port scanner
Homepage:
https://github.com/robertdavidgraham/masscan
License:
AGPL-3

Ebuild Details

Version EAPI Keywords Slot
1.3.2 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Mass IP port scanner"
HOMEPAGE="https://github.com/robertdavidgraham/masscan"
SRC_URI="https://github.com/robertdavidgraham/masscan/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="AGPL-3"
SLOT="0"
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 '/^CFLAGS =/{s,=,+=,;s,-g -ggdb,,;s,-O3,,;s,-O2,,;}' \
		-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
}

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
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-analyzer/masscan | euse -E <flag> -p net-analyzer/masscan | euse -D <flag> -p net-analyzer/masscan

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

net-libs/libpcap
	pf_ring? ( sys-kernel/pf_ring-kmod )

Manifest for 1.3.2

Type File Size Source URLs
DIST masscan-1.3.2.gh.tar.gz 463449 bytes https://github.com/robertdavidgraham/masscan/archive/1.3.2.tar.gz