#
PORTNAME= fbsdmon
PORTVERSION= 0.90
PORTVERSION= 0.91
PORTREVISION= 1
CATEGORIES= ports-mgmt sysutils
MASTER_SITES= http://files.roorback.net/
SHA256 (fbsdmon-0.90.tar.gz) = 5143eb51b241bef6c30e26a5fac54308ca36db76b865da208f33edab92c13b78
SHA256 (fbsdmon-0.91.tar.gz) = 3ae83e7e3a73ff363095edbbbcecad037e14c0ce3128b6e4e891ec579b63b419
SIZE (fbsdmon-0.90.tar.gz) = 3692
SIZE (fbsdmon-0.91.tar.gz) = 3607
echo ""
echo "Sending statistic to fbsdmon.org"
%%PREFIX%%/sbin/fbsdmon
%%PREFIX%%/sbin/fbsdmon -D -s
rc=$?;;
*) rc=0;;
load_rc_config "$name"
: ${fbsdmon_enable="NO"}
pidfile="/var/run/$name.pid"
command="%%PREFIX%%/sbin/$name"
procname="%%PREFIX%%/sbin/$name"
command_args="-D"
command="/usr/sbin/daemon"
command_args="-c -f -p $pidfile $procname"
stop_postcmd="/bin/rm -f $pidfile"
run_rc_command "$1"
--- ./src/io.c.orig 2012-01-30 12:34:26.000000000 -0800
+++ ./src/io.c 2012-01-30 12:34:36.000000000 -0800
@@ -47,7 +47,7 @@
extern char* gz_data(char *data)
{
char *fn = strdup("/tmp/fbsdmon.XXXXXX");
- mktemp(fn);
+ mkstemp(fn);
gzFile *gz = gzopen(fn, "wb");
gzputs(gz, data);