pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/cvm/files Wrap long command line. Replace LOC...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b7ea41412f3
branches:  trunk
changeset: 361880:0b7ea41412f3
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Apr 27 20:21:51 2017 +0000

description:
Wrap long command line. Replace LOCALBASE with PREFIX.

diffstat:

 security/cvm/files/cvm.sh |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (44 lines):

diff -r 2313cf528f89 -r 0b7ea41412f3 security/cvm/files/cvm.sh
--- a/security/cvm/files/cvm.sh Thu Apr 27 20:18:44 2017 +0000
+++ b/security/cvm/files/cvm.sh Thu Apr 27 20:21:51 2017 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: cvm.sh,v 1.1.1.1 2005/07/20 03:28:42 schmonz Exp $
+# $NetBSD: cvm.sh,v 1.2 2017/04/27 20:21:51 schmonz Exp $
 #
 
 # PROVIDE: cvm
@@ -15,23 +15,27 @@
 : ${cvm_protocol:="local"}
 : ${cvm_log:="YES"}
 : ${cvm_logcmd:="logger -t nb${name} -p auth.info"}
-: ${cvm_nologcmd:="@LOCALBASE@/bin/multilog -*"}
+: ${cvm_nologcmd:="@PREFIX@/bin/multilog -*"}
 
 if [ -f /etc/rc.subr ]; then
        . /etc/rc.subr
 fi
 
 rcvar=${name}
-command="@LOCALBASE@/bin/cvm-${cvm_module}"
+command="@PREFIX@/bin/cvm-${cvm_module}"
 start_precmd="cvm_precmd"
 
 cvm_precmd()
 {
-       if [ -f /etc/rc.subr ]; then
-               checkyesno cvm_log || cvm_logcmd=${cvm_nologcmd}
+       if [ -f /etc/rc.subr ] && ! checkyesno cvm_log; then
+               cvm_logcmd=${cvm_nologcmd}
        fi
        umask 0
-       command="@SETENV@ - ${cvm_postenv} @LOCALBASE@/bin/softlimit -m ${cvm_datalimit} @LOCALBASE@/bin/cvm-${cvm_module} cvm-${cvm_protocol}:@VARBASE@/run/cvm-${cvm_module} 2>&1 | 
@LOCALBASE@/bin/setuidgid cvmlog ${cvm_logcmd}"
+       command="@SETENV@ - ${cvm_postenv}
+@PREFIX@/bin/softlimit -m ${cvm_datalimit} @PREFIX@/bin/cvm-${cvm_module}
+cvm-${cvm_protocol}:@VARBASE@/run/cvm-${cvm_module}
+2>&1 |
+@PREFIX@/bin/setuidgid cvmlog ${cvm_logcmd}"
        command_args="&"
        rc_flags=""
 }



Home | Main Index | Thread Index | Old Index