aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nut22/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/nut22/files')
-rw-r--r--sysutils/nut22/files/nut.sh.in44
-rw-r--r--sysutils/nut22/files/nut_upslog.sh.in36
-rw-r--r--sysutils/nut22/files/nut_upsmon.sh.in34
-rw-r--r--sysutils/nut22/files/patch-clients-Makefile.in11
-rw-r--r--sysutils/nut22/files/patch-data-html-Makefile.in20
-rw-r--r--sysutils/nut22/files/patch-include-Makefile.in11
6 files changed, 0 insertions, 156 deletions
diff --git a/sysutils/nut22/files/nut.sh.in b/sysutils/nut22/files/nut.sh.in
deleted file mode 100644
index 9cd40c1430b5..000000000000
--- a/sysutils/nut22/files/nut.sh.in
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: nut
-# REQUIRE: NETWORKING
-# BEFORE: LOGIN
-# KEYWORD: shutdown
-
-# Define these nut_* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/nut
-#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
-nut_enable=${nut_enable-"NO"}
-nut_prefix=${nut_prefix-"%%PREFIX%%"}
-
-. %%RC_SUBR%%
-
-name="nut"
-rcvar=`set_rcvar`
-
-load_rc_config $name
-
-required_dirs="%%STATEDIR%%"
-required_files="${nut_prefix}/etc/nut/ups.conf ${nut_prefix}/etc/nut/upsd.conf ${nut_prefix}/etc/nut/upsd.users"
-command="${nut_prefix}/sbin/upsd"
-pidfile="%%STATEDIR%%/upsd.pid"
-
-start_precmd="nut_prestart"
-stop_postcmd="nut_poststop"
-
-nut_prestart() {
- ${nut_prefix}/libexec/nut/upsdrvctl start
-}
-
-nut_poststop() {
- ${nut_prefix}/libexec/nut/upsdrvctl stop
-}
-
-run_rc_command "$1"
diff --git a/sysutils/nut22/files/nut_upslog.sh.in b/sysutils/nut22/files/nut_upslog.sh.in
deleted file mode 100644
index 908451b9c331..000000000000
--- a/sysutils/nut22/files/nut_upslog.sh.in
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: nut_upslog
-# REQUIRE: NETWORKING nut
-# BEFORE: LOGIN
-# KEYWORD: shutdown
-
-# Define these nut_upslog* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/nut_upslog
-#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
-nut_upslog_enable=${nut_upslog_enable-"NO"}
-nut_upslog_prefix=${nut_upslog_prefix-"%%PREFIX%%"}
-nut_upslog_logfile=${nut_upslog_logfile-"/var/log/ups.log"}
-nut_upslog_interval=${nut_upslog_interval-"300"}
-nut_upslog_ups=${nut_upslog_ups-"myups@localhost"}
-
-. %%RC_SUBR%%
-
-name="nut_upslog"
-rcvar=`set_rcvar`
-
-load_rc_config $name
-
-required_dirs="%%STATEDIR%%"
-command="${nut_upslog_prefix}/bin/upslog"
-pidfile="%%STATEDIR%%/upslog.pid"
-nut_upslog_flags=${nut_upslog_flags-"-s ${nut_upslog_ups} -l ${nut_upslog_logfile} -i ${nut_upslog_interval}"}
-
-run_rc_command "$1"
diff --git a/sysutils/nut22/files/nut_upsmon.sh.in b/sysutils/nut22/files/nut_upsmon.sh.in
deleted file mode 100644
index 5d5449dc3204..000000000000
--- a/sysutils/nut22/files/nut_upsmon.sh.in
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: nut_upsmon
-# REQUIRE: NETWORKING nut
-# BEFORE: LOGIN
-# KEYWORD: shutdown
-
-# Define these nut_upsmon* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/nut_upsmon
-#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
-nut_upsmon_enable=${nut_upsmon_enable-"NO"}
-nut_upsmon_prefix=${nut_upsmon_prefix-"%%PREFIX%%"}
-
-. %%RC_SUBR%%
-
-name="nut_upsmon"
-rcvar=`set_rcvar`
-
-load_rc_config $name
-
-required_dirs="%%STATEDIR%%"
-required_files="${nut_upsmon_prefix}/etc/nut/upsmon.conf"
-command="${nut_upsmon_prefix}/sbin/upsmon"
-pidfile="%%STATEDIR%%/upsmon.pid"
-nut_upsmon_flags=${nut_upsmon_flags-"localhost"}
-
-run_rc_command "$1"
diff --git a/sysutils/nut22/files/patch-clients-Makefile.in b/sysutils/nut22/files/patch-clients-Makefile.in
deleted file mode 100644
index a8fb0585387d..000000000000
--- a/sysutils/nut22/files/patch-clients-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- clients/Makefile.in.orig 2007-07-05 15:21:22.000000000 +0200
-+++ clients/Makefile.in 2007-08-28 15:25:39.000000000 +0200
-@@ -440,7 +440,7 @@
- done
- install-cgiexecPROGRAMS: $(cgiexec_PROGRAMS)
- @$(NORMAL_INSTALL)
-- test -z "$(cgiexecdir)" || $(mkdir_p) "$(DESTDIR)$(cgiexecdir)"
-+ test -z "$(cgiexec_PROGRAMS)" -o -z "$(cgiexecdir)" || $(mkdir_p) "$(DESTDIR)$(cgiexecdir)"
- @list='$(cgiexec_PROGRAMS)'; for p in $$list; do \
- p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- if test -f $$p \
diff --git a/sysutils/nut22/files/patch-data-html-Makefile.in b/sysutils/nut22/files/patch-data-html-Makefile.in
deleted file mode 100644
index 002733026fcf..000000000000
--- a/sysutils/nut22/files/patch-data-html-Makefile.in
+++ /dev/null
@@ -1,20 +0,0 @@
---- data/html/Makefile.in.orig 2007-07-05 15:21:23.000000000 +0200
-+++ data/html/Makefile.in 2007-08-28 15:25:08.000000000 +0200
-@@ -285,7 +285,7 @@
- uninstall-info-am:
- install-dist_htmlDATA: $(dist_html_DATA)
- @$(NORMAL_INSTALL)
-- test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
-+ test -z "$(dist_html_DATA)" -o -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
- @list='$(dist_html_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
-@@ -302,7 +302,7 @@
- done
- install-nodist_htmlDATA: $(nodist_html_DATA)
- @$(NORMAL_INSTALL)
-- test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
-+ test -z "$(nodist_html_DATA)" -o -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
- @list='$(nodist_html_DATA)'; for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f=$(am__strip_dir) \
diff --git a/sysutils/nut22/files/patch-include-Makefile.in b/sysutils/nut22/files/patch-include-Makefile.in
deleted file mode 100644
index ad0ffe555c98..000000000000
--- a/sysutils/nut22/files/patch-include-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- include/Makefile.in.orig 2007-08-28 15:39:22.000000000 +0200
-+++ include/Makefile.in 2007-08-28 15:36:52.000000000 +0200
-@@ -229,7 +229,7 @@
- BUILT_SOURCES = nut_version.h
- CLEANFILES = nut_version.h
- SVNREV = $(shell svnversion -n $(top_srcdir) 2>/dev/null)
--NUT_VERSION = $(shell if test "$(SVNREV)" = "exported"; then echo "$(PACKAGE_VERSION)"; else echo "$(PACKAGE_VERSION)-$(SVNREV)"; fi)
-+NUT_VERSION = $(shell if test "$(SVNREV)" = "exported" -o -z "${SVNREV}"; then echo "$(PACKAGE_VERSION)"; else echo "$(PACKAGE_VERSION)-$(SVNREV)"; fi)
- all: $(BUILT_SOURCES) config.h
- $(MAKE) $(AM_MAKEFLAGS) all-am
-