git: e2630f644fcb - main - sysutils/nut*: Fix syntax error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Feb 2023 20:35:41 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e2630f644fcb41ca2f9cba64a2e4416043b59fda
commit e2630f644fcb41ca2f9cba64a2e4416043b59fda
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-02-14 20:33:59 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-02-14 20:33:59 +0000
sysutils/nut*: Fix syntax error
Add missing then.
PR: 269497
Reported by: <vvd@unislabs.com>
Fixes: 6558c2506990
---
sysutils/nut-devel/Makefile | 2 +-
sysutils/nut-devel/files/nut.in | 2 +-
sysutils/nut/Makefile | 2 +-
sysutils/nut/files/nut.in | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile
index 897c6440da75..f6f5908d9153 100644
--- a/sysutils/nut-devel/Makefile
+++ b/sysutils/nut-devel/Makefile
@@ -1,6 +1,6 @@
PORTNAME= nut
PORTVERSION= ${NUT_COMMIT_DATE}
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= sysutils
PKGNAMESUFFIX= -devel
# MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
diff --git a/sysutils/nut-devel/files/nut.in b/sysutils/nut-devel/files/nut.in
index c9a86debbe32..ac68c0d7649c 100644
--- a/sysutils/nut-devel/files/nut.in
+++ b/sysutils/nut-devel/files/nut.in
@@ -39,7 +39,7 @@ nut_prestart() {
# Instead UID/GID nut is used. Make sure preexisting nut files
# and directories are owned by nut instead of uucp.
#
- if [ "${nut_file_fixup}" == "YES" ]
+ if [ "${nut_file_fixup}" == "YES" ]; then
find ${nut_prefix}/etc/nut -user uucp -exec chown %%NUT_USER%% {} \;
find ${nut_prefix}/etc/nut -group uucp -exec chgrp %%NUT_GROUP%% {} \;
find %%STATEDIR%% -user uucp -exec chown %%NUT_USER%% {} \;
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile
index e017bc4e69af..3dcc437aecb1 100644
--- a/sysutils/nut/Makefile
+++ b/sysutils/nut/Makefile
@@ -1,6 +1,6 @@
PORTNAME= nut
PORTVERSION= 2.8.0
-PORTREVISION= 21
+PORTREVISION= 22
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
diff --git a/sysutils/nut/files/nut.in b/sysutils/nut/files/nut.in
index c9a86debbe32..ac68c0d7649c 100644
--- a/sysutils/nut/files/nut.in
+++ b/sysutils/nut/files/nut.in
@@ -39,7 +39,7 @@ nut_prestart() {
# Instead UID/GID nut is used. Make sure preexisting nut files
# and directories are owned by nut instead of uucp.
#
- if [ "${nut_file_fixup}" == "YES" ]
+ if [ "${nut_file_fixup}" == "YES" ]; then
find ${nut_prefix}/etc/nut -user uucp -exec chown %%NUT_USER%% {} \;
find ${nut_prefix}/etc/nut -group uucp -exec chgrp %%NUT_GROUP%% {} \;
find %%STATEDIR%% -user uucp -exec chown %%NUT_USER%% {} \;