net-libs/libpfring - 9.4.0 (pkalin)

Search

Install

Install this version:

emerge -a =net-libs/libpfring-9.4.0

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

autounmask =net-libs/libpfring-9.4.0

Or alternatively:

emerge --autounmask-write -a =net-libs/libpfring-9.4.0

Package Information

Description:
PF_RING: High-speed packet processing framework (libpfring)
Homepage:
https://www.ntop.org/products/packet-capture/pf_ring/
License:
LGPL-2.1

Ebuild Details

Version EAPI Keywords Slot
9.4.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2018-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="PF_RING"	# upstream calls it this way
MY_P="${MY_PN}-${PV}"

DESCRIPTION="PF_RING: High-speed packet processing framework (libpfring)"
HOMEPAGE="https://www.ntop.org/products/packet-capture/pf_ring/"
SRC_URI="https://github.com/ntop/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}/userland"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND="sys-devel/bison
	app-alternatives/lex"
RDEPEND="${DEPEND}
	~sys-kernel/pf_ring-kmod-${PV}"

src_prepare(){
	cd lib/
	# install shared libraries only
	sed -i "s|install: install-static install-shared|install: install-shared|" Makefile.in || die

	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() {
	cd lib/
	emake DESTDIR="${D}" install
	dosym libpfring.so usr/$(get_libdir)/libpfring.so.1
	# FIXME: Do we need to install nbpftest
}

Dependencies

RDEPEND

	~sys-kernel/pf_ring-kmod-9.4.0

BDEPEND

sys-devel/bison
	app-alternatives/lex

Manifest for 9.4.0

Type File Size Source URLs
DIST PF_RING-9.4.0.tar.gz 17458774 bytes https://github.com/ntop/PF_RING/archive/refs/tags/9.4.0.tar.gz