aboutsummaryrefslogtreecommitdiff
path: root/net/ntopng
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2018-06-04 17:01:36 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2018-06-04 17:01:36 +0000
commit41241f7c8770af6fa161a722422265f96a580f0d (patch)
tree92d2d893bf2f1ef4db129348f9b290bcc0ce9532 /net/ntopng
parentb1b32f2c806eeaff3aff4d78417b417150a6b40b (diff)
Notes
Diffstat (limited to 'net/ntopng')
-rw-r--r--net/ntopng/Makefile6
-rw-r--r--net/ntopng/distinfo6
-rw-r--r--net/ntopng/files/patch-autogen.sh8
-rw-r--r--net/ntopng/files/patch-configure.seed50
-rw-r--r--net/ntopng/files/patch-src_DivertInterface.cpp11
-rw-r--r--net/ntopng/files/patch-src_Utils.cpp11
-rw-r--r--net/ntopng/files/patch-third-party_mongoose_mongoose.c29
-rw-r--r--net/ntopng/files/patch-third-party_snmp_net.c11
-rw-r--r--net/ntopng/pkg-plist22
9 files changed, 48 insertions, 106 deletions
diff --git a/net/ntopng/Makefile b/net/ntopng/Makefile
index edb8116fc99a..85af3e666e75 100644
--- a/net/ntopng/Makefile
+++ b/net/ntopng/Makefile
@@ -2,7 +2,8 @@
# $FreeBSD$
PORTNAME= ntopng
-PORTVERSION= 3.2.2018.03.13
+PORTVERSION= 3.4.d20180604
+PORTEPOCH= 1
CATEGORIES= net
MAINTAINER= madpilot@FreeBSD.org
@@ -24,14 +25,13 @@ USES= autoreconf cpe gmake libtool localbase mysql pathfix pkgconfig \
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= a7d7655
+GH_TAGNAME= 468d1eb
CPE_VENDOR= ntop
diff --git a/net/ntopng/distinfo b/net/ntopng/distinfo
index 651aad72107b..784d5029620f 100644
--- a/net/ntopng/distinfo
+++ b/net/ntopng/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1521103085
-SHA256 (ntop-ntopng-3.2.2018.03.13-a7d7655_GH0.tar.gz) = 36d9fbd9135a7519d7eef85c6b9780387721c9253b9f29f97b4bcfb78e26a7f7
-SIZE (ntop-ntopng-3.2.2018.03.13-a7d7655_GH0.tar.gz) = 24195839
+TIMESTAMP = 1528128970
+SHA256 (ntop-ntopng-3.4.d20180604-468d1eb_GH0.tar.gz) = b021d7d97c2215997559bc164efca801ea889f00247ea3a16f3decf6bb2587d2
+SIZE (ntop-ntopng-3.4.d20180604-468d1eb_GH0.tar.gz) = 30715124
diff --git a/net/ntopng/files/patch-autogen.sh b/net/ntopng/files/patch-autogen.sh
index 7b5c1f2715eb..ab223d5aff67 100644
--- a/net/ntopng/files/patch-autogen.sh
+++ b/net/ntopng/files/patch-autogen.sh
@@ -1,9 +1,9 @@
---- autogen.sh.orig 2016-05-05 13:23:53 UTC
+--- autogen.sh.orig 2018-06-04 09:56:33 UTC
+++ autogen.sh
-@@ -30,8 +30,3 @@ fi
- cat configure.seed | sed "s/@VERSION@/$VERSION/g" | sed "s/@SHORT_VERSION@/$SHORT_VERSION/g" | sed "s/@GIT_TAG@/$GIT_TAG/g" | sed "s/@GIT_DATE@/$GIT_DATE/g" | sed "s/@GIT_RELEASE@/$GIT_RELEASE/g" | sed "s/@GIT_BRANCH@/$GIT_BRANCH/g" | sed "s/@PRO_GIT_RELEASE@/$PRO_GIT_RELEASE/g" | sed "s/@PRO_GIT_DATE@/$PRO_GIT_DATE/g" > configure.ac
+@@ -38,8 +38,3 @@ cat configure.seed | sed \
+ > configure.ac
- /bin/rm -f config.h config.h.in *~ #*
+ rm -f config.h config.h.in *~ #*
-
-echo "Wait please..."
-autoreconf -if
diff --git a/net/ntopng/files/patch-configure.seed b/net/ntopng/files/patch-configure.seed
index 4311d91ce342..4fb5cd42d7cf 100644
--- a/net/ntopng/files/patch-configure.seed
+++ b/net/ntopng/files/patch-configure.seed
@@ -1,6 +1,6 @@
---- configure.seed.orig 2018-01-12 09:48:20 UTC
+--- configure.seed.orig 2018-06-04 09:56:33 UTC
+++ configure.seed
-@@ -29,26 +29,8 @@ fi
+@@ -27,33 +27,8 @@ fi
# On CentOS 6 `git rev-list HEAD --count` does not work
#
#
@@ -25,38 +25,26 @@
- LDFLAGS="${LDFLAGS} -L/opt/local/lib"
-fi
-
- if [ test -f /usr/bin/lsb_release ]; then
- CODENAME=`/usr/bin/lsb_release -c|cut -f 2`
- if [[ $CODENAME == "wheezy" ]]; then :
-@@ -64,26 +46,7 @@ GIT_BRANCH="@GIT_BRANCH@"
- PRO_GIT_RELEASE="@PRO_GIT_RELEASE@"
- PRO_GIT_DATE="@PRO_GIT_DATE@"
-
--AC_MSG_CHECKING(for nDPI)
--NDPI_HOME=./nDPI
--if test -d "$NDPI_HOME" ; then :
-- AC_MSG_RESULT(found in $NDPI_HOME)
--else
-- NDPI_HOME=../nDPI
-- if test -d "$NDPI_HOME"; then :
-- AC_MSG_RESULT(found in $NDPI_HOME)
-- else
-- NDPI_HOME=$HOME/nDPI
-- if test -d "$NDPI_HOME"; then :
-- AC_MSG_RESULT(found in $NDPI_HOME)
-- else
-- AC_MSG_RESULT(not found)
-- echo "Please do cd ..; git clone https://github.com/ntop/nDPI.git; cd nDPI; ./autogen.sh; make; cd ../ntopng"
-- echo " and try again"
-- exit
-- fi
+-if [ test -f /usr/bin/lsb_release ]; then
+- CODENAME=`/usr/bin/lsb_release -c|cut -f 2`
+- if [[ $CODENAME == "wheezy" ]]; then :
+- CPPFLAGS="${CPPFLAGS} -DOLD_NETFILTER_INTERFACE=1"
- fi
-fi
-+NDPI_HOME=%%LOCALBASE%%
+-
+ SHORT_MACHINE=`uname -m | cut -b1-3`
- if test -d "/usr/include/openssl"; then :
- AC_DEFINE_UNQUOTED(NO_SSL_DL, 1, [has openssl])
-@@ -438,18 +401,6 @@ GMAKE=`which gmake`
+ GIT_RELEASE="@GIT_RELEASE@"
+@@ -94,7 +69,7 @@ AC_ARG_WITH(ndpi-includes,
+ PKG_CHECK_MODULES([NDPI], [libndpi >= 2.0], [
+ NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"`/libndpi
+ # Use static libndpi library as building against the dynamic library fails
+- NDPI_LIB="-Wl,-Bstatic $NDPI_LIBS -Wl,-Bdynamic"
++ NDPI_LIB="$NDPI_LIBS"
+ NDPI_LIB_DEP=
+ ], [
+ AC_MSG_CHECKING(for nDPI source)
+@@ -505,18 +480,6 @@ GMAKE=`which gmake`
if test x$GMAKE = x
then
GMAKE="make"
diff --git a/net/ntopng/files/patch-src_DivertInterface.cpp b/net/ntopng/files/patch-src_DivertInterface.cpp
deleted file mode 100644
index 49a18aa24719..000000000000
--- a/net/ntopng/files/patch-src_DivertInterface.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/DivertInterface.cpp.orig 2018-01-18 14:31:32 UTC
-+++ src/DivertInterface.cpp
-@@ -101,7 +101,7 @@ DivertInterface::DivertInterface(const char *name) : N
- sin.sin_family = AF_INET, sin.sin_port = htons(port);
- sin_len = sizeof(struct sockaddr_in);
-
-- if(bind(sock, (struct sockaddr *) &sin, sin_len) == -1) {
-+ if(::bind(sock, (struct sockaddr *) &sin, sin_len) == -1) {
- ntop->getTrace()->traceEvent(TRACE_ERROR, "Unable to bind divert socket to port %d", port);
- throw 1;
- }
diff --git a/net/ntopng/files/patch-src_Utils.cpp b/net/ntopng/files/patch-src_Utils.cpp
deleted file mode 100644
index 69a8de0d3f73..000000000000
--- a/net/ntopng/files/patch-src_Utils.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/Utils.cpp.orig 2018-01-12 09:48:20 UTC
-+++ src/Utils.cpp
-@@ -2370,7 +2370,7 @@ int Utils::bindSockToDevice(int sock, int family, cons
-
- if(pAdapterFound != NULL) {
- int addrsize = (family == AF_INET6) ? sizeof(sockaddr_in6) : sizeof(sockaddr_in);
-- bindresult = bind(sock, pAdapterFound->ifa_addr, addrsize);
-+ bindresult = ::bind(sock, pAdapterFound->ifa_addr, addrsize);
- }
-
- freeifaddrs(pList);
diff --git a/net/ntopng/files/patch-third-party_mongoose_mongoose.c b/net/ntopng/files/patch-third-party_mongoose_mongoose.c
deleted file mode 100644
index 1b879234f11a..000000000000
--- a/net/ntopng/files/patch-third-party_mongoose_mongoose.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- third-party/mongoose/mongoose.c.orig 2018-01-12 09:48:20 UTC
-+++ third-party/mongoose/mongoose.c
-@@ -730,7 +730,7 @@ struct mg_request_info *mg_get_request_info(struct mg_
- return &conn->request_info;
- }
-
--static void mg_strlcpy(register char *dst, register const char *src, size_t n) {
-+static void mg_strlcpy(char *dst, const char *src, size_t n) {
- for (; *src != '\0' && n > 1; n--) {
- *dst++ = *src++;
- }
-@@ -2139,7 +2139,7 @@ static void MD5Init(MD5_CTX *ctx) {
- }
-
- static void MD5Transform(uint32_t buf[4], uint32_t const in[16]) {
-- register uint32_t a, b, c, d;
-+ uint32_t a, b, c, d;
-
- a = buf[0];
- b = buf[1];
-@@ -4511,7 +4511,7 @@ static int set_ports_option(struct mg_context *ctx) {
- (void *)
- #endif
- &on, sizeof(on))) != 0 ||
-- (rc_bind = bind(so.sock,
-+ (rc_bind = ::bind(so.sock,
- &sa->sa,
- (sa->sa.sa_family == AF_INET) ? sizeof(sa->sin) : sizeof(sa->sin6))
- ) != 0 ||
diff --git a/net/ntopng/files/patch-third-party_snmp_net.c b/net/ntopng/files/patch-third-party_snmp_net.c
deleted file mode 100644
index dd810946cf7b..000000000000
--- a/net/ntopng/files/patch-third-party_snmp_net.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- third-party/snmp/net.c.orig 2018-01-12 09:48:20 UTC
-+++ third-party/snmp/net.c
-@@ -64,7 +64,7 @@ int open_udp_socket(int port)
- si_me.sin_family = AF_INET;
- si_me.sin_port = htons(port);
- si_me.sin_addr.s_addr = htonl(INADDR_ANY);
-- if (bind(s, (struct sockaddr *) &si_me, sizeof(si_me)) != 0)
-+ if (::bind(s, (struct sockaddr *) &si_me, sizeof(si_me)) != 0)
- return(-1); //diep("bind");
-
- return s;
diff --git a/net/ntopng/pkg-plist b/net/ntopng/pkg-plist
index b4e6b5fa6525..32aa4c2488d6 100644
--- a/net/ntopng/pkg-plist
+++ b/net/ntopng/pkg-plist
@@ -21,6 +21,7 @@ man/man8/ntopng.8.gz
%%DATADIR%%/httpdocs/css/bubble-chart.css
%%DATADIR%%/httpdocs/css/cal-heatmap.css
%%DATADIR%%/httpdocs/css/cubism.css
+%%DATADIR%%/httpdocs/css/custom_theme.css
%%DATADIR%%/httpdocs/css/datepicker.css
%%DATADIR%%/httpdocs/css/dc.css
%%DATADIR%%/httpdocs/css/flags.css
@@ -185,9 +186,11 @@ man/man8/ntopng.8.gz
%%DATADIR%%/httpdocs/js/ntop.min.js
%%DATADIR%%/httpdocs/js/ntop.min.js.map
%%DATADIR%%/httpdocs/js/ntopng_utils.js
+%%DATADIR%%/httpdocs/js/ntopng_validators.js
%%DATADIR%%/httpdocs/js/nv.d3.js
%%DATADIR%%/httpdocs/js/pdfmake.js
%%DATADIR%%/httpdocs/js/pie-chart.js
+%%DATADIR%%/httpdocs/js/quotas_utils.js
%%DATADIR%%/httpdocs/js/rickshaw.js
%%DATADIR%%/httpdocs/js/ripe_widget_api.js
%%DATADIR%%/httpdocs/js/sankey.js
@@ -200,6 +203,7 @@ man/man8/ntopng.8.gz
%%DATADIR%%/httpdocs/misc/ntopng-add-user.sh
%%DATADIR%%/httpdocs/misc/ntopng_template_elk.json
%%DATADIR%%/httpdocs/other/EtherOUI.txt
+%%DATADIR%%/httpdocs/other/TimeZones.txt
%%DATADIR%%/httpdocs/other/trackers.txt
%%DATADIR%%/httpdocs/ssl/README
%%DATADIR%%/httpdocs/ssl/ntopng-cert.pem.dummy
@@ -218,6 +222,7 @@ man/man8/ntopng.8.gz
%%DATADIR%%/scripts/callbacks/system/discover.lua
%%DATADIR%%/scripts/callbacks/system/housekeeping.lua
%%DATADIR%%/scripts/callbacks/system/minute.lua
+%%DATADIR%%/scripts/callbacks/system/pinger.lua
%%DATADIR%%/scripts/callbacks/system/second.lua
%%DATADIR%%/scripts/callbacks/system/shutdown.lua
%%DATADIR%%/scripts/callbacks/system/startup.lua
@@ -225,7 +230,6 @@ man/man8/ntopng.8.gz
%%DATADIR%%/scripts/callbacks/user_scripts/loader.lua
%%DATADIR%%/scripts/callbacks/user_scripts/periodic/default.lua
%%DATADIR%%/scripts/locales/en.lua
-%%DATADIR%%/scripts/locales/it.lua
%%DATADIR%%/scripts/lua/API.lua
%%DATADIR%%/scripts/lua/about.lua
%%DATADIR%%/scripts/lua/admin/add_user.lua
@@ -247,6 +251,7 @@ man/man8/ntopng.8.gz
%%DATADIR%%/scripts/lua/captive_portal.lua
%%DATADIR%%/scripts/lua/change_password.lua
%%DATADIR%%/scripts/lua/check_update.lua
+%%DATADIR%%/scripts/lua/country_details.lua
%%DATADIR%%/scripts/lua/country_stats.lua
%%DATADIR%%/scripts/lua/discover.lua
%%DATADIR%%/scripts/lua/do_export_data.lua
@@ -257,6 +262,7 @@ man/man8/ntopng.8.gz
%%DATADIR%%/scripts/lua/examples/sqlite.lua
%%DATADIR%%/scripts/lua/export_data.lua
%%DATADIR%%/scripts/lua/find_app.lua
+%%DATADIR%%/scripts/lua/find_category.lua
%%DATADIR%%/scripts/lua/find_host.lua
%%DATADIR%%/scripts/lua/find_member.lua
%%DATADIR%%/scripts/lua/find_prefs.lua
@@ -291,6 +297,7 @@ man/man8/ntopng.8.gz
%%DATADIR%%/scripts/lua/get_process_info.lua
%%DATADIR%%/scripts/lua/get_processes_data.lua
%%DATADIR%%/scripts/lua/get_system_hosts_interaction.lua
+%%DATADIR%%/scripts/lua/get_top_realtime.lua
%%DATADIR%%/scripts/lua/get_top_talkers.lua
%%DATADIR%%/scripts/lua/get_treemap.lua
%%DATADIR%%/scripts/lua/get_unknown_devices_data.lua
@@ -343,19 +350,27 @@ man/man8/ntopng.8.gz
%%DATADIR%%/scripts/lua/login.lua
%%DATADIR%%/scripts/lua/logout.lua
%%DATADIR%%/scripts/lua/mac_details.lua
+%%DATADIR%%/scripts/lua/mac_pkt_distro.lua
%%DATADIR%%/scripts/lua/mac_stats.lua
%%DATADIR%%/scripts/lua/macs_stats.lua
-%%DATADIR%%/scripts/lua/modules/alert_api.lua
+%%DATADIR%%/scripts/lua/metrics.lua
+%%DATADIR%%/scripts/lua/modules/alert_consts.lua
+%%DATADIR%%/scripts/lua/modules/alert_endpoints/email.lua
+%%DATADIR%%/scripts/lua/modules/alert_endpoints/nagios.lua
+%%DATADIR%%/scripts/lua/modules/alert_endpoints/slack.lua
%%DATADIR%%/scripts/lua/modules/alert_state_utils.lua
%%DATADIR%%/scripts/lua/modules/alert_utils.lua
%%DATADIR%%/scripts/lua/modules/as_utils.lua
+%%DATADIR%%/scripts/lua/modules/base64.lua
%%DATADIR%%/scripts/lua/modules/blacklist_utils.lua
%%DATADIR%%/scripts/lua/modules/callback_utils.lua
%%DATADIR%%/scripts/lua/modules/db_utils.lua
%%DATADIR%%/scripts/lua/modules/discover_utils.lua
%%DATADIR%%/scripts/lua/modules/dkjson.lua
+%%DATADIR%%/scripts/lua/modules/doa_ox.lua
%%DATADIR%%/scripts/lua/modules/flow_aggregation_utils.lua
%%DATADIR%%/scripts/lua/modules/flow_utils.lua
+%%DATADIR%%/scripts/lua/modules/format_utils.lua
%%DATADIR%%/scripts/lua/modules/grafana/index.lua
%%DATADIR%%/scripts/lua/modules/grafana/query.lua
%%DATADIR%%/scripts/lua/modules/grafana/search.lua
@@ -387,17 +402,18 @@ man/man8/ntopng.8.gz
%%DATADIR%%/scripts/lua/modules/rrd_5min_dump_utils.lua
%%DATADIR%%/scripts/lua/modules/rrd_min_dump_utils.lua
%%DATADIR%%/scripts/lua/modules/rrd_utils.lua
-%%DATADIR%%/scripts/lua/modules/slack_utils.lua
%%DATADIR%%/scripts/lua/modules/sqlite_utils.lua
%%DATADIR%%/scripts/lua/modules/template.lua
%%DATADIR%%/scripts/lua/modules/template_utils.lua
%%DATADIR%%/scripts/lua/modules/top_talkers_utils.lua
+%%DATADIR%%/scripts/lua/modules/tz_utils.lua
%%DATADIR%%/scripts/lua/modules/vlan_utils.lua
%%DATADIR%%/scripts/lua/modules/voip_utils.lua
%%DATADIR%%/scripts/lua/modules/xmlSimple.lua
%%DATADIR%%/scripts/lua/network_details.lua
%%DATADIR%%/scripts/lua/network_load.lua
%%DATADIR%%/scripts/lua/network_stats.lua
+%%DATADIR%%/scripts/lua/nindex.lua
%%DATADIR%%/scripts/lua/os_stats.lua
%%DATADIR%%/scripts/lua/page_not_found.lua
%%DATADIR%%/scripts/lua/pid_stats.lua