summaryrefslogtreecommitdiff
path: root/sysutils/bkpupsd
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2005-01-04 13:37:30 +0000
committertaca <taca@pkgsrc.org>2005-01-04 13:37:30 +0000
commit983b129ac54ead29c1951a483dfeab4ca48325a9 (patch)
tree2d8c6a82f02fe8d5e7301fc1890191c13566f82d /sysutils/bkpupsd
parent21a125b2de4b1c7045b9c8945195793fe5da1c9f (diff)
downloadpkgsrc-983b129ac54ead29c1951a483dfeab4ca48325a9.tar.gz
- make lines of MESSAGE shorter.
- Cast (void *) second argument to cgetent(3) to compile on NetBSD current and prior. - Remove blank line of manual page.
Diffstat (limited to 'sysutils/bkpupsd')
-rw-r--r--sysutils/bkpupsd/MESSAGE5
-rw-r--r--sysutils/bkpupsd/Makefile4
-rw-r--r--sysutils/bkpupsd/distinfo5
-rw-r--r--sysutils/bkpupsd/patches/patch-ac22
-rw-r--r--sysutils/bkpupsd/patches/patch-ad25
5 files changed, 41 insertions, 20 deletions
diff --git a/sysutils/bkpupsd/MESSAGE b/sysutils/bkpupsd/MESSAGE
index 779c6c13b00..497895e937b 100644
--- a/sysutils/bkpupsd/MESSAGE
+++ b/sysutils/bkpupsd/MESSAGE
@@ -1,12 +1,13 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.5 2004/10/11 22:14:51 reed Exp $
+$NetBSD: MESSAGE,v 1.6 2005/01/04 13:37:30 taca Exp $
${DOCDIR}/rc.conf.d.sample contains some shell variables
for helping bkpupsd start up.
Simple way to install NetBSD 1.5 or later is below.
-(1) Copy ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/bkpupsd to ${RCD_SCRIPTS_DIR}/rc.d/bkpupsd.
+(1) Copy ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/bkpupsd to
+ ${RCD_SCRIPTS_DIR}/rc.d/bkpupsd.
(2) Append ${DOCDIR}/rc.conf.d.sample to /etc/rc.conf.
(3) Edit /etc/rc.conf for your needs, serial device and UPS type for
example.
diff --git a/sysutils/bkpupsd/Makefile b/sysutils/bkpupsd/Makefile
index 9235f0a7093..83524256e6c 100644
--- a/sysutils/bkpupsd/Makefile
+++ b/sysutils/bkpupsd/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2004/12/31 14:36:57 taca Exp $
+# $NetBSD: Makefile,v 1.15 2005/01/04 13:37:30 taca Exp $
#
DISTNAME= bkpupsd-2.1.2
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.jone-system.com/pub/misc/ \
ftp://ftp.back-street.net/pub/misc/
diff --git a/sysutils/bkpupsd/distinfo b/sysutils/bkpupsd/distinfo
index 42944b83063..2f3e63adfa2 100644
--- a/sysutils/bkpupsd/distinfo
+++ b/sysutils/bkpupsd/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.9 2004/12/31 14:36:57 taca Exp $
+$NetBSD: distinfo,v 1.10 2005/01/04 13:37:30 taca Exp $
SHA1 (bkpupsd-2.1.2.tar.bz2) = 742e6d7bc99c777077b9e0cc8cf6016fc63d18a6
Size (bkpupsd-2.1.2.tar.bz2) = 35054 bytes
SHA1 (patch-aa) = 887254791ec11c45c9acca5d3250ca43dd47c4ee
SHA1 (patch-ab) = 60d5d9e1e26df8cb12c6ab26709e488c113e741f
-SHA1 (patch-ac) = 59401c70175ed9c71350053bca827505a8f4bc51
+SHA1 (patch-ac) = 07b68a843f6369addaebb2ad1bb24684a734ab84
+SHA1 (patch-ad) = d1b146b6b2aa804bdb4d5e660f0fe797311a3a09
diff --git a/sysutils/bkpupsd/patches/patch-ac b/sysutils/bkpupsd/patches/patch-ac
index 896477bf0b0..b85b350bfdc 100644
--- a/sysutils/bkpupsd/patches/patch-ac
+++ b/sysutils/bkpupsd/patches/patch-ac
@@ -1,19 +1,13 @@
-$NetBSD: patch-ac,v 1.1 2004/12/31 14:36:57 taca Exp $
+$NetBSD: patch-ac,v 1.2 2005/01/04 13:37:31 taca Exp $
--- src/ups.c.orig 2003-01-21 20:49:06.000000000 +0900
+++ src/ups.c
-@@ -90,11 +90,11 @@ ups_new(name, device, timeout, grace)
- int timeout;
- int grace;
- {
-- static char *file[] = { UPSTAB,
-+ static const char *file[] = { UPSTAB,
- #ifdef DEBUG
-- "upstab",
-+ "upstab",
- #endif
-- NULL, };
-+ NULL, };
- char *ups_cap;
+@@ -99,7 +99,7 @@ ups_new(name, device, timeout, grace)
UPS ups;
char *s, *how;
+
+- if (cgetent(&ups_cap, file, name) != 0) {
++ if (cgetent(&ups_cap, (void *)file, name) != 0) {
+ perror("ups_new: can't read upstab");
+ return NULL;
+ }
diff --git a/sysutils/bkpupsd/patches/patch-ad b/sysutils/bkpupsd/patches/patch-ad
new file mode 100644
index 00000000000..2cb944e7a85
--- /dev/null
+++ b/sysutils/bkpupsd/patches/patch-ad
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1 2005/01/04 13:37:31 taca Exp $
+
+--- src/bkpupsd.8.in.orig 2002-12-22 02:42:01.000000000 +0900
++++ src/bkpupsd.8.in
+@@ -62,7 +62,6 @@ section.
+ For FREQUPS,
+ the bundled cable is tested to work and dip switch #2 of FREQUPS
+ must be set to on.
+-
+ Other type cables aren't tested at all.
+ Current specifications cable are follows:
+ .Bl -tag -width -flag
+@@ -81,12 +80,10 @@ signal.
+ starts with ups name specified in the
+ .Xr upstab 5
+ file on startup, and read parameter for corresponding ups.
+-
+ Then
+ .Nm
+ opens the serial port specified with command line option, and sets its
+ status if needed.
+-
+ .Pp
+ .Nm
+ checks the serial port, changing of modem control bits periodcally.