blob: 236e3327ac06b3b7afab6c5abf4c2667a8ba98a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# 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
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
}
|