git: 48b7e2243a83 - main - sysutils/nut*: Fix group for serial UPS users.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Jan 2023 16:32:15 UTC
The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=48b7e2243a83011bce087ffb12932579312d0aa3 commit 48b7e2243a83011bce087ffb12932579312d0aa3 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2023-01-23 14:55:15 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2023-01-23 16:31:29 +0000 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 --- sysutils/nut-devel/Makefile | 3 ++- sysutils/nut-devel/pkg-post-install | 3 +++ sysutils/nut/Makefile | 4 ++-- sysutils/nut/pkg-post-install | 3 +++ 4 files changed, 10 insertions(+), 3 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 diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile index 5a23d86a286c..81b4ebea94a9 100644 --- a/sysutils/nut/Makefile +++ b/sysutils/nut/Makefile @@ -1,6 +1,6 @@ PORTNAME= nut PORTVERSION= 2.8.0 -PORTREVISION= 14 +PORTREVISION= 16 CATEGORIES= sysutils MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/ @@ -21,7 +21,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/pkg-post-install b/sysutils/nut/pkg-post-install new file mode 100644 index 000000000000..deb31a4e6b00 --- /dev/null +++ b/sysutils/nut/pkg-post-install @@ -0,0 +1,3 @@ +#!/bin/sh - + +pw groupmod -n dialer -m nut