aboutsummaryrefslogtreecommitdiff
path: root/security/ipsec-tools
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-07-02 04:19:30 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-07-02 04:19:30 +0000
commitfffceacc536aaf8848185d21bb93115a17483764 (patch)
tree4b8dd500cae89ae69fb2a054742b5c9d9032ab5f /security/ipsec-tools
parent273b76258701c3f35fca24e52370255a9a0ffce1 (diff)
downloadports-fffceacc536aaf8848185d21bb93115a17483764.tar.gz
ports-fffceacc536aaf8848185d21bb93115a17483764.zip
Notes
Diffstat (limited to 'security/ipsec-tools')
-rw-r--r--security/ipsec-tools/files/racoon.sh.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/ipsec-tools/files/racoon.sh.in b/security/ipsec-tools/files/racoon.sh.in
index 7940c2d765b6..8bbe2e826c6f 100644
--- a/security/ipsec-tools/files/racoon.sh.in
+++ b/security/ipsec-tools/files/racoon.sh.in
@@ -24,6 +24,8 @@ prefix=%%PREFIX%%
[ -z "$racoon_enable" ] && racoon_enable="NO" # Disable by default
#racoon_program="${prefix}/sbin/racoon" # Location of racoon
#racoon_flags="" # Flags to racoon program
+racoon_create_dirs=NO # Create $required_dirs (for
+ # /var mfs)?
. %%RC_SUBR%%
@@ -43,4 +45,7 @@ racoon_cleanup() {
}
load_rc_config $name
+if [ "$1" = start ] && checkyesno "${name}_create_dirs"; then
+ /bin/mkdir -p $required_dirs
+fi
run_rc_command "$1"