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%% {} \;