diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-12-12 22:16:34 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-12-12 22:16:34 -0500 |
commit | d06503ce9d83ca575c540f426d45d19db5922ff5 (patch) | |
tree | 27dc8b156f1184e0db2a49059b04c7c94d5eabc4 /net-firewall | |
parent | net-firewall/ipsec-tools: remove vulnerable versions, bug #550118 (diff) | |
download | gentoo-d06503ce9d83ca575c540f426d45d19db5922ff5.tar.gz gentoo-d06503ce9d83ca575c540f426d45d19db5922ff5.tar.bz2 gentoo-d06503ce9d83ca575c540f426d45d19db5922ff5.zip |
net-firewall/ipsec-tools: cleanup unused files
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/ipsec-tools/files/racoon.conf.d-r1 | 27 | ||||
-rw-r--r-- | net-firewall/ipsec-tools/files/racoon.init.d-r2 | 57 |
2 files changed, 0 insertions, 84 deletions
diff --git a/net-firewall/ipsec-tools/files/racoon.conf.d-r1 b/net-firewall/ipsec-tools/files/racoon.conf.d-r1 deleted file mode 100644 index 80b89f966188..000000000000 --- a/net-firewall/ipsec-tools/files/racoon.conf.d-r1 +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# Config file for /etc/init.d/racoon - -# See the man page or run `racoon --help` for valid command-line options -# RACOON_OPTS="-d" - -RACOON_CONF="/etc/racoon/racoon.conf" -RACOON_PSK_FILE="/etc/racoon/psk.txt" - -# The amount of time in ms for start-stop-daemon to wait before a timeout -# Racoon can sometimes be slow. We'll wait 1 sec. Bug #435398. - -RACOON_WAIT="1000" - -# The setkey config file. Don't name it ipsec.conf as this clashes -# with strongswan. We'll follow debian's naming. Bug #436144. - -SETKEY_CONF="/etc/ipsec-tools.conf" - -# Comment or remove the following if you don't want the policy tables -# to be flushed when racoon is stopped. - -RACOON_RESET_TABLES="true" - diff --git a/net-firewall/ipsec-tools/files/racoon.init.d-r2 b/net-firewall/ipsec-tools/files/racoon.init.d-r2 deleted file mode 100644 index f338b5177236..000000000000 --- a/net-firewall/ipsec-tools/files/racoon.init.d-r2 +++ /dev/null @@ -1,57 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - before netmount - use net -} - -checkconfig() { - if [ ! -e ${SETKEY_CONF} ] ; then - eerror "You need to configure setkey before starting racoon." - return 1 - fi - if [ ! -e ${RACOON_CONF} ] ; then - eerror "You need a configuration file to start racoon." - return 1 - fi - if [ ! -z ${RACOON_PSK_FILE} ] ; then - if [ ! -f ${RACOON_PSK_FILE} ] ; then - eerror "PSK file not found as specified." - eerror "Set RACOON_PSK_FILE in /etc/conf.d/racoon." - return 1 - fi - case "`ls -Lldn ${RACOON_PSK_FILE}`" in - -r--------*) - ;; - *) - eerror "Your defined PSK file should be mode 400 for security!" - return 1 - ;; - esac - fi -} - -command=/usr/sbin/racoon -command_args="-f ${RACOON_CONF} ${RACOON_OPTS}" -pidfile=/var/run/racoon.pid -start_stop_daemon_args="--wait ${RACOON_WAIT}" - -start_pre() { - checkconfig || return 1 - einfo "Loading ipsec policies from ${SETKEY_CONF}." - /usr/sbin/setkey -f ${SETKEY_CONF} - if [ $? -eq 1 ] ; then - eerror "Error while loading ipsec policies" - fi -} - -stop_post() { - if [ -n "${RACOON_RESET_TABLES}" ]; then - ebegin "Flushing policy entries" - /usr/sbin/setkey -F - /usr/sbin/setkey -FP - eend $? - fi -} |