View | Details | Raw Unified | Return to bug 229347 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/bsdstats/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	bsdstats
4
PORTNAME=	bsdstats
5
PORTVERSION=	6.0
5
PORTVERSION=	6.0
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
DISTFILES=
8
DISTFILES=
9
9
(-)sysutils/bsdstats/files/300.statistics.in (-2 / +5 lines)
Lines 354-365 Link Here
354
    FreeBSD|DragonFly)
354
    FreeBSD|DragonFly)
355
      local query_string=""
355
      local query_string=""
356
      local line
356
      local line
357
      for line in $(${PCICONF} -l); do
357
      while read line
358
      do
358
        local DRIVER=$(echo "${line}" | ${AWK} -F\@ '{print $1}')
359
        local DRIVER=$(echo "${line}" | ${AWK} -F\@ '{print $1}')
359
        local DEV=$(echo "${line}" | ${AWK} '{print $4}' | ${CUT} -c8-15)
360
        local DEV=$(echo "${line}" | ${AWK} '{print $4}' | ${CUT} -c8-15)
360
        local CLASS=$(echo "${line}" | ${AWK} '{print $2}' | ${CUT} -c9-14)
361
        local CLASS=$(echo "${line}" | ${AWK} '{print $2}' | ${CUT} -c9-14)
361
        query_string=$query_string`echo \&dev[]=${DRIVER}:${DEV}:${CLASS}`
362
        query_string=$query_string`echo \&dev[]=${DRIVER}:${DEV}:${CLASS}`
362
      done
363
      done << EOT
364
      $(${PCICONF} -l)
365
EOT
363
366
364
      echo_begin "Posting device statistics to ${checkin_server_description}"
367
      echo_begin "Posting device statistics to ${checkin_server_description}"
365
      do_http_request_check_status "GET" "/scripts/report_devices.php?token=${TOKEN}&key=${KEY}$query_string" \
368
      do_http_request_check_status "GET" "/scripts/report_devices.php?token=${TOKEN}&key=${KEY}$query_string" \

Return to bug 229347