mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 15:51:51 -04:00
As security/softether and -devel are created and maintained by different people for a long time, there was a lot of difference between and no consistency between both ports. I grab both ports and renew this port based on security/softether. Now there're least differences such as VERSION, COMMENT, CONFLICTS between both. To make both ports consistent, I quit fetching from GitHub. Using upstream site[1] instead. Upstream distributes -rtm and -beta suffixed tarballs. -rtm corresponds to security/softether, -beta does to security/softether-devel now. [1] https://www.softether-download.com/ Approved by: mentors (implicit)
36 lines
705 B
Bash
36 lines
705 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: softether_bridge
|
|
# REQUIRE: NETWORKING SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable softether_bridge:
|
|
# softether_bridge_enable (bool): Set to "NO" by default.
|
|
# Set it to "YES" to enable
|
|
#
|
|
. /etc/rc.subr
|
|
|
|
name=softether_bridge
|
|
rcvar=softether_bridge_enable
|
|
load_rc_config ${name}
|
|
|
|
: ${softether_bridge_enable:=NO}
|
|
|
|
command="%%PREFIX%%/libexec/softether/vpnbridge"
|
|
|
|
datadir="/var/db/softether"
|
|
|
|
start_precmd="${name}_precmd"
|
|
start_cmd="${command} start"
|
|
stop_cmd="${command} stop"
|
|
|
|
softether_bridge_precmd()
|
|
{
|
|
if [ ! -d "${datadir}" ]; then
|
|
mkdir -p ${datadir}
|
|
fi
|
|
}
|
|
|
|
run_rc_command "$1"
|