diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2020-03-17 05:03:11 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2020-03-17 05:03:11 +0300 |
commit | 5204d77a9aba7c529ff327dd240dd84897f71b04 (patch) | |
tree | ddd25a87bb9119d2b0f8e7b86cfd5f912a6268c4 | |
parent | 8e4baa8b34a1019b2a9628eb18a3109d4aec33ea (diff) |
added ntop
-rw-r--r-- | packages/net-analyzer/ntopng/ntopng-scm.exheres-0 | 7 | ||||
-rw-r--r-- | packages/net-analyzer/ntopng/ntopng.exlib | 37 |
2 files changed, 44 insertions, 0 deletions
diff --git a/packages/net-analyzer/ntopng/ntopng-scm.exheres-0 b/packages/net-analyzer/ntopng/ntopng-scm.exheres-0 new file mode 100644 index 0000000..9a64f12 --- /dev/null +++ b/packages/net-analyzer/ntopng/ntopng-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 ntopng + +PLATFORMS="~amd64 ~x86" + diff --git a/packages/net-analyzer/ntopng/ntopng.exlib b/packages/net-analyzer/ntopng/ntopng.exlib new file mode 100644 index 0000000..354cd3c --- /dev/null +++ b/packages/net-analyzer/ntopng/ntopng.exlib @@ -0,0 +1,37 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2020 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require github [ user=ntop ] +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ] + +export_exlib_phases src_prepare + +SCM_BRANCH="dev" + +SUMMARY="ntopng is a web-based network traffic monitoring application." +SLOT="0" +LICENCES="GPL-3" +MYOPTIONS="" +DEPENDENCIES=" + build+run: + dev-db/redis + net-analyzer/rrdtool + net-libs/libmaxminddb + net-libs/ndpi + net-libs/zeromq + virtual/mysql +" + +ntopng_src_prepare() { + default + #required to generate configure.ac + #TODO: better solution + edo ./autogen.sh + edo sed "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORK}"/configure.ac + edo sed "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORK}"/tools/json2tlv/Makefile.in + edo sed "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORK}"/Makefile.in + edo sed "s/ gcc/$(exhost --target)-cc/g" -i "${WORK}"/third-party/lua-5.3.5/src/Makefile + edo sed "s/ar rcu/${AR} rcu/g" -i "${WORK}"/third-party/lua-5.3.5/src/Makefile + edo sed "s/= ranlib/= $(exhost --target)-ranlib/g" -i "${WORK}"/third-party/lua-5.3.5/src/Makefile + autotools_src_prepare +} |