aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bkpupsd
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/bkpupsd')
-rw-r--r--sysutils/bkpupsd/Makefile18
-rw-r--r--sysutils/bkpupsd/distinfo1
-rw-r--r--sysutils/bkpupsd/files/patch-aa37
-rw-r--r--sysutils/bkpupsd/pkg-comment1
-rw-r--r--sysutils/bkpupsd/pkg-descr11
-rw-r--r--sysutils/bkpupsd/pkg-plist7
6 files changed, 75 insertions, 0 deletions
diff --git a/sysutils/bkpupsd/Makefile b/sysutils/bkpupsd/Makefile
new file mode 100644
index 000000000000..27480fd822c5
--- /dev/null
+++ b/sysutils/bkpupsd/Makefile
@@ -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>
diff --git a/sysutils/bkpupsd/distinfo b/sysutils/bkpupsd/distinfo
new file mode 100644
index 000000000000..b61b846933fd
--- /dev/null
+++ b/sysutils/bkpupsd/distinfo
@@ -0,0 +1 @@
+MD5 (bkpupsd-1.0a.tar.gz) = 2aa494d1da2e0911c2674735ed9ec002
diff --git a/sysutils/bkpupsd/files/patch-aa b/sysutils/bkpupsd/files/patch-aa
new file mode 100644
index 000000000000..3b903e7bfb85
--- /dev/null
+++ b/sysutils/bkpupsd/files/patch-aa
@@ -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}
diff --git a/sysutils/bkpupsd/pkg-comment b/sysutils/bkpupsd/pkg-comment
new file mode 100644
index 000000000000..0b0e4c595846
--- /dev/null
+++ b/sysutils/bkpupsd/pkg-comment
@@ -0,0 +1 @@
+A simple UPS daemon for APC BK Pro(TM)
diff --git a/sysutils/bkpupsd/pkg-descr b/sysutils/bkpupsd/pkg-descr
new file mode 100644
index 000000000000..12c792eee232
--- /dev/null
+++ b/sysutils/bkpupsd/pkg-descr
@@ -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
diff --git a/sysutils/bkpupsd/pkg-plist b/sysutils/bkpupsd/pkg-plist
new file mode 100644
index 000000000000..f19eddbb5107
--- /dev/null
+++ b/sysutils/bkpupsd/pkg-plist
@@ -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