diff options
author | Jeroen Roovers <jer@gentoo.org> | 2019-12-28 11:01:59 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2019-12-28 11:14:09 +0100 |
commit | f39ed0fc9504dcbf3a5c7baf9b9e3725a3d2e03d (patch) | |
tree | 89105962a7e026cc1d9b97a6ec587eed70a5a337 /net-libs/nDPI/nDPI-3.0-r1.ebuild | |
parent | app-portage/portage-utils-0.83: version bump with bugfixes (diff) | |
download | gentoo-f39ed0fc9504dcbf3a5c7baf9b9e3725a3d2e03d.tar.gz gentoo-f39ed0fc9504dcbf3a5c7baf9b9e3725a3d2e03d.tar.bz2 gentoo-f39ed0fc9504dcbf3a5c7baf9b9e3725a3d2e03d.zip |
net-libs/nDPI: Set sub-SLOT for >3.0
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-libs/nDPI/nDPI-3.0-r1.ebuild')
-rw-r--r-- | net-libs/nDPI/nDPI-3.0-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net-libs/nDPI/nDPI-3.0-r1.ebuild b/net-libs/nDPI/nDPI-3.0-r1.ebuild new file mode 100644 index 000000000000..42766ed5abf6 --- /dev/null +++ b/net-libs/nDPI/nDPI-3.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools multilib + +DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit" +HOMEPAGE="https://www.ntop.org/" +SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0/$(ver_cut 1)" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +DEPEND=" + dev-libs/json-c:= + net-libs/libpcap +" +RDEPEND=" + ${DEPEND} +" + +src_prepare() { + sed \ + -e "s/@NDPI_MAJOR@/$(ver_cut 1)/g" \ + -e "s/@NDPI_MINOR@/$(ver_cut 2)/g" \ + -e "s/@NDPI_PATCH@/$(ver_cut 3)/g" \ + -e "s/@NDPI_VERSION_SHORT@/${PV}/g" \ + < "${S}/configure.seed" \ + > "${S}/configure.ac" || die + + sed -i \ + -e "s%^libdir\s*=\s*\${prefix}/lib\s*$%libdir = \${prefix}/$(get_libdir)%" \ + src/lib/Makefile.in || die + + default + eautoreconf +} + +src_install() { + default + if ! use static-libs; then + rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die + fi +} |