bkpupsd, a daemon to control the APC Back-UPS Pro series UPS.

PR:		ports/4377
Submitted by:	Yoshifumi Watanabe <mwatts@edu1.tokyo-med.ac.jp>
This commit is contained in:
Bill Fenner 1998-01-28 03:50:52 +00:00
parent 45f539035d
commit 2e23a9ce58
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9484
6 changed files with 75 additions and 0 deletions

18
sysutils/bkpupsd/Makefile Normal file
View file

@ -0,0 +1,18 @@
# New ports collection makefile for: bkpupsd
# Version required: 1.0
# Date created: 26 May 1995
# Whom: Yoshifumi Watanabe <mwatts@edu1.tokyo-med.ac.jp>
#
# $Id$
#
DISTNAME= bkpupsd-1.0a
PKGNAME= bkpupsd-1.0
CATEGORIES= sysutils
MASTER_SITES= ftp://edu1.tokyo-med.ac.jp/pub/contrib/bkpupsd/
MAINTAINER= mwatts@edu1.tokyo-med.ac.jp
MAN8= bkpupsd.8
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (bkpupsd-1.0a.tar.gz) = 2aa494d1da2e0911c2674735ed9ec002

View file

@ -0,0 +1,37 @@
--- Makefile.orig Sun Aug 3 10:02:37 1997
+++ Makefile Tue Jan 27 19:44:58 1998
@@ -5,24 +5,22 @@
# ver 1.0 A
#
-CC= /usr/bin/cc
-SBINDIR= /usr/local/sbin
-MANDIR= /usr/local/man
-SCRIPTDIR= /usr/local/libexec
+#CC= /usr/bin/cc
+SBINDIR= ${PREFIX}/sbin
+MANDIR= ${PREFIX}/man/man8
+SCRIPTDIR= ${PREFIX}/libexec/bkpupsd
all: ./src/bkpupsd.c
${CC} -o ./bin/bkpupsd ./src/bkpupsd.c
install:
- chown root.wheel ./bin/bkpupsd
- chmod 700 ./bin/bkpupsd
- cp ./bin/bkpupsd ${SBINDIR}/bkpupsd
- cp ./doc/bkpupsd.8 ${MANDIR}/man8/bkpupsd.8
- chown root.wheel ./scripts/*
- cp -fR ./scripts ${SCRIPTDIR}/bkpupsd
+ ${BSD_INSTALL_PROGRAM} ./bin/bkpupsd ${SBINDIR}
+ ${BSD_INSTALL_MAN} ./doc/bkpupsd.8 ${MANDIR}
+ mkdir -p ${SCRIPTDIR}
+ (cd scripts; for i in *; do ${BSD_INSTALL_SCRIPT} $$i ${SCRIPTDIR}; done)
clean:
rm -f ./bin/bkpupsd
rm -f ${SBINDIR}/bkpupsd
- rm -f ${MANDIR}/man8/bkpupsd.8
- rm -rf ${SCRIPTDIR}/bkpupsd
+ rm -f ${MANDIR}/bkpupsd.8
+ rm -rf ${SCRIPTDIR}

View file

@ -0,0 +1 @@
A simple UPS daemon for APC BK Pro(TM)

View file

@ -0,0 +1,11 @@
bkpupsd - Back-UPS Pro. UPS daemon
----------------------------------
This is a simple uninterruptible power source (UPS) daemon which
supports APC Back-UPS Pro(TM) series. The UPSd works as UPS driver,
sensing line-failures, shutting down the system cleanly, and finally
shutting down the UPS itself. This UPSd provides only the "dumb mode",
and the advanced features are not supported.
- Yoshifumi Watanabe
mwatts@edu1.tokyo-med.ac.jp

View file

@ -0,0 +1,7 @@
sbin/bkpupsd
libexec/bkpupsd/bkpups.failed
libexec/bkpupsd/bkpups.restored
libexec/bkpupsd/bkpups.shutdown
libexec/bkpupsd/bkpups.battlow
@dirrm libexec/bkpupsd
man/man8/bkpupsd.8.gz