diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-05-06 10:45:17 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2008-05-06 10:45:17 +0000 |
commit | 14884c8d1458ec03e8027ff331aa9415dc6eb138 (patch) | |
tree | 939d77e2acc925b65dad2fe743cac54a245669d5 /net-mgmt/collectd5/files | |
parent | ffbc104093cf5ec1e7da061fbd8418827d62e20c (diff) | |
download | ports-14884c8d1458ec03e8027ff331aa9415dc6eb138.tar.gz ports-14884c8d1458ec03e8027ff331aa9415dc6eb138.zip |
Notes
Diffstat (limited to 'net-mgmt/collectd5/files')
-rw-r--r-- | net-mgmt/collectd5/files/collectd.in | 27 | ||||
-rw-r--r-- | net-mgmt/collectd5/files/patch-src__collectd.h | 20 |
2 files changed, 47 insertions, 0 deletions
diff --git a/net-mgmt/collectd5/files/collectd.in b/net-mgmt/collectd5/files/collectd.in new file mode 100644 index 000000000000..5ec218f3b27e --- /dev/null +++ b/net-mgmt/collectd5/files/collectd.in @@ -0,0 +1,27 @@ +#!/bin/sh + +# PROVIDE: collectd +# REQUIRE: LOGIN +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# collectd_enable (bool): Set to NO by default. +# Set it to YES to enable collectd. +# collectd_flags (string): Set to "" by default. +# Additional flags to collecd, see manual page. +# + +. %%RC_SUBR%% + +name="collectd" +rcvar=${name}_enable + +command=%%PREFIX%%/sbin/${name} + +load_rc_config $name + +: ${collectd_enable="NO"} +: ${collectd_flags=""} + +run_rc_command "$1" diff --git a/net-mgmt/collectd5/files/patch-src__collectd.h b/net-mgmt/collectd5/files/patch-src__collectd.h new file mode 100644 index 000000000000..8058189613b1 --- /dev/null +++ b/net-mgmt/collectd5/files/patch-src__collectd.h @@ -0,0 +1,20 @@ +--- ./src/collectd.h.orig 2007-09-28 17:55:34.000000000 +0300 ++++ ./src/collectd.h 2008-05-06 10:32:08.000000000 +0300 +@@ -183,7 +183,7 @@ + #endif + + #ifndef LOCALSTATEDIR +-#define LOCALSTATEDIR PREFIX "/var" ++#define LOCALSTATEDIR "/var" + #endif + + #ifndef PKGLOCALSTATEDIR +@@ -191,7 +191,7 @@ + #endif + + #ifndef PIDFILE +-#define PIDFILE PREFIX "/var/run/" PACKAGE_NAME ".pid" ++#define PIDFILE "/var/run/" PACKAGE_NAME ".pid" + #endif + + #ifndef PLUGINDIR |