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 --- Makefile 22 Feb 2019 16:43:27 -0000 1.517 +++ Makefile 12 Mar 2019 01:30:39 -0000 @@ -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 -0000 1.20 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -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 <bsd.port.mk> Index: upsd/distinfo =================================================================== RCS file: upsd/distinfo diff -N upsd/distinfo --- upsd/distinfo 18 Jan 2015 03:15:16 -0000 1.4 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -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 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -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_c 5 Aug 2002 02:25:30 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -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 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -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: 0}}, - {SMART_WAKEUPBCAP, {number: 10}}, -+ {SMART_WAKEUPBCAP, {number: 15}}, - {SMART_WAKEUPBCAP, {number: 25}}, -+ {SMART_WAKEUPBCAP, {number: 50}}, - {SMART_WAKEUPBCAP, {number: 90}}, - {SMART_WAKEUPBCAP, {number: 100}}, - Index: upsd/patches/patch-config_h =================================================================== RCS file: upsd/patches/patch-config_h diff -N upsd/patches/patch-config_h --- upsd/patches/patch-config_h 5 Aug 2002 02:25:30 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-config_h,v 1.1 2002/08/05 02:25:30 kevlo Exp $ ---- config.h.orig Mon Aug 5 09:56:46 2002 -+++ config.h Mon Aug 5 09:57:07 2002 -@@ -8,7 +8,7 @@ - */ - - #ifndef DEBUG --#define _PATH_UPSD_CONF "/etc/upsd.conf" -+#define _PATH_UPSD_CONF "%%SYSCONFDIR%%/upsd.conf" - #define _PATH_UPSD_PID "/var/run/upsd.pid" - #else - #define _PATH_UPSD_CONF "sample/upsd.conf" Index: upsd/patches/patch-misc_c =================================================================== RCS file: upsd/patches/patch-misc_c diff -N upsd/patches/patch-misc_c --- upsd/patches/patch-misc_c 24 May 2010 22:08:11 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-misc_c,v 1.1 2010/05/24 22:08:11 espie Exp $ ---- misc.c.orig Tue May 25 00:03:48 2010 -+++ misc.c Tue May 25 00:04:23 2010 -@@ -105,7 +105,7 @@ whereid(id, list, size) - if(((struct ident *)list)->id == 0) { - return NULL; - } -- (char *)list += size; -+ list = (char *)list + size; - } - return list; - } -@@ -122,7 +122,7 @@ wherename(name, list, size) - register void *list; - register size_t size; - { -- for(;((struct ident *)list)->id != 0;(char *)list += size) { -+ for(;((struct ident *)list)->id != 0;list = (char *)list + size) { - if(((struct ident *)list)->name == name) { - return list; - } Index: upsd/patches/patch-sample_upsd_conf =================================================================== RCS file: upsd/patches/patch-sample_upsd_conf diff -N upsd/patches/patch-sample_upsd_conf --- upsd/patches/patch-sample_upsd_conf 5 Aug 2002 02:25:30 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-sample_upsd_conf,v 1.1 2002/08/05 02:25:30 kevlo Exp $ ---- sample/upsd.conf.orig Fri Aug 2 20:15:42 1996 -+++ sample/upsd.conf Mon Aug 5 10:01:35 2002 -@@ -7,7 +7,7 @@ - # - - ups "smart-ups" (230) proto "apc-smart" { -- device "/dev/cuaa0" -+ device "/dev/cua00" - speed 2400 - read-timeout 2 - write-block-size 1 Index: upsd/patches/patch-upsd_h =================================================================== RCS file: upsd/patches/patch-upsd_h diff -N upsd/patches/patch-upsd_h --- upsd/patches/patch-upsd_h 5 Aug 2002 02:25:30 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,10 +0,0 @@ -$OpenBSD: patch-upsd_h,v 1.1 2002/08/05 02:25:30 kevlo Exp $ ---- upsd.h.orig Fri Aug 2 21:44:25 1996 -+++ upsd.h Mon Aug 5 10:01:35 2002 -@@ -206,5 +206,5 @@ struct message { - - #define TERMINATE kill(getpid(), SIGTERM) - --#include "config.h" -+#include "conf.h" - #include "proto.h" Index: upsd/pkg/DESCR =================================================================== RCS file: upsd/pkg/DESCR diff -N upsd/pkg/DESCR --- upsd/pkg/DESCR 22 Nov 1999 04:08:05 -0000 1.1.1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,3 +0,0 @@ -upsd is a daemon with flexible configuration which lets you to -shutdown your system properly when source power line fails and -measure its frequency, voltage etc Index: upsd/pkg/PLIST =================================================================== RCS file: upsd/pkg/PLIST diff -N upsd/pkg/PLIST --- upsd/pkg/PLIST 24 Sep 2004 09:42:39 -0000 1.9 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,6 +0,0 @@ -@comment $OpenBSD: PLIST,v 1.9 2004/09/24 09:42:39 espie Exp $ -@conflict nut-* -sbin/upsd -share/examples/upsd/ -share/examples/upsd/upsd.conf-sample -@sample ${SYSCONFDIR}/upsd.conf