1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/net/ntopng/Makefile
Guido Falsi 41241f7c87 - Update net/ndpi to 2.2.2 snapshot
- Update net/ntopng to 3.4 snapshot
- Change versioning scheme to conform to porter's handbook best
  practices
- Bump PORTEPOCH to avoid version number going backwards
- Remove patches included upstream
- Remove unneeded USE_LDCONFIG in ntopng
2018-06-04 17:01:36 +00:00

63 lines
1.4 KiB
Makefile

# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
# $FreeBSD$
PORTNAME= ntopng
PORTVERSION= 3.4.d20180604
PORTEPOCH= 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 \
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
USERS= ntopng
GROUPS= ntopng
USE_GITHUB= yes
GH_ACCOUNT= ntop
GH_TAGNAME= 468d1eb
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
@${REINPLACE_CMD} -e 's|^\(export PREFIX=\).*|\1 ${PREFIX}|' \
${WRKSRC}/third-party/LuaJIT-2.1.0-beta3/Makefile
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>