aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netdisco
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-01-05 13:18:58 +0000
committerJohn Marino <marino@FreeBSD.org>2015-01-05 13:18:58 +0000
commitbcbae34226a1b7c3e0ad864e0c758ecbedc92400 (patch)
tree56d81dc1bbc7e3109a4e452a2ac64bc8e2197a4e /net-mgmt/netdisco
parent058ade94e8bfd2d492a28818ad434c5aa4e1d4fa (diff)
change command_interpreter from /usr/bin/perl to ${PREFIX}/bin/perl
Several ports had rc.d scripts with hardcoded command_interpreter string as /usr/bin/perl. This symlink is not guaranteed to be in place, and it isn't even an option for perl 5.20. For affected ports, the interpreter was changed to localbase. In one case, the interpreter was correct, but it wasn't surround by quotes. Since the rc.d script would break if a space was contained in ${PREFIX}, quotes were added in that case.
Notes
Notes: svn path=/head/; revision=376298
Diffstat (limited to 'net-mgmt/netdisco')
-rw-r--r--net-mgmt/netdisco/Makefile2
-rw-r--r--net-mgmt/netdisco/files/netdisco.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/net-mgmt/netdisco/Makefile b/net-mgmt/netdisco/Makefile
index af401c6aa6fe..553c170a704e 100644
--- a/net-mgmt/netdisco/Makefile
+++ b/net-mgmt/netdisco/Makefile
@@ -3,7 +3,7 @@
PORTNAME= netdisco
PORTVERSION= 1.3.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt www
MASTER_SITES= SF
diff --git a/net-mgmt/netdisco/files/netdisco.in b/net-mgmt/netdisco/files/netdisco.in
index f2adf9fa4dd4..8dccea10f7a9 100644
--- a/net-mgmt/netdisco/files/netdisco.in
+++ b/net-mgmt/netdisco/files/netdisco.in
@@ -24,7 +24,7 @@ restart_cmd=${name}_restart
status_cmd=${name}_status
command="%%PREFIX%%/bin/netdisco"
-command_interpreter="/usr/bin/perl"
+command_interpreter="%%PREFIX%%/bin/perl"
netdisco_config="%%ETCDIR%%/netdisco.conf"
pidfile=$(grep ^daemon_pid $netdisco_config | cut -d= -f2 | tail -1)
flags="-p start"