Index: head/net/ntopng/Makefile =================================================================== --- head/net/ntopng/Makefile (revision 507172) +++ head/net/ntopng/Makefile (revision 507173) @@ -1,61 +1,62 @@ # Created by: Muhammad Moinur Rahman <5u623l20@gmail.com> # $FreeBSD$ PORTNAME= ntopng PORTVERSION= 3.8.d20190619 +PORTREVISION= 1 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 \ libmaxminddb.so:net/libmaxminddb BUILD_DEPENDS= bash:shells/bash USES= autoreconf compiler:c++11-lang cpe gmake libtool localbase \ mysql pathfix pkgconfig shebangfix sqlite ssl SUB_FILES= ntopng-geoip2update.sh pkg-deinstall SHEBANG_FILES= httpdocs/misc/ntopng-add-user.sh \ httpdocs/misc/ntopng-utils-manage-config.in GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-ndpi-includes=${LOCALBASE}/include/ndpi USERS= ntopng GROUPS= ntopng PLIST_SUB= NTOPNGUSER="${USERS}" NTOPNGROUP="${GROUPS}" USE_GITHUB= yes GH_ACCOUNT= ntop GH_TAGNAME= ae2231f CPE_VENDOR= ntop OPTIONS_DEFINE= NLS OPTIONS_SUB= yes 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 ${MKDIR} ${STAGEDIR}/var/db/ntopng ${INSTALL_SCRIPT} ${WRKDIR}/ntopng-geoip2update.sh ${STAGEDIR}${PREFIX}/bin .include Index: head/net/ntopng/files/ntopng.in =================================================================== --- head/net/ntopng/files/ntopng.in (revision 507172) +++ head/net/ntopng/files/ntopng.in (revision 507173) @@ -1,47 +1,47 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: ntopng -# REQUIRE: LOGIN netif +# REQUIRE: LOGIN netif mysql # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable ntopng: # # ntopng_enable (bool): Set it to "YES" to enable ntopng # Default is "NO". # ntopng_flags (flags): Set extra flags to ntopng # Empty by default. # ntopng_pidfile (path): Path to the pidfile # Default /var/run/ntopng/ntopng.pid # . /etc/rc.subr name=ntopng desc="Monitors network traffic in realtime" rcvar=ntopng_enable load_rc_config $name : ${ntopng_enable:=NO} : ${ntopng_pidfile:=/var/run/ntopng/ntopng.pid} httpdocs_path=%%DATADIR%%/httpdocs scripts_path=%%DATADIR%%/scripts callbacks_path=%%DATADIR%%/scripts/callbacks user_path=%%PREFIX%%/etc/ntopng-users.conf start_precmd=ntopng_precmd command=%%PREFIX%%/bin/ntopng command_args="-U ntopng -G ${ntopng_pidfile} -1 ${httpdocs_path} -2 ${scripts_path} -3 ${callbacks_path} -e" ntopng_precmd() { local rundir=${ntopng_pidfile%/*} if [ ! -d $rundir ] ; then install -d -m 0755 -o ntopng -g ntopng $rundir fi } run_rc_command "$1"