summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2020-03-17 01:40:30 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2020-03-17 01:40:30 +0300
commit8e4baa8b34a1019b2a9628eb18a3109d4aec33ea (patch)
tree1c19942a020aa8acd408aa780bbe2ed40e4c1241
parentff9b54d48eb969e820977efa0bca866c553ad321 (diff)
ndpi: added
-rw-r--r--packages/net-libs/ndpi/ndpi-scm.exheres-07
-rw-r--r--packages/net-libs/ndpi/ndpi.exlib29
2 files changed, 36 insertions, 0 deletions
diff --git a/packages/net-libs/ndpi/ndpi-scm.exheres-0 b/packages/net-libs/ndpi/ndpi-scm.exheres-0
new file mode 100644
index 0000000..d326a33
--- /dev/null
+++ b/packages/net-libs/ndpi/ndpi-scm.exheres-0
@@ -0,0 +1,7 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2020 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require ndpi
+
+PLATFORMS="~amd64 ~x86"
+
diff --git a/packages/net-libs/ndpi/ndpi.exlib b/packages/net-libs/ndpi/ndpi.exlib
new file mode 100644
index 0000000..177e68a
--- /dev/null
+++ b/packages/net-libs/ndpi/ndpi.exlib
@@ -0,0 +1,29 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2020 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require github [ user=ntop project=nDPI ]
+require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ]
+
+export_exlib_phases src_prepare
+
+SCM_BRANCH="dev"
+
+SUMMARY="nDPI is an open source LGPLv3 library for deep-packet inspection."
+SLOT="0"
+LICENCES="LGPL-3"
+MYOPTIONS=""
+DEPENDENCIES="
+ build+run:
+ dev-libs/libpcap
+"
+
+ndpi_src_prepare() {
+ default
+ #required to generate configure.ac
+ #TODO: better solution
+ edo ./autogen.sh
+ edo sed "s/ar rc/${AR} rc/g" -i "${WORK}"/src/lib/Makefile.in
+ edo sed "s/ar rsv/${AR} rsv/g" -i "${WORK}"/example/Makefile.in
+ edo sed "s/= ranlib/= ${RANLIB}/g" -i "${WORK}"/src/lib/Makefile.in
+ autotools_src_prepare
+}