1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools multilib
7 DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit"
8 HOMEPAGE="https://www.ntop.org/"
9 SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
25 # Taken from autogen.sh (bug #704074):
27 -e "s/@NDPI_MAJOR@/$(ver_cut 1)/g" \
28 -e "s/@NDPI_MINOR@/$(ver_cut 2)/g" \
29 -e "s/@NDPI_PATCH@/$(ver_cut 3)/g" \
30 -e "s/@NDPI_VERSION_SHORT@/${PV}/g" \
31 < "${S}/configure.seed" \
32 > "${S}/configure.ac" || die
35 -e "s%^libdir\s*=\s*\${prefix}/lib\s*$%libdir = \${prefix}/$(get_libdir)%" \
36 src/lib/Makefile.in || die
41 # Taken from autogen.sh (bug #704074):
43 -e "s/#define PACKAGE/#define NDPI_PACKAGE/g" \
44 -e "s/#define VERSION/#define NDPI_VERSION/g" \
50 if ! use static-libs; then
51 rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die