blob: 8de60c40ac1e7592ad362ad0f2c3e0799f15d0b9 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $NetBSD: Makefile,v 1.25 2018/10/18 16:25:40 adam Exp $
DISTNAME= ntopng-3.6.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=ntop/}
MAINTAINER= adam@NetBSD.org
HOMEPAGE= https://www.ntop.org/
COMMENT= Network traffic probe
LICENSE= gnu-gpl-v3
DEPENDS+= redis-[0-9]*:../../databases/redis
USE_LANGUAGES= c c++11
USE_LIBTOOL= yes
USE_TOOLS+= autoconf automake bash gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ndpi-includes=${BUILDLINK_PREFIX.ndpi}/include/ndpi
RCD_SCRIPTS+= ntopng
CXXFLAGS+= -std=c++11 # va_copy()
# Portable types
CFLAGS.SunOS+= -Du_int8_t=uint8_t
CFLAGS.SunOS+= -Du_int16_t=uint16_t
CFLAGS.SunOS+= -Du_int32_t=uint32_t
CFLAGS.SunOS+= -Du_int64_t=uint64_t
LDFLAGS.SunOS+= -lresolv
REPLACE_BASH= httpdocs/misc/ntopng-add-user.sh
REPLACE_BASH+= httpdocs/misc/ntopng-utils-manage-config.in
SUBST_CLASSES+= fix-vers
SUBST_STAGE.fix-vers= pre-configure
SUBST_MESSAGE.fix-vers= Setting package version.
SUBST_FILES.fix-vers= configure.seed
SUBST_SED.fix-vers= -e 's,@VERSION@,${PKGVERSION},g'
SUBST_SED.fix-vers+= -e 's,@SHORT_VERSION@,${PKGVERSION_NOREV},g'
pre-configure:
cd ${WRKSRC} && cp configure.seed configure.ac && autoreconf -fiv
.include "../../databases/hiredis/buildlink3.mk"
.include "../../databases/rrdtool/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../geography/libmaxminddb/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../net/GeoIP/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../net/ndpi/buildlink3.mk"
.include "../../net/zeromq/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|