mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
Initial port for bsdstats script
Submitted by: John Nielsen <john@jnielsen.net>
This commit is contained in:
parent
e096d5f03a
commit
adf2bc88c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169788
@ -55,6 +55,7 @@
|
||||
SUBDIR += bsd-splash-changer
|
||||
SUBDIR += bsdadminscripts
|
||||
SUBDIR += bsdsar
|
||||
SUBDIR += bsdstats
|
||||
SUBDIR += bubblemon-dockapp
|
||||
SUBDIR += bubblemon2
|
||||
SUBDIR += ccd2iso
|
||||
|
27
sysutils/bsdstats/Makefile
Normal file
27
sysutils/bsdstats/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# New ports collection makefile for: bsdstats
|
||||
# Date created: 5 August 2006
|
||||
# Whom: Marc G. Fournier <scrappy@freebsd.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= bsdstats
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= sysutils
|
||||
DISTFILES=
|
||||
|
||||
MAINTAINER= scrappy@freebsd.org
|
||||
COMMENT= Monthly script for reporting anonymous statistics about your machine
|
||||
|
||||
NO_BUILD= yes
|
||||
PLIST_FILES= etc/periodic/monthly/300.statistics
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${LOCALBASE}/etc/periodic/monthly
|
||||
${CP} ${FILESDIR}/300.statistics ${LOCALBASE}/etc/periodic/monthly
|
||||
post-install:
|
||||
${CAT} pkg-message
|
||||
|
||||
.include <bsd.port.post.mk>
|
29
sysutils/bsdstats/files/300.statistics
Normal file
29
sysutils/bsdstats/files/300.statistics
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.1 2006-08-06 03:34:08 scrappy Exp $
|
||||
#
|
||||
|
||||
# If there is a global system configuration file, suck it in.
|
||||
#
|
||||
monthly_statistics_mailto="scrappy@hub.org,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
|
||||
exit $rc
|
29
sysutils/bsdstats/files/300.statistics.in
Normal file
29
sysutils/bsdstats/files/300.statistics.in
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.1 2006-08-06 03:34:08 scrappy Exp $
|
||||
#
|
||||
|
||||
# If there is a global system configuration file, suck it in.
|
||||
#
|
||||
monthly_statistics_mailto="scrappy@hub.org,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
|
||||
exit $rc
|
9
sysutils/bsdstats/files/pkg-message.in
Normal file
9
sysutils/bsdstats/files/pkg-message.in
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
********************
|
||||
To enable the port, edit or create /etc/periodic.conf and add this line:
|
||||
monthly_statistics_enable=yes
|
||||
|
||||
To run it manually the first time, just run it as:
|
||||
/usr/local/etc/periodic/monthly/300.statistics
|
||||
********************
|
||||
|
8
sysutils/bsdstats/pkg-descr
Normal file
8
sysutils/bsdstats/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
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
|
9
sysutils/bsdstats/pkg-message
Normal file
9
sysutils/bsdstats/pkg-message
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
********************
|
||||
To enable the port, edit or create /etc/periodic.conf and add this line:
|
||||
monthly_statistics_enable=yes
|
||||
|
||||
To run it manually the first time, just run it as:
|
||||
/usr/local/etc/periodic/monthly/300.statistics
|
||||
********************
|
||||
|
Loading…
Reference in New Issue
Block a user