diff options
Diffstat (limited to 'packages/net-analyzer')
-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 +} |