aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/nrg/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-10-18 20:10:43 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-10-18 20:10:43 +0000
commita7fa7eaa32ec408001bf5c503fd7f282c958d688 (patch)
treecbc360d11524480c19921d579cbc06496a50db42 /net-mgmt/nrg/files
parent39f2024b7cd5cc1185e6c0313279fbc0cc40e460 (diff)
downloadports-a7fa7eaa32ec408001bf5c503fd7f282c958d688.tar.gz
ports-a7fa7eaa32ec408001bf5c503fd7f282c958d688.zip
Notes
Diffstat (limited to 'net-mgmt/nrg/files')
-rw-r--r--net-mgmt/nrg/files/nrg-apcupsdstat.patch41
-rw-r--r--net-mgmt/nrg/files/patch-Makefile.in41
-rw-r--r--net-mgmt/nrg/files/patch-examples29
-rw-r--r--net-mgmt/nrg/files/patch-roverpingd-receive.c13
4 files changed, 77 insertions, 47 deletions
diff --git a/net-mgmt/nrg/files/nrg-apcupsdstat.patch b/net-mgmt/nrg/files/nrg-apcupsdstat.patch
index 1ec07df8aaf1..c4b340a18f94 100644
--- a/net-mgmt/nrg/files/nrg-apcupsdstat.patch
+++ b/net-mgmt/nrg/files/nrg-apcupsdstat.patch
@@ -14,7 +14,7 @@
+
+$mode = 'battery';
+$server = 'localhost';
-+$port = '7000';
++$port = '3551';
+$stamp = '0';
+$stat = '0';
+$apcnisclient = "/usr/local/bin/apcnisclient";
@@ -158,25 +158,26 @@
nrg-bindresponse nrg-bindstat nrg-bindstatd \
nrg-cgikeeper nrg-discover-apache nrg-discover-bind \
nrg-discover-errors nrg-discover-ifaces nrg-discover-netdev \
---- configure.orig Fri Jul 23 21:44:13 2004
-+++ configure Fri Jul 23 21:38:18 2004
-@@ -2019,6 +2019,7 @@
- Makefile \
- collectors/nrg-apmstat \
- collectors/nrg-apachestat \
-+ collectors/nrg-apcupsdstat \
- collectors/nrg-bindresponse \
- collectors/nrg-bindstat \
- collectors/nrg-bindstatd \
-@@ -2189,6 +2190,7 @@
- Makefile \
- collectors/nrg-apmstat \
- collectors/nrg-apachestat \
-+ collectors/nrg-apcupsdstat \
- collectors/nrg-bindresponse \
- collectors/nrg-bindstat \
- collectors/nrg-bindstatd \
-@@ -2312,6 +2314,7 @@
+--- configure.orig Fri Aug 5 22:26:55 2005
++++ configure Tue Oct 18 17:18:23 2005
+@@ -3475,7 +3475,7 @@
+
+
+
+- ac_config_files="$ac_config_files Makefile collectors/nrg-apmstat collectors/nrg-apachestat collectors/nrg-bindresponse collectors/nrg-bindstat collectors/nrg-bindstatd collectors/nrg-pingdstat collectors/nrg-sendmailstat collectors/nrg-sendmailstatd collectors/nrg-tcpresponse contrib/dsreport contrib/rrdmerge contrib/rrdtrim contrib/rrdtuner discoverers/nrg-discover-apache discoverers/nrg-discover-bind discoverers/nrg-discover-errors discoverers/nrg-discover-ifaces discoverers/nrg-discover-netdev discoverers/nrg-discover-pingd discoverers/nrg-discover-pvcs discoverers/nrg-discover-sendmail discoverers/nrg-discover-skel discoverers/nrg-discover-snmpd discoverers/nrg-discover-tables discoverers/nrg-discover-tcp etc/run-star-head.pl etc/run-star-tail.pl examples/Default.conf examples/Makefile.ops examples/NRG.mconf roverpingd/Makefile roverpingd/pingd.h src/nrg-runmaker src/nrg-cgikeeper src/nrg-rrdkeeper src/nrg-tablemaker src/nrg-indexmaker src/nrg-autoconf src/mrtg2nrg src/nrg-find-confs src/nrg-spiketrimmer templates/database-mrtg.rrd.tm templates/graph-current.cgi.tm templates/graph-longterm.cgi.tm templates/graph-mrtg.cgi.tm templates/table-df.cgi.tm templates/table-errors.cgi.tm templates/table-ifaces.cgi.tm templates/table-load.cgi.tm templates/table-mem.cgi.tm templates/table-ping-latency.cgi.tm templates/table-ping-loss.cgi.tm templates/table-swap.cgi.tm templates/table-tcp.cgi.tm"
++ ac_config_files="$ac_config_files Makefile collectors/nrg-apmstat collectors/nrg-apachestat collectors/nrg-apcupsdstat collectors/nrg-bindresponse collectors/nrg-bindstat collectors/nrg-bindstatd collectors/nrg-pingdstat collectors/nrg-sendmailstat collectors/nrg-sendmailstatd collectors/nrg-tcpresponse contrib/dsreport contrib/rrdmerge contrib/rrdtrim contrib/rrdtuner discoverers/nrg-discover-apache discoverers/nrg-discover-bind discoverers/nrg-discover-errors discoverers/nrg-discover-ifaces discoverers/nrg-discover-netdev discoverers/nrg-discover-pingd discoverers/nrg-discover-pvcs discoverers/nrg-discover-sendmail discoverers/nrg-discover-skel discoverers/nrg-discover-snmpd discoverers/nrg-discover-tables discoverers/nrg-discover-tcp etc/run-star-head.pl etc/run-star-tail.pl examples/Default.conf examples/Makefile.ops examples/NRG.mconf roverpingd/Makefile roverpingd/pingd.h src/nrg-runmaker src/nrg-cgikeeper src/nrg-rrdkeeper src/nrg-tablemaker src/nrg-indexmaker src/nrg-autoconf src/mrtg2nrg src/nrg-find-confs src/nrg-spiketrimmer templates/database-mrtg.rrd.tm templates/graph-current.cgi.tm templates/graph-longterm.cgi.tm templates/graph-mrtg.cgi.tm templates/table-df.cgi.tm templates/table-errors.cgi.tm templates/table-ifaces.cgi.tm templates/table-load.cgi.tm templates/table-mem.cgi.tm templates/table-ping-latency.cgi.tm templates/table-ping-loss.cgi.tm templates/table-swap.cgi.tm templates/table-tcp.cgi.tm"
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
+ # tests run on this system so they can be shared between configure
+@@ -4028,6 +4028,7 @@
+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "collectors/nrg-apmstat" ) CONFIG_FILES="$CONFIG_FILES collectors/nrg-apmstat" ;;
+ "collectors/nrg-apachestat" ) CONFIG_FILES="$CONFIG_FILES collectors/nrg-apachestat" ;;
++ "collectors/nrg-apcupsdstat" ) CONFIG_FILES="$CONFIG_FILES collectors/nrg-apcupsdstat" ;;
+ "collectors/nrg-bindresponse" ) CONFIG_FILES="$CONFIG_FILES collectors/nrg-bindresponse" ;;
+ "collectors/nrg-bindstat" ) CONFIG_FILES="$CONFIG_FILES collectors/nrg-bindstat" ;;
+ "collectors/nrg-bindstatd" ) CONFIG_FILES="$CONFIG_FILES collectors/nrg-bindstatd" ;;
+@@ -4441,6 +4442,7 @@
for f in \
collectors/nrg-apachestat \
diff --git a/net-mgmt/nrg/files/patch-Makefile.in b/net-mgmt/nrg/files/patch-Makefile.in
new file mode 100644
index 000000000000..95ca0d101fae
--- /dev/null
+++ b/net-mgmt/nrg/files/patch-Makefile.in
@@ -0,0 +1,41 @@
+--- Makefile.in.orig Tue Oct 18 18:10:05 2005
++++ Makefile.in Tue Oct 18 18:10:40 2005
+@@ -112,38 +112,6 @@
+ $(MKINSTALLDIRS) $(ARCHIVE_DIR); \
+ fi
+
+- @if [ ! -f $(prefix)/Makefile ]; then \
+- echo "installing Makefile in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/Makefile.ops $(prefix)/Makefile; \
+- else \
+- echo "installing Makefile.NEW in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/Makefile.ops $(prefix)/Makefile.NEW; \
+- fi
+-
+- @if [ ! -f $(prefix)/Default.conf ]; then \
+- echo "installing Default.conf in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/Default.conf $(prefix)/Default.conf; \
+- else \
+- echo "installing Default.conf.NEW in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/Default.conf $(prefix)/Default.conf.NEW; \
+- fi
+-
+- @if [ ! -f $(prefix)/NRG.mconf ]; then \
+- echo "installing NRG.mconf in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/NRG.mconf $(prefix)/NRG.mconf; \
+- else \
+- echo "installing NRG.mconf.NEW in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/NRG.mconf $(prefix)/NRG.mconf.NEW; \
+- fi
+-
+- @if [ ! -f $(prefix)/Site.mconf ]; then \
+- echo "installing Site.mconf in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/Site.mconf $(prefix)/Site.mconf; \
+- else \
+- echo "installing Site.mconf.NEW in $(prefix)"; \
+- $(INSTALL) -c -m 644 examples/Site.mconf $(prefix)/Site.mconf.NEW; \
+- fi
+-
+ @if [ ! -d $(prefix)/autoconfs ]; then \
+ $(MKINSTALLDIRS) $(prefix)/autoconfs; \
+ fi
diff --git a/net-mgmt/nrg/files/patch-examples b/net-mgmt/nrg/files/patch-examples
index 957a9461e803..af595dc813c8 100644
--- a/net-mgmt/nrg/files/patch-examples
+++ b/net-mgmt/nrg/files/patch-examples
@@ -1,26 +1,27 @@
---- ./examples/Makefile.ops.in.orig Sun Jul 20 20:51:10 2003
-+++ ./examples/Makefile.ops.in Fri Mar 5 18:08:03 2004
-@@ -4,8 +4,8 @@
- # $Id: Makefile.ops.in,v 1.41 2003/07/20 15:16:04 rader Exp $
+--- examples/Makefile.ops.in.orig Tue Oct 18 16:24:17 2005
++++ examples/Makefile.ops.in Tue Oct 18 16:24:49 2005
+@@ -4,9 +4,9 @@
+ # $Id: Makefile.ops.in,v 1.44 2005/04/30 17:28:22 rader Exp $
#
-WEB_PREFIX = /usr/local/web/html
--NRG_WEB_TITLE = "Somesite's NRG Home Page"
+WEB_PREFIX = /usr/local/www/data
+ NRG_WEB_DIR = nrg
+-NRG_WEB_TITLE = "Somesite's NRG Home Page"
+NRG_WEB_TITLE = "FreeBSD NRG Homepage"
MCONF_FILES = NRG.mconf Site.mconf
- NRG_WEB_DIR = nrg
---- examples/Default.conf.in.orig Tue Sep 28 23:28:31 2004
-+++ examples/Default.conf.in Tue Sep 28 23:28:44 2004
+ prefix = @prefix@
+--- examples/Default.conf.in.orig Tue Oct 18 16:37:19 2005
++++ examples/Default.conf.in Tue Oct 18 16:37:39 2005
@@ -224,8 +224,8 @@
- Graph[.*-snmpd-mem$][total_mem_m]: black LINE2
- Graph[.*-snmpd-mem$][used_mem_m]: green AREA
--Graph[.*-snmpd-mem$][cache_mem_m]: d0ffff STACK
--Graph[.*-snmpd-mem$][buff_mem_m]: ffd0ff STACK
+ Graph[.*-snmpd-mem][total_mem_m]: black LINE2
+ Graph[.*-snmpd-mem][used_mem_m]: green AREA
+-Graph[.*-snmpd-mem][cache_mem_m]: d0ffff STACK
+-Graph[.*-snmpd-mem][buff_mem_m]: ffd0ff STACK
+Graph[.*-snmpd-mem$][cache_mem_m]: cyan STACK
+Graph[.*-snmpd-mem$][buff_mem_m]: blue STACK
- Label[.*-snmpd-swap$][used_swp_m]: "used swap "
- Label[.*-snmpd-swap$][total_swp_m]: "total swap"
+ Label[.*-snmpd-swap][used_swp_m]: "used swap "
+ Label[.*-snmpd-swap][total_swp_m]: "total swap"
diff --git a/net-mgmt/nrg/files/patch-roverpingd-receive.c b/net-mgmt/nrg/files/patch-roverpingd-receive.c
deleted file mode 100644
index d1b1df8332ba..000000000000
--- a/net-mgmt/nrg/files/patch-roverpingd-receive.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- roverpingd/receive.c.orig Sun Aug 1 15:55:04 2004
-+++ roverpingd/receive.c Sun Aug 1 15:55:43 2004
-@@ -170,9 +170,7 @@
- #ifdef __DEBUG_DATA_POINTS__
- /* assumes NUM_DATA_POINTS == 20... can't use loop here because */
- /* because it will get interrupted causing disjointed output... */
-- if ( debuggin) { fprintf(stderr,"node %d data...
-- %d %d %d %d %d %d %d %d %d %d
-- %d %d %d %d %d %d %d %d %d %d (next=%d)\n",
-+ if ( debuggin) { fprintf(stderr,"node %d data...\n %d %d %d %d %d %d %d %d %d %d\n %d %d %d %d %d %d %d %d %d %d (next=%d)\n",
- idx,
- ping_list[idx]->n_latency_data[0], ping_list[idx]->n_latency_data[1],
- ping_list[idx]->n_latency_data[2], ping_list[idx]->n_latency_data[3],