nut: specify pid path during build
authorMatt Merhar <redacted>
Fri, 23 Aug 2024 19:21:41 +0000 (15:21 -0400)
committerRosen Penev <redacted>
Wed, 2 Oct 2024 20:26:36 +0000 (13:26 -0700)
nut was recently upgraded to 2.8.1 which includes a change in
configure.ac that uses /run for the pidfile if it exists during build.

Explicitly specify --with-pidpath to use the path that was used with
2.8.0 and prior.

The symptom here was that there'd be leftover processes when nut-monitor
was restarted.

Fixes: 82f36e0c781d ("nut: update to 2.8.1")
Fixes: https://github.com/openwrt/packages/issues/24106
Signed-off-by: Matt Merhar <redacted>
net/nut/Makefile

index a1834cc9286be2d12590b7a0170fca1190d8e78c..7181832b2da5b106cb60a1ed6c3e28d79a41fa82 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nut
 PKG_VERSION:=2.8.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.8/
@@ -546,6 +546,7 @@ CONFIGURE_ARGS += \
        --without-libltdl \
        --without-macosx_ups \
        --with-statepath=/var/run/nut \
+       --with-pidpath=/var/run \
        --with-drvpath=/lib/nut \
        --with-user=root \
        --with-group=root \
git clone https://git.99rst.org/PROJECT