Index: head/sysutils/bsdstats/Makefile =================================================================== --- head/sysutils/bsdstats/Makefile +++ head/sysutils/bsdstats/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= bsdstats -PORTVERSION= 7.0 +PORTVERSION= 7.1 CATEGORIES= sysutils DISTFILES= Index: head/sysutils/bsdstats/files/300.statistics.in =================================================================== --- head/sysutils/bsdstats/files/300.statistics.in +++ head/sysutils/bsdstats/files/300.statistics.in @@ -392,7 +392,7 @@ ;; *) report_uri="/scripts/report_ports_v2.php" - if [ -f %%PREFIX%%/etc/bsdstats.conf -a "0" = "0`grep ^all-ports /usr/local/etc/bsdstats.conf`" ]; then + if [ -f %%PREFIX%%/etc/bsdstats.conf ] && [ "0" = "0`grep ^all-ports /usr/local/etc/bsdstats.conf`" ]; then query_string=$( pkg query %n:%v:%o | fgrep -f %%PREFIX%%/etc/bsdstats.conf | awk -F\/ '{print $1}' | sed -E -e 's/\+/%2b/g' -e 's/,/%2c/g' | awk '{printf"&port[]=%s", $1}' ) else query_string=$( pkg query %n:%v:%o | awk -F\/ '{print $1}' | sed -E -e 's/\+/%2b/g' -e 's/,/%2c/g' | awk '{printf"&port[]=%s", $1}' )