View | Details | Raw Unified | Return to bug 146257
Collapse All | Expand All

(-)sysutils/bsdstats/Makefile (-5 / +5 lines)
Lines 14-27 MAINTAINER= ports@FreeBSD.org Link Here
14
COMMENT=	Monthly script for reporting anonymous statistics about your machine
14
COMMENT=	Monthly script for reporting anonymous statistics about your machine
15
15
16
NO_BUILD=	yes
16
NO_BUILD=	yes
17
SUB_FILES=	300.statistics bsdstats pkg-message
17
18
18
do-install:
19
do-install:
19
	${MKDIR} ${LOCALBASE}/etc/periodic/monthly
20
	${MKDIR} ${PREFIX}/etc/periodic/monthly
20
	${CP} ${FILESDIR}/300.statistics ${LOCALBASE}/etc/periodic/monthly
21
	${INSTALL_SCRIPT} ${WRKDIR}/300.statistics ${PREFIX}/etc/periodic/monthly
21
	${CP} ${FILESDIR}/bsdstats.sh ${LOCALBASE}/etc/rc.d
22
	${INSTALL_SCRIPT} ${WRKDIR}/bsdstats ${PREFIX}/etc/rc.d
22
	${CHMOD} 0755 ${LOCALBASE}/etc/rc.d/bsdstats.sh
23
post-install:
23
post-install:
24
	${CAT} ${PKGMESSAGE}
24
	@${CAT} ${PKGMESSAGE}
25
.if defined(BATCH) || defined(PACKAGE_BUILDING)
25
.if defined(BATCH) || defined(PACKAGE_BUILDING)
26
	@${ECHO_MSG} "	To activate monthly statistics reporting in /etc/periodic.conf,"
26
	@${ECHO_MSG} "	To activate monthly statistics reporting in /etc/periodic.conf,"
27
	@${ECHO_MSG} "	execute the following as root user:"
27
	@${ECHO_MSG} "	execute the following as root user:"
(-)sysutils/bsdstats/files/pkg-message.in (-1 / +1 lines)
Lines 23-29 To enable ports reporting, add this line Link Here
23
	monthly_statistics_report_ports="YES"
23
	monthly_statistics_report_ports="YES"
24
24
25
To run it manually the first time, just run it as:
25
To run it manually the first time, just run it as:
26
	${LOCALBASE}/etc/periodic/monthly/300.statistics -nodelay
26
	%%PREFIX%%/etc/periodic/monthly/300.statistics -nodelay
27
27
28
To view current statistics, go to:
28
To view current statistics, go to:
29
        http://www.bsdstats.org
29
        http://www.bsdstats.org
(-)sysutils/bsdstats/pkg-plist (-1 / +2 lines)
Lines 1-4 Link Here
1
@exec mkdir -p %D/etc/periodic/monthly/
1
etc/periodic/monthly/300.statistics
2
etc/periodic/monthly/300.statistics
2
etc/rc.d/bsdstats.sh
3
etc/rc.d/bsdstats
3
@dirrmtry etc/periodic/monthly
4
@dirrmtry etc/periodic/monthly
4
@dirrmtry etc/periodic
5
@dirrmtry etc/periodic
(-)sysutils/bsdstats/files/300.statistics.in (-1 / +1 lines)
Lines 28-34 checkin_server=${monthly_statistics_chec Link Here
28
bsdstats_log=${monthly_statistics_logfile:-"/var/log/bsdstats"}
28
bsdstats_log=${monthly_statistics_logfile:-"/var/log/bsdstats"}
29
id_token_file='/var/db/bsdstats'
29
id_token_file='/var/db/bsdstats'
30
30
31
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
31
PATH=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/sbin:%%PREFIX%%/bin
32
export PATH
32
export PATH
33
33
34
unset HTTP_USER_AGENT
34
unset HTTP_USER_AGENT
(-)sysutils/bsdstats/files/bsdstats.in (-1 / +1 lines)
Lines 21-27 load_rc_config bsdstats Link Here
21
name=bsdstats
21
name=bsdstats
22
rcvar=`set_rcvar`
22
rcvar=`set_rcvar`
23
23
24
command=/usr/local/etc/periodic/monthly/300.statistics
24
command=%%PREFIX%%/etc/periodic/monthly/300.statistics
25
25
26
# default to disable
26
# default to disable
27
bsdstats_enable=${bsdstats_enable:-"NO"}
27
bsdstats_enable=${bsdstats_enable:-"NO"}

Return to bug 146257