aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nut-devel
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-01-23 14:55:15 +0000
committerCy Schubert <cy@FreeBSD.org>2023-01-23 16:31:29 +0000
commit48b7e2243a83011bce087ffb12932579312d0aa3 (patch)
tree5d7597cf896bb5dc4ef3f9a4e635c5ee05a6ae92 /sysutils/nut-devel
parente5c98e35692008f9633e768e2875d93b9dc93a25 (diff)
downloadports-48b7e2243a83011bce087ffb12932579312d0aa3.tar.gz
ports-48b7e2243a83011bce087ffb12932579312d0aa3.zip
sysutils/nut*: Fix group for serial UPS users.
02c038c8cc15, though more secure, broke access to serial devices for users of serial UPS devices. Add the nut user to the dialer group. PR: 268960 Reported by: vvd@unislabs.com Fixes: 02c038c8cc15
Diffstat (limited to 'sysutils/nut-devel')
-rw-r--r--sysutils/nut-devel/Makefile3
-rw-r--r--sysutils/nut-devel/pkg-post-install3
2 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile
index 731a7c051dfb..5b409978fb31 100644
--- a/sysutils/nut-devel/Makefile
+++ b/sysutils/nut-devel/Makefile
@@ -1,5 +1,6 @@
PORTNAME= nut
PORTVERSION= ${NUT_COMMIT_DATE}
+PORTREVISION= 1
CATEGORIES= sysutils
PKGNAMESUFFIX= -devel
# MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
@@ -30,7 +31,7 @@ USE_LDCONFIG= yes
NUT_USER?= nut
NUT_GROUP?= nut
USERS= ${NUT_USER}
-GROUPS= ${NUT_GROUP}
+GROUPS= ${NUT_GROUP} dialer
STATEDIR?= /var/db/nut
PLIST_SUB+= NUT_USER=${NUT_USER}
PLIST_SUB+= NUT_GROUP=${NUT_GROUP}
diff --git a/sysutils/nut-devel/pkg-post-install b/sysutils/nut-devel/pkg-post-install
new file mode 100644
index 000000000000..deb31a4e6b00
--- /dev/null
+++ b/sysutils/nut-devel/pkg-post-install
@@ -0,0 +1,3 @@
+#!/bin/sh -
+
+pw groupmod -n dialer -m nut