Hi,
upsd hasn't had any updates since it was imported nearly 20 years ago.
No homepage or master_sites either, and packages aren't built due to
restrictive PERMIT_*.
It doesn't seem sensible to keep this around, if apcupsd (for example)
serves the same purpose without the issues.
ok to remove this?
Index: Makefile
===
RCS file: /cvs/ports/sysutils/Makefile,v
retrieving revision 1.517
diff -u -p -r1.517 Makefile
--- Makefile22 Feb 2019 16:43:27 - 1.517
+++ Makefile12 Mar 2019 01:30:39 -
@@ -363,7 +363,6 @@
SUBDIR += udfclient
SUBDIR += upower
SUBDIR += upobsd
- SUBDIR += upsd
SUBDIR += upt
SUBDIR += uptimed
SUBDIR += usbutil
Index: upsd/Makefile
===
RCS file: upsd/Makefile
diff -N upsd/Makefile
--- upsd/Makefile 21 Jan 2015 06:23:35 - 1.20
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,27 +0,0 @@
-# $OpenBSD: Makefile,v 1.20 2015/01/21 06:23:35 bentley Exp $
-
-COMMENT= APC Smart UPS Monitoring Daemon
-
-DISTNAME= upsd-2.0.1.6
-CATEGORIES=sysutils
-REVISION = 0
-
-PERMIT_PACKAGE_CDROM= missing license
-PERMIT_PACKAGE_FTP=missing license
-PERMIT_DISTFILES_FTP= Yes
-WANTLIB= c
-
-WRKDIST= ${WRKDIR}/${DISTNAME:C,\.[0-9]+\.[0-9]+$,,}
-
-pre-build:
- @perl -pi -e 's:%%SYSCONFDIR%%:${SYSCONFDIR}:' \
- ${WRKSRC}/config.h
- @mv ${WRKSRC}/config.h ${WRKSRC}/conf.h.orig
- @sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig >
${WRKSRC}/conf.h
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKBUILD}/upsd ${PREFIX}/sbin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/upsd
- ${INSTALL_DATA} ${WRKSRC}/sample/upsd.conf
${PREFIX}/share/examples/upsd/upsd.conf-sample
-
-.include
Index: upsd/distinfo
===
RCS file: upsd/distinfo
diff -N upsd/distinfo
--- upsd/distinfo 18 Jan 2015 03:15:16 - 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,2 +0,0 @@
-SHA256 (upsd-2.0.1.6.tar.gz) = 4xEDuaiV+VsbGw9Q0+JaQxV4N0yCGrT4Cm6atF+OOrM=
-SIZE (upsd-2.0.1.6.tar.gz) = 23757
Index: upsd/patches/patch-Makefile
===
RCS file: upsd/patches/patch-Makefile
diff -N upsd/patches/patch-Makefile
--- upsd/patches/patch-Makefile 5 Aug 2002 02:25:30 - 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,13 +0,0 @@
-$OpenBSD: patch-Makefile,v 1.1 2002/08/05 02:25:30 kevlo Exp $
Makefile.orig Fri Aug 2 21:44:24 1996
-+++ Makefile Mon Aug 5 10:01:35 2002
-@@ -8,8 +8,7 @@
-
- PROG= upsd
-
--BINDIR= /usr/local/sbin
--MANDIR= /usr/local/share/man
-+BINDIR= ${PREFIX}/sbin
- NOMAN=noway
-
- #DEBUG= -g -DDEBUG
Index: upsd/patches/patch-apc_c
===
RCS file: upsd/patches/patch-apc_c
diff -N upsd/patches/patch-apc_c
--- upsd/patches/patch-apc_c5 Aug 2002 02:25:30 - 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,18 +0,0 @@
-$OpenBSD: patch-apc_c,v 1.1 2002/08/05 02:25:30 kevlo Exp $
apc.c.orig Fri Aug 2 21:44:22 1996
-+++ apc.c Mon Aug 5 10:01:35 2002
-@@ -164,12 +164,12 @@ apc_tune(val)
- }
- if((r->type & T_TYPE) == T_BINARY) {
- if(!bcmp(v1.val.binary, v0.val.binary,
r->size)) {
-- syslog(LOG_WARNING, "apc_tune: toggle
wraparound");
-+ syslog(LOG_WARNING, "apc_tune: toggle
wraparound register %s", r->name);
- return 1;
- }
- } else {
- if(v1.val.number == v0.val.number) {
-- syslog(LOG_WARNING, "apc_tune: toggle
wraparound");
-+ syslog(LOG_WARNING, "apc_tune: toggle
wraparound register %s", r->name);
- return 1;
- }
- }
Index: upsd/patches/patch-apc_static_c
===
RCS file: upsd/patches/patch-apc_static_c
diff -N upsd/patches/patch-apc_static_c
--- upsd/patches/patch-apc_static_c 24 May 2010 22:08:11 - 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,16 +0,0 @@
-$OpenBSD: patch-apc_static_c,v 1.2 2010/05/24 22:08:11 espie Exp $
apc_static.c.orig Fri Aug 2 23:44:23 1996
-+++ apc_static.c Sat May 22 17:23:37 2010
-@@ -91,9 +91,12 @@ static struct ups_val apc_SmartUPS_230_values[] = {
- {SMART_LOWBATDUR, {number: 7}},
- {SMART_LOWBATDUR, {number: 10}},
-
-+ /* several models accept different values here */
- {SMART_WAKEUPBCAP, {number: