pentoo-overlay/net-libs/libpfring/libpfring-7.2.0.ebuild
2018-10-30 18:37:44 +08:00

36 lines
790 B
Bash

# 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
}