security/tincd: clean up, bump revision

This commit is contained in:
Franco Fichtner
2017-05-08 13:31:25 +02:00
parent 4e9c7d0832
commit 38eb2d2726
4 changed files with 12 additions and 11 deletions
+1
View File
@@ -1,5 +1,6 @@
PLUGIN_NAME= tinc
PLUGIN_VERSION= 1.2
PLUGIN_REVISION= 1
PLUGIN_COMMENT= Tinc VPN
PLUGIN_DEPENDS= tinc
PLUGIN_MAINTAINER= ad@opnsense.org
+8 -8
View File
@@ -2,32 +2,32 @@
#
# $FreeBSD$
#
# PROVIDE: tincd
# PROVIDE: ostincd
# REQUIRE: SERVERS
# KEYWORD: shutdown
#
. /etc/rc.subr
name=opnsensetincd
name=ostincd
stop_cmd=tincd_stop
start_cmd=tincd_start
rcvar=OPNtincd_enable
stop_cmd=ostincd_stop
start_cmd=ostincd_start
rcvar=ostincd_enable
load_rc_config $name
[ -z "$OPNtincd_enable" ] && OPNtincd_enable="NO"
[ -z "$ostincd_enable" ] && ostincd_enable="NO"
# stop tincd
tincd_stop()
ostincd_stop()
{
echo "stopping tincd"
/usr/local/opnsense/scripts/OPNsense/Tinc/tincd.py stop
}
# start tincd
tincd_start()
ostincd_start()
{
echo "starting tincd"
/usr/local/opnsense/scripts/OPNsense/Tinc/tincd.py start
@@ -1,2 +1,2 @@
tinc_deploy.xml:/usr/local/etc/tinc_deploy.xml
rc.conf.d:/etc/rc.conf.d/opnsensetincd
rc.conf.d:/etc/rc.conf.d/opnsense-tincd
@@ -5,7 +5,7 @@
{% endif %}
{% endfor %}
{% if networks|length > 0 %}
OPNtincd_enable=YES
ostincd_enable=YES
{% else %}
OPNtincd_enable=NO
ostincd_enable=NO
{% endif %}