svn commit: r481110 - head/security/strongswan/files
Renato Botelho
garga at FreeBSD.org
Tue Oct 2 10:58:38 UTC 2018
Author: garga
Date: Tue Oct 2 10:58:37 2018
New Revision: 481110
URL: https://svnweb.freebsd.org/changeset/ports/481110
Log:
security/strongswan: Fix rc startup script to support rc.conf settings like
_nice, _fib
Do not bump version since I'll commit the upgrade to 5.7.1 just after it
PR: 211108
Submitted by: Dmitry Wagin <dmitry.wagin at ya.ru>
Approved by: maintainer
Sponsored by: Rubicon Communications, LLC (Netgate)
Modified:
head/security/strongswan/files/strongswan.in
Modified: head/security/strongswan/files/strongswan.in
==============================================================================
--- head/security/strongswan/files/strongswan.in Tue Oct 2 09:41:24 2018 (r481109)
+++ head/security/strongswan/files/strongswan.in Tue Oct 2 10:58:37 2018 (r481110)
@@ -7,27 +7,31 @@
# BEFORE: LOGIN
# KEYWORD: shutdown
-command="%%PREFIX%%/sbin/ipsec"
. /etc/rc.subr
-name="strongswan"
-rcvar=${name}_enable
+name=strongswan
+rcvar=strongswan_enable
+
extra_commands="reload statusall"
load_rc_config $name
-start_cmd="strongswan_command start"
-stop_cmd="strongswan_command stop"
-restart_cmd="strongswan_command restart"
-status_cmd="strongswan_command status"
-reload_cmd="strongswan_command reload"
-statusall_cmd="strongswan_command statusall"
+command="%%PREFIX%%/sbin/ipsec"
+start_precmd="strongswan_precmd"
+stop_cmd="strongswan_cmd"
+status_cmd="strongswan_cmd"
+reload_cmd="strongswan_cmd"
+statusall_cmd="strongswan_cmd"
-strongswan_command()
+strongswan_precmd()
{
- $command ${rc_arg}
+ command_args=${rc_arg}
}
-run_rc_command "$1"
+strongswan_cmd()
+{
+ ${command} ${rc_arg}
+}
+run_rc_command "$1"
More information about the svn-ports-all
mailing list