aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bkpupsd
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-02-27 08:43:36 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-02-27 08:43:36 +0000
commit9d3619961ec4505fe1322822a9878abbf07954cf (patch)
tree7b558d8db876bbb71f663d78209e5e115b3545fb /sysutils/bkpupsd
parent72000055b75b547d37b5c03206e8e9d859b8c6ca (diff)
downloadports-9d3619961ec4505fe1322822a9878abbf07954cf.tar.gz
ports-9d3619961ec4505fe1322822a9878abbf07954cf.zip
Notes
Diffstat (limited to 'sysutils/bkpupsd')
-rw-r--r--sysutils/bkpupsd/Makefile8
-rw-r--r--sysutils/bkpupsd/files/patch-ab12
2 files changed, 10 insertions, 10 deletions
diff --git a/sysutils/bkpupsd/Makefile b/sysutils/bkpupsd/Makefile
index 6a6ea714e266..e1b1a0751db4 100644
--- a/sysutils/bkpupsd/Makefile
+++ b/sysutils/bkpupsd/Makefile
@@ -15,10 +15,4 @@ COMMENT= A simple UPS daemon for APC BK Pro(TM)
MAN8= bkpupsd.8
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile due to deprecation of varargs.h"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/bkpupsd/files/patch-ab b/sysutils/bkpupsd/files/patch-ab
index e268580b07ed..3fd2e48e1d68 100644
--- a/sysutils/bkpupsd/files/patch-ab
+++ b/sysutils/bkpupsd/files/patch-ab
@@ -1,6 +1,6 @@
---- src/bkpupsd.c.old Wed Aug 4 13:45:10 1999
-+++ src/bkpupsd.c Wed Aug 4 13:55:24 1999
-@@ -27,9 +27,12 @@
+--- src/bkpupsd.c.orig Sun Aug 3 13:11:23 1997
++++ src/bkpupsd.c Thu Feb 26 17:17:09 2004
+@@ -27,14 +27,17 @@
*/
#include <stdio.h>
@@ -13,6 +13,12 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <signal.h>
+ #include <syslog.h>
+-#include <varargs.h>
++#include <stdarg.h>
+
+ #define POWER_TIMEOUT 5*60
+ #define DEFAULT_PORT "/dev/cuaa1"
@@ -44,16 +47,16 @@
#define SH_RESTORED "/usr/local/libexec/bkpupsd/bkpups.restored"
#define SH_BATTLOW "/usr/local/libexec/bkpupsd/bkpups.battlow"