View | Details | Raw Unified | Return to bug 251504
Collapse All | Expand All

(-)sysutils/bsdstats/files/300.statistics.in (-2 / +4 lines)
Lines 392-399 report_ports() { Link Here
392
            ;;
392
            ;;
393
          *)
393
          *)
394
            report_uri="/scripts/report_ports_v2.php"
394
            report_uri="/scripts/report_ports_v2.php"
395
            if [ -f %%PREFIX%%/etc/bsdstats.conf -a "0" = "0`grep ^all-ports /usr/local/etc/bsdstats.conf`" ]; then
395
            if [ -f %%PREFIX%%/etc/bsdstats.conf ]; then
396
              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}' )
396
                  if [ "0" = "0`grep ^all-ports /usr/local/etc/bsdstats.conf`" ]; then
397
                      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}' )
398
                  fi
397
            else
399
            else
398
              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}' )
400
              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}' )
399
            fi
401
            fi

Return to bug 251504