aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2014-07-05 12:51:06 +0800
committercy <cy@FreeBSD.org>2014-07-05 12:51:06 +0800
commita599fa976ee8e95ba2aa8010291e734c7a9457b6 (patch)
tree8003e2821001f8f218ee7230f788e168f0b373e7
parent64ab5c4df1ad8c1e8cae8bc32e17f41fc89b77f6 (diff)
downloadfreebsd-ports-gnome-a599fa976ee8e95ba2aa8010291e734c7a9457b6.tar.gz
freebsd-ports-gnome-a599fa976ee8e95ba2aa8010291e734c7a9457b6.tar.zst
freebsd-ports-gnome-a599fa976ee8e95ba2aa8010291e734c7a9457b6.zip
Point rc script to the new upsdrvctl path.
-rw-r--r--sysutils/nut/Makefile1
-rw-r--r--sysutils/nut/files/nut.in4
2 files changed, 3 insertions, 2 deletions
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile
index 494a842e525f..e80cae75983f 100644
--- a/sysutils/nut/Makefile
+++ b/sysutils/nut/Makefile
@@ -3,6 +3,7 @@
PORTNAME= nut
PORTVERSION= 2.7.2
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
diff --git a/sysutils/nut/files/nut.in b/sysutils/nut/files/nut.in
index 98ba6394389c..5b0e3cb86050 100644
--- a/sysutils/nut/files/nut.in
+++ b/sysutils/nut/files/nut.in
@@ -34,11 +34,11 @@ start_precmd="nut_prestart"
stop_postcmd="nut_poststop"
nut_prestart() {
- ${nut_prefix}/libexec/nut/upsdrvctl start
+ ${nut_prefix}/sbin/upsdrvctl start
}
nut_poststop() {
- ${nut_prefix}/libexec/nut/upsdrvctl stop
+ ${nut_prefix}/sbin/upsdrvctl stop
}
extra_commands=reload