- fix for FreeBSD releases before rcorder integration
- update copyright notice
- replace shell backticks by $().

Port:
- bump revision
- reformat comment

PR:		ports/109856
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
Approved by:	miwi (mentor)
This commit is contained in:
Juergen Lock 2007-03-04 19:12:37 +00:00
parent d4c181f21b
commit 222105d2f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186508
4 changed files with 32 additions and 32 deletions

View file

@ -7,13 +7,13 @@
PORTNAME= openvpn PORTNAME= openvpn
# ----------------------------------------------------- # -----------------------------------------------------
# DO NOT BOTHER TO SEND NOTICES ABOUT 2.0.9 AS IT FIXES # DO NOT BOTHER TO SEND NOTICES ABOUT OPENVPN 2.0.9
# WINDOWS-ONLY BUGS THAT DON'T AFFECT *BSD AND THUS # AS IT FIXES WINDOWS-ONLY BUGS THAT DON'T AFFECT *BSD
# DOES NOT WARRANT A PORT UPGRADE! AND UPGRADE REQUESTS # AND THUS DOES NOT WARRANT A PORT UPGRADE!
# WILL BE DROPPED. # UPGRADE REQUESTS WILL BE DROPPED UNLESS BSD-RELATED.
# ----------------------------------------------------- # -----------------------------------------------------
PORTVERSION= 2.0.6 PORTVERSION= 2.0.6
PORTREVISION= 6 PORTREVISION= 7
CATEGORIES= security net CATEGORIES= security net
# MASTER_SITES points to hosts in distinct data centers, # MASTER_SITES points to hosts in distinct data centers,
# so just one MASTER_SITES entry should be OK. # so just one MASTER_SITES entry should be OK.

View file

@ -2,10 +2,10 @@
# #
# openvpn.sh - load tun/tap driver and start OpenVPN daemon # openvpn.sh - load tun/tap driver and start OpenVPN daemon
# #
# (C) Copyright 2005 by Matthias Andree # (C) Copyright 2005 - 2007 by Matthias Andree
# based on suggestions by Matthias Grimm and Dirk Gouders # based on suggestions by Matthias Grimm and Dirk Gouders
# # with multi-instance contribution from Denis Shaposhnikov, Gleb Kozyrev
# Made in Northrhine-Westphalia, Germany # and Vasil Dimov
# #
# $FreeBSD$ # $FreeBSD$
# #
@ -67,14 +67,14 @@ case "$0" in
/etc/rc*) /etc/rc*)
# during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
# so get the name of the script from $_file # so get the name of the script from $_file
name=$(basename "$_file") name=$(basename "$_file" .sh)
;; ;;
*) *)
name=$(basename "$0") name=$(basename "$0" .sh)
;; ;;
esac esac
rcvar=`set_rcvar` rcvar=$(set_rcvar)
prefix="%%PREFIX%%" prefix="%%PREFIX%%"
@ -122,9 +122,9 @@ eval ": \${${name}_if:=\"\"}"
eval ": \${${name}_configfile:=\"${prefix}/etc/openvpn/${name}.conf\"}" eval ": \${${name}_configfile:=\"${prefix}/etc/openvpn/${name}.conf\"}"
eval ": \${${name}_dir:=\"${prefix}/etc/openvpn\"}" eval ": \${${name}_dir:=\"${prefix}/etc/openvpn\"}"
configfile="`eval echo \\${${name}_configfile}`" configfile="$(eval echo \${${name}_configfile})"
dir="`eval echo \\${${name}_dir}`" dir="$(eval echo \${${name}_dir})"
interfaces="`eval echo \\${${name}_if}`" interfaces="$(eval echo \${${name}_if})"
required_files=${configfile} required_files=${configfile}
command_args="--cd ${dir} --daemon --config ${configfile} --writepid ${pidfile}" command_args="--cd ${dir} --daemon --config ${configfile} --writepid ${pidfile}"

View file

@ -7,13 +7,13 @@
PORTNAME= openvpn PORTNAME= openvpn
# ----------------------------------------------------- # -----------------------------------------------------
# DO NOT BOTHER TO SEND NOTICES ABOUT 2.0.9 AS IT FIXES # DO NOT BOTHER TO SEND NOTICES ABOUT OPENVPN 2.0.9
# WINDOWS-ONLY BUGS THAT DON'T AFFECT *BSD AND THUS # AS IT FIXES WINDOWS-ONLY BUGS THAT DON'T AFFECT *BSD
# DOES NOT WARRANT A PORT UPGRADE! AND UPGRADE REQUESTS # AND THUS DOES NOT WARRANT A PORT UPGRADE!
# WILL BE DROPPED. # UPGRADE REQUESTS WILL BE DROPPED UNLESS BSD-RELATED.
# ----------------------------------------------------- # -----------------------------------------------------
PORTVERSION= 2.0.6 PORTVERSION= 2.0.6
PORTREVISION= 6 PORTREVISION= 7
CATEGORIES= security net CATEGORIES= security net
# MASTER_SITES points to hosts in distinct data centers, # MASTER_SITES points to hosts in distinct data centers,
# so just one MASTER_SITES entry should be OK. # so just one MASTER_SITES entry should be OK.

View file

@ -2,10 +2,10 @@
# #
# openvpn.sh - load tun/tap driver and start OpenVPN daemon # openvpn.sh - load tun/tap driver and start OpenVPN daemon
# #
# (C) Copyright 2005 by Matthias Andree # (C) Copyright 2005 - 2007 by Matthias Andree
# based on suggestions by Matthias Grimm and Dirk Gouders # based on suggestions by Matthias Grimm and Dirk Gouders
# # with multi-instance contribution from Denis Shaposhnikov, Gleb Kozyrev
# Made in Northrhine-Westphalia, Germany # and Vasil Dimov
# #
# $FreeBSD$ # $FreeBSD$
# #
@ -67,14 +67,14 @@ case "$0" in
/etc/rc*) /etc/rc*)
# during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
# so get the name of the script from $_file # so get the name of the script from $_file
name=$(basename "$_file") name=$(basename "$_file" .sh)
;; ;;
*) *)
name=$(basename "$0") name=$(basename "$0" .sh)
;; ;;
esac esac
rcvar=`set_rcvar` rcvar=$(set_rcvar)
prefix="%%PREFIX%%" prefix="%%PREFIX%%"
@ -122,9 +122,9 @@ eval ": \${${name}_if:=\"\"}"
eval ": \${${name}_configfile:=\"${prefix}/etc/openvpn/${name}.conf\"}" eval ": \${${name}_configfile:=\"${prefix}/etc/openvpn/${name}.conf\"}"
eval ": \${${name}_dir:=\"${prefix}/etc/openvpn\"}" eval ": \${${name}_dir:=\"${prefix}/etc/openvpn\"}"
configfile="`eval echo \\${${name}_configfile}`" configfile="$(eval echo \${${name}_configfile})"
dir="`eval echo \\${${name}_dir}`" dir="$(eval echo \${${name}_dir})"
interfaces="`eval echo \\${${name}_if}`" interfaces="$(eval echo \${${name}_if})"
required_files=${configfile} required_files=${configfile}
command_args="--cd ${dir} --daemon --config ${configfile} --writepid ${pidfile}" command_args="--cd ${dir} --daemon --config ${configfile} --writepid ${pidfile}"