1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
Commit Graph

52 Commits

Author SHA1 Message Date
Marc G. Fournier
08220bb0f6 fix problem where, when you try and run on install, it gives error because
LOCALBASE isn't set ...
2007-08-29 04:51:01 +00:00
Marc G. Fournier
aa79c55203 clean up some warnings from portlint -avz and fix it so that if already
installed, and enabled, it properly enables in /etc/rc.conf also
2007-04-30 18:49:08 +00:00
Marc G. Fournier
868cf10ec1 forgot to cvs add the start up file ... 2007-04-28 23:54:03 +00:00
Marc G. Fournier
8637298280 slight change to better handle boottime reporting, as well as to document
it in the pkg-message
2007-04-28 19:23:40 +00:00
Marc G. Fournier
e4cbc73c1d By popular request, I've added a bsdstats.sh script to etc/rc.d so that
it can be enabled to run on reboot (ie. for laptops, office computers, etc)
since not everyone runs a server 24/7 ...

I've added to pkg-install a yesno question as to whether it should be enabled
on reboot, seperate from the monthly periodic run ...
2007-04-28 19:12:31 +00:00
Marc G. Fournier
4e9969ca72 Only depend on netcat if we are running an older version of FreeBSD
that doesn't already include it ...

PR:		ports/106446
Submitted by:	KIMURA Yasuhiro <yasu@utahime.org>
2006-12-09 06:06:13 +00:00
Marc G. Fournier
f63f74f52e start reporting 'none' devices ... it just pads the results, but there
is no harm in doing so ...
2006-12-05 13:49:45 +00:00
Marc G. Fournier
b7408d98fc forgot to ready version 2006-12-05 13:28:15 +00:00
Marc G. Fournier
f03b4b4e03 on FreeBSD 4x the port sysutils/bsdstats should depend on net/netcat
PR:		ports/106373
Submitted by:	George L. Yermulnik"<yz@yz.kiev.ua>
2006-12-05 13:26:32 +00:00
Marc G. Fournier
2d45776e21 make bsdstats's install a bit more friendly
PR:		ports/106284
Submitted by:	Mikko Tyolajarvi<mbsd@pacbell.net>
2006-12-04 01:44:24 +00:00
Marc G. Fournier
8575c7bb11 v5.0 of the BSDstats script ...
This version brings in optional port reporting.

This version is backwards compatible with the older versions, so an
upgrade isn't required, except if you wish to enable port reporting
2006-12-01 13:30:45 +00:00
Marc G. Fournier
802c78e1e2 clean up pkg-install a bit to avoid generating an error when
/etc/periodic.conf doesn't exist ...

Submitted by:	Paul Dekkers <Paul.Dekkers@surfnet.nl>
2006-11-05 18:56:10 +00:00
Marc G. Fournier
d116ebec62 Make pkg-install a bit smarter ... if the questions have already been
answered in /etc/periodic.conf, don't ask them again, just print
out the message ...

Better for unattended port upgrades ...
2006-10-08 00:39:29 +00:00
Marc G. Fournier
0f2b8f503b Fix the report server hostname ... 2006-10-04 04:51:41 +00:00
Marc G. Fournier
218548c5d6 Fix PATH so that it includes /usr/local/bin, so that dig is found on
systems where its installed via ports

Log communications, by default, to /var/log/bsdstats, so that one
knows if things are successful ... now have it so that if any phase
FAILs, it exits and doesn't just go to the next, which most likely
won't work either ...
2006-10-04 04:46:01 +00:00
Marc G. Fournier
9e7d271d1a Slight typo ...
Submitted by:  Ian Darwin <ian@darwinsys.com>
2006-10-03 01:33:11 +00:00
Marc G. Fournier
69f0d66df2 cosmetic change 2006-10-02 12:07:30 +00:00
Marc G. Fournier
fb0b907994 Eliminate initial sleep(s) for getting the id token 2006-10-02 12:03:49 +00:00
Marc G. Fournier
1a0edcb258 Minor change ... make the report server a seperate subdomain then the
web server itself to make it easier to add on multiple report server
front ends
2006-10-01 06:15:31 +00:00
Marc G. Fournier
b39f95ff6c since we're removing a bunch of the sleep(s), let's increase the couple
that remain so that we have pretty much the same overall 'randomness' for
reporting systems ...
2006-09-29 18:59:28 +00:00
Marc G. Fournier
7ccf437131 slight change to the when the sleeps happen ... 2006-09-29 18:58:20 +00:00
Marc G. Fournier
d064bd5373 Various changes to address some major issues ...
See -questions for more details ...
2006-09-29 02:24:55 +00:00
Marc G. Fournier
ffd59295ee Add a network connectivity check using dns 2006-09-28 18:21:51 +00:00
Marc G. Fournier
be64e7e8bb fix the code a bit to allow for setting the checkin_server to something
different ... instructions soon to follow on web site as to how to use
this to use apache to redirect requests through it as a 'light proxy'
2006-09-28 18:00:04 +00:00
Marc G. Fournier
cb2b9a562a Clean up the code a wee bit, since the non-FreeBSD case(s), where OSs don't
have pciconf, just keeps growing ...

Fix up code for use of /etc/rc.conf.local for those systems that don't use
periodic.conf

Submitted by:	Thorsten Glaser <tg@mirbsd.de>
2006-09-09 16:45:36 +00:00
Marc G. Fournier
0789871b38 Even better random number generator using jot ... 2006-09-07 04:50:21 +00:00
Marc G. Fournier
13dce54b33 Apparently Sparc doesn't like using openssl to generate a random value ... it
created a 41 year 'sleep' time for one ...

Fix it to use sum instead of openssl
2006-09-07 04:22:27 +00:00
Marc G. Fournier
edfe9b3a00 OpenBSD uses the same method to submit as NetBSD 2006-09-06 00:36:03 +00:00
Marc G. Fournier
353ee209ab Add 'unset HTTP_USER_AGENT' ... the backend is setup to only accept specific
USER_AGENTs, so if someone has this set in their shell when running it manually,
it will break

Add random sleep 'breaks' before doing the fetchs, to help reduce impact on
the server when all reporting hosts submit their data ... get them someone
staggered ...

Submitted by:	Andre Albsmeier <Andre.Albsmeier@siemens.com>
2006-09-06 00:33:26 +00:00
Marc G. Fournier
32f0dc1610 temporarily broke get_id function
Submitted by:	David Brownlee <abs@absd.org>
2006-09-04 22:40:56 +00:00
Marc G. Fournier
6aa511e0f0 Several cleanups, and extensions to allow NetBSD to submit ...
- uri_escape IDTOKEN properly
 - use ftp vs fetch
 - use /etc/rc.conf instead of /etc/periodic.conf

Submitted by:	David Brownlee <abs@absd.org>
2006-09-04 20:36:44 +00:00
Marc G. Fournier
1f08de4978 forgot to 'cvs add' pkg-install
Submitted by: Paul Lipps <paul.lipps@gmail.com>
2006-09-04 06:57:49 +00:00
Marc G. Fournier
788f735b04 If installer enables the script, also prompt to run it the first
time
2006-09-04 02:51:03 +00:00
Marc G. Fournier
2d6b13e808 have it prompt, similar to postfix, whether or not you wish to activate
the script when you install it

Submitted by: Antony Mawer <antony@mawer.org>
2006-09-04 02:47:41 +00:00
Marc G. Fournier
97367f94b1 First, set PATH similar to /etc/rc.shutdown, so that we don't have to
hardcode openssl, to allow for those using ports for it to easily make
use of acript

Second, check timestamp of /var/db/bsdstats to make sure that the 15
minutes have passed before submitting, so that ppl don't get that 'false
success' when they ctl-C

Submitted by: Oliver Fromme <olli@lurza.secnetix.de>
2006-09-04 01:59:28 +00:00
Marc G. Fournier
b44da07259 Fix " : not found" when first running script 2006-08-26 17:12:50 +00:00
Marc G. Fournier
a3a3bf49af fix typo in PLIST_DIRS
Submitted by:	Giorgos Keramidas <keramida@ceid.upatras.gr>
2006-08-26 02:17:59 +00:00
Marc G. Fournier
0744dfbb6b Fix variable name used for token file
Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>
2006-08-14 20:26:12 +00:00
Marc G. Fournier
d60b7dd874 Ensure that data returned from server on initial challenge is, in
fact, only the data that we expect.

Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>
2006-08-14 13:08:01 +00:00
Marc G. Fournier
6e536803d7 This is mostly a rewrite of the bsdstats script:
- eliminate use of ip/hostname as unique keys
    - reduce # of fetch's down to 4
    - move to using bsdstats.org
    - put in a time delay on initial challenge/response
      to make it a bit more difficult for fakers
2006-08-14 07:35:09 +00:00
Marc G. Fournier
c4f8a1c342 somehow, defining $OS fell out in one of the commits ... 2006-08-09 18:36:15 +00:00
Marc G. Fournier
c98f5c5f8f Include class information for devices, so that its easier to
categorize them in reports ...
2006-08-09 16:54:30 +00:00
Marc G. Fournier
45f855e33e Add some verbosity to the script, letting ppl know that a report has
been sent, and/or that it is disabled and how to enable it ...

Submitted by:	Paul Schmehl <pauls@utdallas.edu>
2006-08-09 16:21:30 +00:00
Marc G. Fournier
935f9e7043 Add CPUs to the devices report, and clean up the script a bit
Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>
2006-08-09 02:37:09 +00:00
Marc G. Fournier
a65f939beb remove the monthly_statistics_mailto variable from the script ... it
is not used, nor was it ever used ...
2006-08-08 04:32:21 +00:00
Marc G. Fournier
c8aba8e713 Redirect fetch output to /dev/null ... 2006-08-08 04:30:38 +00:00
Marc G. Fournier
be9d1f56a9 have getid report operating system, so that other *BSDs can participate
as well ...
2006-08-08 04:06:55 +00:00
Marc G. Fournier
31a52eb950 Makefile cleanup
Submitted by:	Boris Samorodov <bsam@ipt.ru>
2006-08-08 02:17:35 +00:00
Marc G. Fournier
d9926abc03 Add a message pointing people to where the stats themselves can
be viewed
2006-08-08 02:12:13 +00:00
Marc G. Fournier
7d08ae66b0 bsdstats v2.0 ... device reporting 2006-08-07 03:35:39 +00:00