summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/nut-devel/Makefile2
-rw-r--r--sysutils/nut-devel/files/patch-conf_upsmon.conf.sample.in11
-rw-r--r--sysutils/nut/Makefile2
-rw-r--r--sysutils/nut/files/patch-conf_upsmon.conf.sample.in11
4 files changed, 24 insertions, 2 deletions
diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile
index 9bafcd1fd295..f40a1a065584 100644
--- a/sysutils/nut-devel/Makefile
+++ b/sysutils/nut-devel/Makefile
@@ -2,7 +2,7 @@
PORTNAME= nut
PORTVERSION= ${NUT_COMMIT_DATE}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
PKGNAMESUFFIX= -devel
# MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
diff --git a/sysutils/nut-devel/files/patch-conf_upsmon.conf.sample.in b/sysutils/nut-devel/files/patch-conf_upsmon.conf.sample.in
new file mode 100644
index 000000000000..1e8edaeeab0d
--- /dev/null
+++ b/sysutils/nut-devel/files/patch-conf_upsmon.conf.sample.in
@@ -0,0 +1,11 @@
+--- conf/upsmon.conf.sample.in.orig 2022-05-08 06:15:14.873131000 -0700
++++ conf/upsmon.conf.sample.in 2022-05-08 06:18:53.643631000 -0700
+@@ -149,7 +149,7 @@
+ # such as posting a message with 'logger' or 'wall' or 'mailx'. Do be careful
+ # to plug the UPS back into the wall in a timely fashion.
+
+-SHUTDOWNCMD "/sbin/shutdown -h +0"
++SHUTDOWNCMD "/sbin/poweroff"
+
+ # --------------------------------------------------------------------------
+ # NOTIFYCMD <command>
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile
index 4bec09e14685..e1569eebacea 100644
--- a/sysutils/nut/Makefile
+++ b/sysutils/nut/Makefile
@@ -2,7 +2,7 @@
PORTNAME= nut
PORTVERSION= 2.8.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
diff --git a/sysutils/nut/files/patch-conf_upsmon.conf.sample.in b/sysutils/nut/files/patch-conf_upsmon.conf.sample.in
new file mode 100644
index 000000000000..17fb6d4d4882
--- /dev/null
+++ b/sysutils/nut/files/patch-conf_upsmon.conf.sample.in
@@ -0,0 +1,11 @@
+--- conf/upsmon.conf.sample.in.orig 2022-05-08 06:14:17.220611000 -0700
++++ conf/upsmon.conf.sample.in 2022-05-08 06:16:45.805777000 -0700
+@@ -149,7 +149,7 @@
+ # such as posting a message with 'logger' or 'wall' or 'mailx'. Do be careful
+ # to plug the UPS back into the wall in a timely fashion.
+
+-SHUTDOWNCMD "/sbin/shutdown -h +0"
++SHUTDOWNCMD "/sbin/poweroff"
+
+ # --------------------------------------------------------------------------
+ # NOTIFYCMD <command>