masscan: pkgcheck fixes

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-04-03 21:29:49 -04:00
parent 3553557495
commit 0d665dc23b
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 17 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# Copyright 1999-2021 Gentoo Authors # Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=8
inherit toolchain-funcs inherit toolchain-funcs
@ -9,8 +9,8 @@ DESCRIPTION="Mass IP port scanner"
HOMEPAGE="https://github.com/robertdavidgraham/masscan" HOMEPAGE="https://github.com/robertdavidgraham/masscan"
SRC_URI="https://github.com/robertdavidgraham/masscan/archive/${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/robertdavidgraham/masscan/archive/${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
LICENSE="AGPL-3" LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
IUSE="pf_ring" IUSE="pf_ring"
@ -23,7 +23,6 @@ src_prepare() {
sed -i \ sed -i \
-e '/$(CC)/s!$(CFLAGS)!$(LDFLAGS) $(CFLAGS)!g' \ -e '/$(CC)/s!$(CFLAGS)!$(LDFLAGS) $(CFLAGS)!g' \
-e '/^GITVER :=/s!= .(.*!=!g' \ -e '/^GITVER :=/s!= .(.*!=!g' \
-e '/^SYS/s|gcc|$(CC)|g' \
-e '/^CFLAGS =/{s,=,+=,;s,-g -ggdb,,;s,-O3,,;}' \ -e '/^CFLAGS =/{s,=,+=,;s,-g -ggdb,,;s,-O3,,;}' \
-e '/^CC =/d' \ -e '/^CC =/d' \
Makefile || die Makefile || die

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>noone@pentoo.org</email>
<name>No one</name>
</maintainer>
<use>
<flag name="pf_ring">Enable pf_ring support for faster scanning</flag>
</use>
<upstream>
<remote-id type="github">robertdavidgraham/masscan</remote-id>
</upstream>
</pkgmetadata>