Commit graph

55 commits

Author SHA1 Message Date
Tijl Coosemans
3f28e5234c - Use drill instead of dig on FreeBSD 10.
- Support staging.

PR:		ports/183264
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org>
Approved by:	"A.J. Kehoe IV (Nanoman)" <bsdstats@nanoman.ca> (maintainer)
2013-10-25 15:06:30 +00:00
Michael Scheidell
b6ee174661 - Rewrite installation message [1]
- Include project's description in pkg-desc, not pkg-message.in
- Change default answer to each reporting question to yes
- Fix tests for /etc/periodic.conf and /etc/rc.conf
- Clean up interactive prompts during installation
- Bump PORTREVISION

PR:		ports/171015
Submitted by:	bsdstats@nanoman.ca (maintainer)
Reported by:	2A <deuza at fr dot FreeBSD dot org> [1]
2012-08-28 04:02:55 +00:00
Michael Scheidell
1eaf9d912b - Add pkgng support
PR:		ports/170118
Submitted by:	bsdstats@nanoman.ca (maintainer)
2012-07-28 12:27:28 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Eitan Adler
8be5178934 - use shell arithmetic instead of expr
PR:		ports/160504
Submitted by:	KOIE Hidetaka <koie@suri.co.jp>
Submitted by:	h h <aakuusta@gmail.com>
Approved by:	bapt (mentor)
2011-09-25 21:35:26 +00:00
Dmitry Marakasov
f836db89c8 - Respect LOCALBASE
- Switch to modern style of rc script handling
- Installation-related nits

PR:		146257
Submitted by:	Anonymous <swell.k@gmail.com>
2010-08-19 03:06:13 +00:00
Dmitry Marakasov
af3b87d027 - Forced commit to note that some files were repocopied:
- files/300.statistics -> files/300.statistics.in
  - files/bsdstats -> files/bsdstats.in
  - pkg-message -> files/pkg-message.in

Repocopy by:	marcus
2010-08-19 03:03:34 +00:00
Pav Lucistnik
8424128942 - Set HTTP Timeout to prevent blocking
PR:		ports/136124
Submitted by:	Alexander Best <alexbestms@math.uni-muenster.de>
Feature safe:	yes
2009-09-18 21:19:34 +00:00
Boris Samorodov
86dbd367ef . do not remove (shared) directories periodic, periodic/monthly [1] [3]
at deinstall;
. fix useless use of cat(1);  [2]
. hardcoded directory name isreplaced with the appropriate variable.  [2]

PR:		105206 [1],  119453 [2],  126632 [3]
Submitted by:	delphij [1], olli [2], bsam [3]
Approved by:	maintainer timeout
2008-08-19 10:25:06 +00:00
Marc G. Fournier
9dac215e4a Remove a reference to hostname that was in the script, but was never
actually used anywhere ...

PR:		ports/106298
Submitted by:	Andre Albsmeier <Andre.Albsmeier@siemens.com>
2007-12-20 04:36:39 +00:00
Marc G. Fournier
5f578bbd6f The point of bsdstats is to be as painless as possible, but also to be
run monthly ... change the behaviour such that when it is run with the
-nodelay option, it *only* reports the operating system, even if both
devices and ports reporting are also enabled ...

... this when, when run as part of the original port install, *or*
on system reboot if enabled in /etc/rc.conf, it is 'quick n painless',
and we get the critical number we are looking for ...
2007-10-16 04:34:49 +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
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
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
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