Hi,

  Iata o initiativa de a se calcula niste statistici privint utilizarea FreeBSD. Poate fi util comunitatii pentru suportul comercial, dar trebuie avut grija cum e realizat.

Date: Sun, 6 Aug 2006 03:34:08 +0000 (UTC)
Subject: cvs commit: ports/sysutils Makefile ports/sysutils/bsdstats
  Log:
 Initial port for bsdstats script

 Submitted by: John Nielsen < [EMAIL PROTECTED]>

Package description:
The purpose of this port is to attempt to produce reasonably accurate
statistics on FreeBSD deployment, to be used for both marketing, and
advocacy purposes by the project.

The major problem that we are trying to address is vendors who do not
feel that FreeBSD presents enough of a market to bother supporting.

WWW: http://bsdstats.hub.org

sysutils/bsdstats/files/300.statistics:
monthly_statistics_mailto="[EMAIL PROTECTED],root"
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi

oldmask=$(umask)
umask 066

case "$monthly_statistics_enable" in
[Yy][Ee][Ss])
HN=`/bin/hostname`
SYS=`/usr/bin/uname -r`
ARCH=`/usr/bin/uname -m`
/usr/bin/fetch -qo /tmp/getid http://bsdstats.hub.org/scripts/getid.php?hn=$HN\&sys=$SYS\&arch=$ARCH
;;
*) rc=0;;
esac

umask $oldmask

Ce parere aveti ? Imi pare ca cel putin $HN ar trebui modificat sa nu contina numele masinii, ci doar domeniul, e.g.:

   HN=`hostname -s`
   HN=`hostname | sed -e "s/^${HN}/XXX/"`

Daca se doreste a identifica "unique hists", fie se foloseste IP source, fie se poate genera un ID unic in momentul primei executii si se adauga la URL-ul din fetch.

Si nu am inteles de ce monthly_statistics_mailto contine o adresa privata -- testing ?

Adrian Penisoara
Ady (@rofug.ro)


Raspunde prin e-mail lui