Subject: [PATCH] main/apcupsd: add libusb dependency

From: Wolf <[email-masked]>
Date: Thu, 25 Nov 2021 02:42:54 +0100

---

Under 3.15 apcupsd fails to start unless libusb package is manually
installed:

# rc-service apcupsd start
 * Starting APC UPS daemon ...
/sbin/apcupsd: error while loading libusb-1.0.so.0 from libusb-0.1.so.4: Error loading shared library libusb-1.0.so.0: No such file or directory
 * start-stop-daemon: failed to start `/sbin/apcupsd'                                                                                                                                    [ !! ]
 * ERROR: apcupsd failed to start

This should probably be backported to 3.15 as well. No idea how to send
patches against that.

 main/apcupsd/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/apcupsd/APKBUILD b/main/apcupsd/APKBUILD
index fda125aa29..dbf8562b24 100644
--- a/main/apcupsd/APKBUILD
+++ b/main/apcupsd/APKBUILD
@@ -1,13 +1,13 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=apcupsd
 pkgver=3.14.14
-pkgrel=2
+pkgrel=3
 pkgdesc="A Daemon to control APC UPSes"
 subpackages="$pkgname-doc $pkgname-webif $pkgname-openrc"
 url="http://www.apcupsd.org"
 arch="all"
 license="GPL-2.0-only"
-depends="util-linux"
+depends="util-linux libusb"
 makedepends="net-snmp-dev linux-headers gd-dev libusb-compat-dev"
 options="!check" # no test suite included
 source="https://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/$pkgver/apcupsd-$pkgver.tar.gz
-- 
2.33.1