pkgsrc/sysutils/apcupsd/patches/patch-aj
taca 4b440744a5 sysutils/apcupsd: update to 3.14.14
Update apcupsd package to 3.14.14.


3.14.14 -- 31 May 2016

BUG FIXES

  * win32: Fix missing DLLs when installing only apctray

  * Fixes for socket error handling. Resolves apcaccess crash when connection
    fails as well as several other theoretical issues.

  * MODBUS/USB error handling (COMMLOST) improvements for faulty USB links

  * Fix hiddev binding when usbfs is mounted on /dev/bus/usb instead of
    /proc/bus/usb. This is necessary for switching between MODBUS/USB and
    USB/HID on Linux.

  * Update GPLv2 text and FSF address to match current versions from FSF.

  * Various fixes for potential issues suggested by Coverity Scan

  * MacOS X port support for El Capitan System Integrity Protection (SIP)
    aka "rootless"

  * Fix shutdown failure on Windows when UPSNAME includes spaces

  * Fix building bsd-usb driver
    (This was broken when modbus-usb support was added.)

FEATURES

  * Add status display for output current as well as apparent power
2020-09-19 13:50:48 +00:00

56 lines
1.3 KiB
Text

$NetBSD: patch-aj,v 1.10 2020/09/19 13:50:48 taca Exp $
* Fix for pkgsrc environment.
* Add Dragonfly support.
* Add apccontrol script on NetBSD.
--- configure.orig 2015-01-04 20:35:43.000000000 +0000
+++ configure
@@ -2266,10 +2266,6 @@ else
if test x$sysconfdir = x'${prefix}/etc' ; then
sysconfdir='/etc/apcupsd'
fi
-
- if test x$sbindir = x'${exec_prefix}/sbin' ; then
- sbindir='/sbin'
- fi
fi
@@ -4062,7 +4058,7 @@ _ACEOF
APCACCESS=apcaccess
-SMTP=smtp
+SMTP=
APCTEST=apctest
@@ -13112,7 +13108,7 @@ then
elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
then
DISTNAME=freebsd
-elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
+elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD || test $HAVE_UNAME=yes -a x`uname -s` = xDragonFly
then
DISTNAME=netbsd
elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
@@ -13243,7 +13239,7 @@ debian)
platforms/debian/apcupsd \
platforms/debian/ups-monitor"
;;
-freebsd)
+freebsd|dragonfly)
DISTVER=`uname -a |awk '{print $3}'`
SERIALDEV=/dev/cuaa0
nologdir=/var/run
@@ -13277,7 +13273,8 @@ netbsd)
PTHREAD_LFLAGS=""
LDFLAGS="$LDFLAGS -pthread"
DFILES="\
- platforms/netbsd/apcupsd"
+ platforms/netbsd/apcupsd \
+ platforms/netbsd/apccontrol"
;;
openbsd)
DISTVER=`uname -a |awk '{print $3}'`