8005714669
We already have sysutils/apc-upsd which hasn't been maintained upstream in >10 years, which I intend to rm unless there are objections. From maintainer Kirill Bychkov with various input from myself. Apcupsd can be used for power mangement and controlling most of APC's UPS models. Apcupsd works with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates.
28 lines
770 B
Plaintext
28 lines
770 B
Plaintext
$OpenBSD: patch-platforms_openbsd_Makefile,v 1.1.1.1 2010/05/25 21:56:33 sthen Exp $
|
|
--- platforms/openbsd/Makefile.orig Sun Jun 1 22:57:55 2008
|
|
+++ platforms/openbsd/Makefile Sun May 16 15:25:58 2010
|
|
@@ -5,8 +5,12 @@ include $(topdir)/autoconf/targets.mak
|
|
|
|
all-install: install-openbsd
|
|
all-uninstall: uninstall-openbsd
|
|
-
|
|
+
|
|
install-openbsd:
|
|
+ $(call MKDIR,$(sbindir))
|
|
+ $(call INSTPROG,744,apcupsd,$(sbindir)/apcupsctl)
|
|
+
|
|
+xx-install-openbsd:
|
|
$(call DISTINST,OpenBSD)
|
|
$(call MKDIR,/etc)
|
|
$(call INSTPROG,744,apcupsd,/etc/rc.apcupsd)
|
|
@@ -48,6 +52,9 @@ install-openbsd:
|
|
fi
|
|
|
|
uninstall-openbsd:
|
|
+ $(call UNINST,$(sbindir)/apcupsctl)
|
|
+
|
|
+xx-uninstall-openbsd:
|
|
$(call DISTUNINST,OpenBSD)
|
|
-$(call UNINST,/etc/rc.apcupsd)
|
|
$(VV)-today="`date +%Y%m%d%H%M`"; \
|