mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
14884c8d14
- Do not delete modified config files on uninstall [2] - Reduce filesystem hierarchy pollution by moving $PREFIX/var/{run,lib}/* to /var/run (PID file) and /var/db/collectd (default location of databases) [2] - Add an rc script [2] - Optionally install collection.cgi from contrib/ [2] - Fix WITH_APACHE dependencies and plist [1] - Fix WITH_XMMS and WITH_INTERFACE dependencies [2] - fixes for depends, plist, ... [3] PR: ports/122791 [1], ports/123367 [2] Submitted by: Daniel Roethlisberger [1],[2], itetcu@ (me) [3] Approved by: Matt Peterson (former maintainer) [2]
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
@stopdaemon collectd
|
|
sbin/collectd
|
|
@unexec if cmp -s %D/etc/collectd.conf.sample %D/etc/collectd.conf; then rm -f %D/etc/collectd.conf; fi
|
|
etc/collectd.conf.sample
|
|
@exec if [ ! -f %B/collectd.conf ] ; then cp -p %B/%f %B/collectd.conf; fi
|
|
%%CGI%%%%WWWDIR%%/collection.cgi
|
|
%%CGI%%@unexec if cmp -s %B/collection.conf.sample %B/collection.conf; then rm -f %B/collection.conf; fi
|
|
%%CGI%%%%WWWDIR%%/collection.conf.sample
|
|
%%CGI%%@exec if [ ! -f %B/collection.conf ] ; then cp -p %B/%f %B/collection.conf; fi
|
|
%%CGI%%@dirrmtry %%WWWDIR%%
|
|
bin/collectd-nagios
|
|
lib/collectd/types.db
|
|
%%APACHE%%lib/collectd/apache.la
|
|
%%APACHE%%lib/collectd/apache.so
|
|
%%APCUPS%%lib/collectd/apcups.la
|
|
%%APCUPS%%lib/collectd/apcups.so
|
|
lib/collectd/cpu.la
|
|
lib/collectd/cpu.so
|
|
lib/collectd/csv.la
|
|
lib/collectd/csv.so
|
|
lib/collectd/df.la
|
|
lib/collectd/df.so
|
|
lib/collectd/dns.la
|
|
lib/collectd/dns.so
|
|
lib/collectd/email.la
|
|
lib/collectd/email.so
|
|
lib/collectd/exec.la
|
|
lib/collectd/exec.so
|
|
%%INTERFACE%%lib/collectd/interface.la
|
|
%%INTERFACE%%lib/collectd/interface.so
|
|
lib/collectd/load.la
|
|
lib/collectd/load.so
|
|
lib/collectd/logfile.la
|
|
lib/collectd/logfile.so
|
|
%%MBMON%%lib/collectd/mbmon.la
|
|
%%MBMON%%lib/collectd/mbmon.so
|
|
lib/collectd/memory.la
|
|
lib/collectd/memory.so
|
|
%%MYSQL%%lib/collectd/mysql.la
|
|
%%MYSQL%%lib/collectd/mysql.so
|
|
lib/collectd/network.la
|
|
lib/collectd/network.so
|
|
lib/collectd/ntpd.la
|
|
lib/collectd/ntpd.so
|
|
%%PING%%lib/collectd/ping.la
|
|
%%PING%%lib/collectd/ping.so
|
|
%%RRD%%lib/collectd/rrdtool.la
|
|
%%RRD%%lib/collectd/rrdtool.so
|
|
%%SNMP%%lib/collectd/snmp.la
|
|
%%SNMP%%lib/collectd/snmp.so
|
|
lib/collectd/swap.la
|
|
lib/collectd/swap.so
|
|
lib/collectd/syslog.la
|
|
lib/collectd/syslog.so
|
|
lib/collectd/unixsock.la
|
|
lib/collectd/unixsock.so
|
|
%%XMMS%%lib/collectd/xmms.la
|
|
%%XMMS%%lib/collectd/xmms.so
|
|
@dirrm lib/collectd
|
|
@exec mkdir -p /var/db/collectd
|
|
@unexec rmdir /var/db/collectd 2>/dev/null || true
|