libpfring-7.8.0.ebuild

This commit is contained in:
Anton Bolshakov 2021-04-25 14:49:21 +08:00
parent 8351c3a392
commit e1cabd05d6
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
7 changed files with 12 additions and 60 deletions

View file

@ -1,2 +1,2 @@
DIST masscan-1.0.4.tar.gz 343513 BLAKE2B e50789c8a2246c4109990e93c9c53cf68b2b555955f675e1a9acd4074c2b85773aba58f3644db1f98a88c4cff85cff5a9035f2fbc56978103458dc34e6dc353a SHA512 eb82d8ad4d6a5c77cf79197e18470a68f7c361f0785180d631e9625578e90af6ffdaa45b728349da5a1cb945a8f902541b8f708be8a4075737ccb06e948d6e2b
DIST masscan-1.0.5.tar.gz 353901 BLAKE2B 83145955b42f660788fdd7687b0a88ad84d6f31a4f99fc1fe4691f266f3c3492882334d9f0b4acf3c31d33950daedda56b6623cd3ba6ef9a27914613f09d485b SHA512 55d58234994ebea10bcb3f45a24cdb51b020350faa116aee3a48861a119f66c339d1f533c978f52e37ccf5266be6fd2802765f13461d94eb28ec8d18c68e2f88
DIST masscan-1.3.2.tar.gz 463449 BLAKE2B 5509027c00871b2242e419ab7cf3f775d7ee46e1882a27c52447ca442432712d742c686acbf4daa7307b791da06effa23b8790fc0561a42a4e8ed4c2f0be7713 SHA512 b0709f6f937a0e86c6913407c3bc60187074395ffff7a7a2bb54b23824d72982510e44fb1b1e7dcba85c4ad25ab1a623597661db43d9046165ba865cd9bd5b27

View file

@ -1,11 +0,0 @@
--- a/src/string_s.h
+++ b/src/string_s.h
@@ -77,7 +77,7 @@
typedef int errno_t;
errno_t fopen_s(FILE **fp, const char *filename, const char *mode);
-#elif defined(__GNUC__) && (__GNUC__ == 4)
+#elif defined(__GNUC__)
#include <inttypes.h>
/* GCC 4 */
# define sprintf_s snprintf

View file

@ -1,12 +1,13 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2021 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"
LICENSE="AGPL-3"
@ -16,7 +17,7 @@ IUSE="pf_ring"
RDEPEND="net-libs/libpcap
pf_ring? ( sys-kernel/pf_ring-kmod )"
src_prepare(){
src_prepare() {
default
sed -i \
@ -24,6 +25,7 @@ src_prepare(){
-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
@ -36,11 +38,9 @@ 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
}
pkg_postinst() {

View file

@ -1,3 +1,2 @@
DIST PF_RING-7.0.0.tar.gz 10240232 BLAKE2B 7b2eb51f9322df1bf72bcba35e092e9e256651d0ea5ca7be13e9a5769661c3e92df8dd7deb7a381a24696c530fabdcc3fed962354d9362b6ceba5a1d24a0b472 SHA512 715844c4d18680228e1f722f624ebb6c35c756d4bbd5df4641047420ad9d8912cb3977c237a832cc37ce51cb857c9237939efb89d26163ea39f9a7710adbe6da
DIST PF_RING-7.2.0.tar.gz 18882409 BLAKE2B 23a4c36ab1f70db039939998f4353463adc1879fe7b61b896e7788c30e459e28d8ac659dbb012cc43a19d4f3219e9adf895024cb695418ce8dc2021e8b1000ec SHA512 96134e97b46e993ca5e01441c578d8e0da66d26cc6ca02477791fb5f38023d01625583233cd78131b058dbc7d3b74fc4b833659c5618830e2d235a1a078bf1b6
DIST PF_RING-7.4.0.tar.gz 19298354 BLAKE2B b5849223ed2b84c64acd0663bdefde9bcd1dd6d6e85bc0cee10d693ff6faa18b1b74a42db73fc710fba45f8d65105e1b99d3a2380c02139024a128276405b6a2 SHA512 45d8c995389dcdc606471fbde511e2f2483364295dfe1ab4f01af1ce711934838c06ee9cbc74e903d94a95109f92f0e624199b209ff0cbd966585b2db73916aa
DIST PF_RING-7.8.0.tar.gz 22334630 BLAKE2B f5bbb94213bcd946cddff3cb0474da4c241a8bbaa882c39bd0d53709bc32c78df2babb0f61e4737a2391c1bb9b336c814afb99712b4c5f32d3f303723e3f2bbe SHA512 a45b9b42ef48eaa381c8bb2b00f3c87f67d776255f433941417cabe45266dc7ac90a45b5a0d69162d7a075952009f5a44920804076952a998b358e3fea82b8d0

View file

@ -1,36 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit multilib eutils
MY_P="PF_RING-${PV}"
DESCRIPTION="A new type of network socket that improves packet capture speed."
HOMEPAGE="http://www.ntop.org/products/pf_ring/"
SRC_URI="https://github.com/ntop/PF_RING/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
IUSE=""
S="${WORKDIR}/${MY_P}/userland/lib"
#S="${WORKDIR}/${MY_P}"
src_prepare(){
sed -i "s|${INSTDIR}/lib|${INSTDIR}/$(get_libdir)|" Makefile.in || die
sed -i "s|lib64nbpf.a|libnbpf.a|" Makefile.in || die
eapply_user
}
src_compile(){
emake -j1
}
src_install(){
emake DESTDIR="${D}" install
dosym libpfring.so usr/$(get_libdir)/libpfring.so.1
}

View file

@ -1,4 +1,4 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@ -26,9 +26,9 @@ src_prepare(){
eapply_user
}
src_compile(){
emake -j1
}
#src_compile(){
# emake -j1
#}
src_install(){
emake DESTDIR="${D}" install