# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eutils multilib MY_P="PF_RING-${PV}" DESCRIPTION="Library for 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 -> ${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="redis zeromq" DEPEND=" =sys-kernel/pf_ring-kmod-${PV}* redis? ( dev-db/redis ) zeromq? ( net-libs/zeromq ) " RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_P}/userland/lib" DOCS="../../ChangeLog ../../README.* ../../doc/README.*.md" PATCHES=( "${FILESDIR}/${PN}.patch" ) src_configure() { econf \ $(usex redis) \ $(usex zeromq zmq) \ --libdir=/usr/$(get_libdir) } src_install() { default # Symlink required for net-analyzer/suricata and probably others dosym libpfring.so /usr/$(get_libdir)/libpfring.so.1 }