Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2012 19:10:02 GMT
From:      Grzegorz Blach <magik@roorback.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164608: New port: sysutils/fbsdmon
Message-ID:  <201201291910.q0TJA2JQ035607@red.freebsd.org>
Resent-Message-ID: <201201291910.q0TJADUw082667@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164608
>Category:       ports
>Synopsis:       New port: sysutils/fbsdmon
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 29 19:10:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Grzegorz Blach
>Release:        9.0 amd64
>Organization:
>Environment:
FreeBSD silver.nine 9.0-RELEASE FreeBSD 9.0-RELEASE #5 r229491: Wed Jan  4 19:17:56 CET 2012     magik@silver.nine:/usr/obj/usr/src/sys/SILVER  amd64

>Description:
This port sumbits system release and ports usage statistics to http://fbsdmon.org


http://redports.org/browser/magik/sysutils/fbsdmon

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sysutils/fbsdmon
#	sysutils/fbsdmon/files
#	sysutils/fbsdmon/files/600.fbsdmon.in
#	sysutils/fbsdmon/files/pkg-message.in
#	sysutils/fbsdmon/files/fbsdmon.in
#	sysutils/fbsdmon/pkg-plist
#	sysutils/fbsdmon/distinfo
#	sysutils/fbsdmon/Makefile
#	sysutils/fbsdmon/pkg-descr
#
echo c - sysutils/fbsdmon
mkdir -p sysutils/fbsdmon > /dev/null 2>&1
echo c - sysutils/fbsdmon/files
mkdir -p sysutils/fbsdmon/files > /dev/null 2>&1
echo x - sysutils/fbsdmon/files/600.fbsdmon.in
sed 's/^X//' >sysutils/fbsdmon/files/600.fbsdmon.in << '11cc6ee57de017dc03d5bc9af31e4677'
X#!/bin/sh -
X#
X# $FreeBSD$
X#
X
X# If there is a global system configuration file, suck it in.
X#
Xif [ -r /etc/defaults/periodic.conf ]
Xthen
X    . /etc/defaults/periodic.conf
X    source_periodic_confs
Xfi
X
Xcase "$weekly_fbsdmon_enable" in
X    [Yy][Ee][Ss])
X        echo ""
X        echo "Sending statistic to fbsdmon.org"
X
X        %%PREFIX%%/bin/fbsdmon
X        rc=$?;;
X
X    *)  rc=0;;
Xesac
X
Xexit $rc
11cc6ee57de017dc03d5bc9af31e4677
echo x - sysutils/fbsdmon/files/pkg-message.in
sed 's/^X//' >sysutils/fbsdmon/files/pkg-message.in << '4f58421fc52db2a8ab2a245423dd78e3'
X
X    To enable weekly reporting, add this line to /etc/periodic.conf:
X        weekly_fbsdmon_enable="YES"
X
X    To enable boottime reporting, add this line to /etc/rc.conf:
X        fbsdmon_enable="YES"
X
X    To run it manually, run command:
X        %%PREFIX%%/bin/fbsdmon
X
4f58421fc52db2a8ab2a245423dd78e3
echo x - sysutils/fbsdmon/files/fbsdmon.in
sed 's/^X//' >sysutils/fbsdmon/files/fbsdmon.in << '2af86b55ce865bc08eb1e229290f020c'
X#!/bin/sh 
X#
X# $FreeBSD$
X#
X
X# PROVIDE: fbsdmon
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X
X# Add the following line to /etc/rc.conf to enable `fbsdmon':
X#
X# fbsdmon_enable="YES"
X#
X
X
X. /etc/rc.subr
X
Xname='fbsdmon'
Xrcvar=`set_rcvar`
X
Xpidfile="/var/run/$name.pid"
Xcommand="/usr/sbin/daemon"
Xcommand_args="-c -f -p $pidfile %%PREFIX%%/bin/fbsdmon"
X
Xload_rc_config "$name"
X: ${fbsdmon_enable="NO"}
X
Xrun_rc_command "$1"
2af86b55ce865bc08eb1e229290f020c
echo x - sysutils/fbsdmon/pkg-plist
sed 's/^X//' >sysutils/fbsdmon/pkg-plist << '0e326c3b8991ebaa9ac5397959328ccc'
Xbin/fbsdmon
Xetc/periodic/weekly/600.fbsdmon
X@dirrmtry etc/periodic/weekly
X@dirrmtry etc/periodic
0e326c3b8991ebaa9ac5397959328ccc
echo x - sysutils/fbsdmon/distinfo
sed 's/^X//' >sysutils/fbsdmon/distinfo << '297da17a18c6aa637ac9f3492732d552'
XSHA256 (fbsdmon-0.90.tar.gz) = 5143eb51b241bef6c30e26a5fac54308ca36db76b865da208f33edab92c13b78
XSIZE (fbsdmon-0.90.tar.gz) = 3692
297da17a18c6aa637ac9f3492732d552
echo x - sysutils/fbsdmon/Makefile
sed 's/^X//' >sysutils/fbsdmon/Makefile << '3dd477cf693ae2825024c9333b97f987'
X# New ports collection makefile for:	fbsdmon
X# Date created:		21 January 2012
X# Whom:			Grzegorz Blach <magik@roorback.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fbsdmon
XPORTVERSION=	0.90
XCATEGORIES=	sysutils
XMASTER_SITES=	http://files.roorback.net/
X
XMAINTAINER=	magik@roorback.net
XCOMMENT=	Sumbit system and ports statistics to fbsdmon.org
X
XLIB_DEPENDS=	jansson.6:${PORTSDIR}/devel/jansson \
X		curl.6:${PORTSDIR}/ftp/curl
X
XUSE_RC_SUBR=	fbsdmon
XSUB_FILES=	600.fbsdmon pkg-message
X
Xdo-install:
X	${INSTALL} -m 755 ${WRKSRC}/fbsdmon ${PREFIX}/bin
X	${MKDIR} /var/db/fbsdmon
X	${MKDIR} ${PREFIX}/etc/periodic/weekly
X	${INSTALL_SCRIPT} ${WRKDIR}/600.fbsdmon ${PREFIX}/etc/periodic/weekly
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
3dd477cf693ae2825024c9333b97f987
echo x - sysutils/fbsdmon/pkg-descr
sed 's/^X//' >sysutils/fbsdmon/pkg-descr << '2d4562fa1300929945cd63cfc4d3d868'
XSubmit system and ports statistics to fbsdmon.org.
X
XStatistics can be sent from command line, from rc script
Xor from periodic script.
X
XWWW: http://fbsdmon.org/
2d4562fa1300929945cd63cfc4d3d868
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201291910.q0TJA2JQ035607>