1 |
commit: 83cb183ee4125b819271e5a4ece912f441b0b3d0 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 28 00:56:19 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 28 01:03:54 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83cb183e |
7 |
|
8 |
net-libs/nDPI: Version 3.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-libs/nDPI/Manifest | 1 + |
14 |
net-libs/nDPI/nDPI-3.0.ebuild | 46 +++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 47 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/nDPI/Manifest b/net-libs/nDPI/Manifest |
18 |
index bcb2f018990..6c17a0b1641 100644 |
19 |
--- a/net-libs/nDPI/Manifest |
20 |
+++ b/net-libs/nDPI/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST nDPI-2.0.tar.gz 19280901 BLAKE2B d08bd807b556394b708713061ef23025be296b3c847c90680170b2d39f23f05fac35a1ced091925383f57c0d0be6e5f0c7ad239168c76caa7b9a46847413e860 SHA512 c8dac1990ff49fc04ee321068d8fc722528c6be0543af2d0bda77936eff12713c36d5abd3fd2472121f2e322e99ba8e57facca813f7b012240c61e16c1a6cd44 |
23 |
DIST nDPI-2.2.tar.gz 19937173 BLAKE2B a00287d5901487f7e56d7aeab7dcb357c0eb6348be5621952d9f357058419b6378d41b42d0d6e9ea6e20680cfda96fa501f2ebaae5c83dd4e62f756d1089a160 SHA512 ee1e0a1cc87a3971408877bd5d3154f6bd5d4ddcd2437c8e03e5d8a5093da2b1cbfefad1e28e77145af4286eecbd341ef90f94aa5c7f36a98e3625e9948e96d6 |
24 |
DIST nDPI-2.8.tar.gz 19754226 BLAKE2B c112ae2d9fff872f116a23bbffe7bca39a5c876346b4e41ef503934301f39413517fce169a37a766ffae16b0cb1ee81d96573ffa1ee2519d295dfb32cc1f115e SHA512 aae757047810bbc32700ecf7ac2e5df4b93528021a50da4a0b83865a5248dfca8b1643c75aa7eeb6eac4f155638d45666db487318b2be9adb2f3412cb8ec8497 |
25 |
+DIST nDPI-3.0.tar.gz 26902734 BLAKE2B 79380ce5138b8ba99169ce3a2afeaa2a2bcded9bc7834d32af6911e9cee60395613a390d2d5d0530b9ff9263ad707e78f49d35098428c66a9c95a98aee2d8df8 SHA512 74c4a41201e809b476f4c23b99c2391b7bcbc76507a11261d216caf2350db8fd4ae3dac69d1d2179b12217901da1e04676aeca05d3a8e63d1a162469b33ab4c0 |
26 |
|
27 |
diff --git a/net-libs/nDPI/nDPI-3.0.ebuild b/net-libs/nDPI/nDPI-3.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..029830ddf18 |
30 |
--- /dev/null |
31 |
+++ b/net-libs/nDPI/nDPI-3.0.ebuild |
32 |
@@ -0,0 +1,46 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+inherit autotools multilib |
38 |
+ |
39 |
+DESCRIPTION="Open Source Deep Packet Inspection Software Toolkit" |
40 |
+HOMEPAGE="https://www.ntop.org/" |
41 |
+SRC_URI="https://github.com/ntop/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="static-libs" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ dev-libs/json-c:= |
50 |
+ net-libs/libpcap |
51 |
+" |
52 |
+RDEPEND=" |
53 |
+ ${DEPEND} |
54 |
+" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ sed \ |
58 |
+ -e "s/@NDPI_MAJOR@/$(ver_cut 1)/g" \ |
59 |
+ -e "s/@NDPI_MINOR@/$(ver_cut 2)/g" \ |
60 |
+ -e "s/@NDPI_PATCH@/$(ver_cut 3)/g" \ |
61 |
+ -e "s/@NDPI_VERSION_SHORT@/${PV}/g" \ |
62 |
+ < "${S}/configure.seed" \ |
63 |
+ > "${S}/configure.ac" || die |
64 |
+ |
65 |
+ sed -i \ |
66 |
+ -e "s%^libdir\s*=\s*\${prefix}/lib\s*$%libdir = \${prefix}/$(get_libdir)%" \ |
67 |
+ src/lib/Makefile.in || die |
68 |
+ |
69 |
+ default |
70 |
+ eautoreconf |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ default |
75 |
+ if ! use static-libs; then |
76 |
+ rm "${D}"/usr/$(get_libdir)/lib${PN,,}.a || die |
77 |
+ fi |
78 |
+} |