aboutsummaryrefslogtreecommitdiff
path: root/net/ntopng
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2017-05-22 18:05:09 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2017-05-22 18:05:09 +0000
commit334063d5f29ffa7a4aac8a1ebb790e689c342168 (patch)
treee4ca939ca3cfdde21d10c0087a8b4ad02375961b /net/ntopng
parent417c1dca2266b24c478ed81efbd535b6de2c596f (diff)
downloadports-334063d5f29ffa7a4aac8a1ebb790e689c342168.tar.gz
ports-334063d5f29ffa7a4aac8a1ebb790e689c342168.zip
- Update net/ntopng to latest upstream stable snapshot
- Install GetIP data files in correct location [1] PR: 219447 [1] Submitted by: freebsd-bugzilla@thismonkey.com
Notes
Notes: svn path=/head/; revision=441485
Diffstat (limited to 'net/ntopng')
-rw-r--r--net/ntopng/Makefile5
-rw-r--r--net/ntopng/distinfo6
-rw-r--r--net/ntopng/files/ntopng-geoipupdate.sh.in4
-rw-r--r--net/ntopng/files/pkg-deinstall.in8
4 files changed, 11 insertions, 12 deletions
diff --git a/net/ntopng/Makefile b/net/ntopng/Makefile
index 39033a2e1a76..c3c736c76ed6 100644
--- a/net/ntopng/Makefile
+++ b/net/ntopng/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= ntopng
-PORTVERSION= 2.4.2017.01.20
-PORTREVISION= 1
+PORTVERSION= 2.4.2017.05.12
CATEGORIES= net
MAINTAINER= madpilot@FreeBSD.org
@@ -29,7 +28,7 @@ GROUPS= ntopng
USE_GITHUB= yes
GH_ACCOUNT= ntop
-GH_TAGNAME= 2d9a513
+GH_TAGNAME= 00c19bd
CPE_VENDOR= ntop
diff --git a/net/ntopng/distinfo b/net/ntopng/distinfo
index cbcf1ad939db..052e7f85dfc1 100644
--- a/net/ntopng/distinfo
+++ b/net/ntopng/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1485958691
-SHA256 (ntop-ntopng-2.4.2017.01.20-2d9a513_GH0.tar.gz) = de58a197ff3424a9eaf9ab6fad4178bbefd1eef568b4e9a53080e6e43c0b473d
-SIZE (ntop-ntopng-2.4.2017.01.20-2d9a513_GH0.tar.gz) = 21819824
+TIMESTAMP = 1495439609
+SHA256 (ntop-ntopng-2.4.2017.05.12-00c19bd_GH0.tar.gz) = 4800530c7029c9cd00aa7cd6e67d75efc7a70ffed3b609aec248a6bda7a2a014
+SIZE (ntop-ntopng-2.4.2017.05.12-00c19bd_GH0.tar.gz) = 21819806
diff --git a/net/ntopng/files/ntopng-geoipupdate.sh.in b/net/ntopng/files/ntopng-geoipupdate.sh.in
index 02cbb9175e91..783bd81c68bc 100644
--- a/net/ntopng/files/ntopng-geoipupdate.sh.in
+++ b/net/ntopng/files/ntopng-geoipupdate.sh.in
@@ -13,8 +13,8 @@ _fetch() {
trap 'rc=$? ; set +e ; rm -f "'"$TEMPFILE"'" ; exit $rc' 0
if fetch -o - "$url" | gunzip >> "$TEMPFILE" ; then
chmod 444 "$TEMPFILE"
- if ! mv -f "$TEMPFILE" "%%DATADIR%%/$2" ; then
- echo "Unable to replace %%DATADIR%%/$2"
+ if ! mv -f "$TEMPFILE" "%%DATADIR%%/httpdocs/geoip/$2" ; then
+ echo "Unable to replace %%DATADIR%%/httpdocs/geoip/$2"
return 2
fi
else
diff --git a/net/ntopng/files/pkg-deinstall.in b/net/ntopng/files/pkg-deinstall.in
index b8f59a3da311..2999b3847595 100644
--- a/net/ntopng/files/pkg-deinstall.in
+++ b/net/ntopng/files/pkg-deinstall.in
@@ -4,8 +4,8 @@
[ "$2" != "DEINSTALL" ] && exit 0
-[ -f "%%DATADIR%%/GeoLiteCity.dat" ] && /bin/rm "%%DATADIR%%/GeoLiteCity.dat"
-[ -f "%%DATADIR%%/GeoLiteCityv6.dat" ] && /bin/rm "%%DATADIR%%/GeoLiteCityv6.dat"
-[ -f "%%DATADIR%%/GeoIPASNum.dat.gz" ] && /bin/rm "%%DATADIR%%/GeoIPASNum.dat.gz"
-[ -f "%%DATADIR%%/GeoIPASNumv6.dat.gz" ] && /bin/rm "%%DATADIR%%/GeoIPASNumv6.dat.gz"
+[ -f "%%DATADIR%%/httpdocs/geoip/GeoLiteCity.dat" ] && /bin/rm "%%DATADIR%%/httpdocs/geoip/GeoLiteCity.dat"
+[ -f "%%DATADIR%%/httpdocs/geoip/GeoLiteCityv6.dat" ] && /bin/rm "%%DATADIR%%/httpdocs/geoip/GeoLiteCityv6.dat"
+[ -f "%%DATADIR%%/httpdocs/geoip/GeoIPASNum.dat.gz" ] && /bin/rm "%%DATADIR%%/httpdocs/geoip/GeoIPASNum.dat.gz"
+[ -f "%%DATADIR%%/httpdocs/geoip/GeoIPASNumv6.dat.gz" ] && /bin/rm "%%DATADIR%%/httpdocs/geoip/GeoIPASNumv6.dat.gz"
[ -d "%%DATADIR%%/httpdocs/geoip" ] && /usr/bin/find "%%DATADIR%%/httpdocs/geoip" -type d -empty -delete