Commit graph

64 commits

Author SHA1 Message Date
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
c160b69d23 - Last pr committer has agreed to become maintainer
PR:		ports/163999
Approved by:	gabor (mentor, implicit)
2012-01-11 00:40:59 +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
Pav Lucistnik
dc89e68659 - Ensure executable permissions on periodic script in case files subdirectory
get permissions stripped

PR:		ports/147255
Submitted by:	Chris Rees <utisoft@gmail.com>
2010-06-02 12:05:48 +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
Mark Linimon
8b2c32ef05 scrappy's bit has been taken for safekeeping, so return these ports to
the pool.

Hat:		portmgr
2009-06-13 20:56:59 +00:00
Pav Lucistnik
b2a96c6df1 - Remove conditional checks for FreeBSD 5.x and older 2009-01-06 17:59:31 +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
0c284fe897 Set LOCALBASE if not already set
PR:		ports/114305
Submitted by:	Volker Werth <volker@vwsoft.com>
2007-12-20 04:39:11 +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
77bbe47f35 As per discussion on -advocacy, resurrect having the installer prompted
if they want to enable it in /etc/rc.conf, instead of making it automatic.

Put a message explaining that for desktop/laptop environments, enabling in
/etc/rc.conf is recommended ...
2007-10-16 04:24:33 +00:00
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
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