# Distributed under the terms of the GNU General Public License v2 # Copyright 2020 Gluzskiy Alexandr 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 user/ntopng group/ntopng " 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 }