From 69415993e734ccaa16ecd2c92cbe0ee94df326e4 Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Sat, 13 Jul 2019 12:50:33 +0300 Subject: [PATCH] masscan: minor changes (fix errors while build it) --- ...n-1.0.5.ebuild => masscan-1.0.5-r1.ebuild} | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) rename net-analyzer/masscan/{masscan-1.0.5.ebuild => masscan-1.0.5-r1.ebuild} (77%) diff --git a/net-analyzer/masscan/masscan-1.0.5.ebuild b/net-analyzer/masscan/masscan-1.0.5-r1.ebuild similarity index 77% rename from net-analyzer/masscan/masscan-1.0.5.ebuild rename to net-analyzer/masscan/masscan-1.0.5-r1.ebuild index caad70931..dc3fbc867 100644 --- a/net-analyzer/masscan/masscan-1.0.5.ebuild +++ b/net-analyzer/masscan/masscan-1.0.5-r1.ebuild @@ -1,14 +1,15 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 + inherit toolchain-funcs DESCRIPTION="Mass IP port scanner" HOMEPAGE="https://github.com/robertdavidgraham/masscan" -SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/robertdavidgraham/masscan/archive/${PV}.tar.gz -> ${P}.tar.gz" -SLOT="0" +SLOT=0 LICENSE="AGPL-3" KEYWORDS="~amd64 ~x86" IUSE="pf_ring" @@ -17,16 +18,15 @@ RDEPEND="net-libs/libpcap pf_ring? ( sys-kernel/pf_ring-kmod )" src_prepare(){ - default - - sed -i \ - -e '/$(CC)/s!$(CFLAGS)!$(LDFLAGS) $(CFLAGS)!g' \ + sed -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 + -e '/^CC = \(.*\)/d' \ + -i Makefile || die tc-export CC + default } src_install() { @@ -36,11 +36,8 @@ src_install() { 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 + dodoc *.md doc/*.md } pkg_postinst() {