aboutsummaryrefslogtreecommitdiffstats
path: root/net/ntopng/Makefile
blob: f88098028cd8d7a438a8e445c94d3aaaf8f72fc9 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
# $FreeBSD$

PORTNAME=   ntopng
PORTVERSION=    3.0.2017.10.03
PORTREVISION=   1
CATEGORIES= net

MAINTAINER= madpilot@FreeBSD.org
COMMENT=    Network monitoring tool with command line and web interfaces

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    librrd.so:databases/rrdtool \
        libluajit-5.1.so:lang/luajit \
        libzmq.so:net/libzmq4 \
        libcurl.so:ftp/curl \
        libndpi.so:net/ndpi \
        libjson-c.so:devel/json-c \
        libsodium.so:security/libsodium
BUILD_DEPENDS=  bash:shells/bash

USES=       autoreconf cpe gmake libtool localbase mysql pathfix pkgconfig \
        shebangfix sqlite ssl
SUB_FILES=  ntopng-geoipupdate.sh pkg-deinstall
SHEBANG_FILES=  httpdocs/misc/ntopng-add-user.sh
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

USERS=      ntopng
GROUPS=     ntopng

USE_GITHUB= yes
GH_ACCOUNT= ntop
GH_TAGNAME= 499e0bf

CPE_VENDOR= ntop

OPTIONS_DEFINE=     GEOIP NLS
OPTIONS_DEFAULT=    GEOIP

OPTIONS_SUB=    yes

GEOIP_LIB_DEPENDS=  libGeoIP.so:net/GeoIP

NLS_USES=   gettext

USE_RC_SUBR=    ntopng

post-patch:
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
        ${WRKSRC}/configure.seed
    cd ${WRKSRC} && ${SH} autogen.sh

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ntopng

post-install-GEOIP-on:
    ${INSTALL_SCRIPT} ${WRKDIR}/ntopng-geoipupdate.sh ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>