summaryrefslogtreecommitdiff
path: root/packages/net-libs/ndpi/ndpi.exlib
blob: 177e68a2961b05b97f4db05849f857cd8c60bfb6 (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
# 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
}