diff options
author | 2007-07-25 11:37:29 +0000 | |
---|---|---|
committer | 2007-07-25 11:37:29 +0000 | |
commit | 34dabc3b534df05a1a41436344e245dcbf65e303 (patch) | |
tree | e9219cec1c5110ad07d0fe0a107ef01ee4811fa7 /net-misc/vpnc/files | |
parent | Remove unused versions. (diff) | |
download | gentoo-2-34dabc3b534df05a1a41436344e245dcbf65e303.tar.gz gentoo-2-34dabc3b534df05a1a41436344e245dcbf65e303.tar.bz2 gentoo-2-34dabc3b534df05a1a41436344e245dcbf65e303.zip |
clean-up; make init script work with baselayout 2; add some comments to die commands
(Portage version: 2.1.2.9)
Diffstat (limited to 'net-misc/vpnc/files')
-rw-r--r-- | net-misc/vpnc/files/digest-vpnc-0.3.3-r1 | 3 | ||||
-rw-r--r-- | net-misc/vpnc/files/digest-vpnc-0.4.0-r2 | 3 | ||||
-rw-r--r-- | net-misc/vpnc/files/digest-vpnc-0.4.0-r3 (renamed from net-misc/vpnc/files/digest-vpnc-0.4.0-r1) | 0 | ||||
-rwxr-xr-x | net-misc/vpnc/files/vpnc | 19 | ||||
-rw-r--r-- | net-misc/vpnc/files/vpnc-iproute-fix-2.diff | 11 | ||||
-rw-r--r-- | net-misc/vpnc/files/vpnc.init | 9 |
6 files changed, 4 insertions, 41 deletions
diff --git a/net-misc/vpnc/files/digest-vpnc-0.3.3-r1 b/net-misc/vpnc/files/digest-vpnc-0.3.3-r1 deleted file mode 100644 index 6082eedf725c..000000000000 --- a/net-misc/vpnc/files/digest-vpnc-0.3.3-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 e7518cff21326fe7eb9795b60c25ae6a vpnc-0.3.3.tar.gz 59939 -RMD160 ffcb229fb8cac18f8d6dea0e67f88cec420f31da vpnc-0.3.3.tar.gz 59939 -SHA256 be4a8e87b044cb99349e71e6879446739dd537dbde13e99ec61817ed67605bd7 vpnc-0.3.3.tar.gz 59939 diff --git a/net-misc/vpnc/files/digest-vpnc-0.4.0-r2 b/net-misc/vpnc/files/digest-vpnc-0.4.0-r2 deleted file mode 100644 index 7945ee2ab04e..000000000000 --- a/net-misc/vpnc/files/digest-vpnc-0.4.0-r2 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 604807e7dd90fce00a4e2344ee29c76d vpnc-0.4.0.tar.gz 75491 -RMD160 1640481601074d4517746f6e3b147b12f24b06e3 vpnc-0.4.0.tar.gz 75491 -SHA256 f91c6bc2547cb503fde4f244ba82304553fec3954c65521482f8db2491700586 vpnc-0.4.0.tar.gz 75491 diff --git a/net-misc/vpnc/files/digest-vpnc-0.4.0-r1 b/net-misc/vpnc/files/digest-vpnc-0.4.0-r3 index 7945ee2ab04e..7945ee2ab04e 100644 --- a/net-misc/vpnc/files/digest-vpnc-0.4.0-r1 +++ b/net-misc/vpnc/files/digest-vpnc-0.4.0-r3 diff --git a/net-misc/vpnc/files/vpnc b/net-misc/vpnc/files/vpnc deleted file mode 100755 index fe1a2f29f935..000000000000 --- a/net-misc/vpnc/files/vpnc +++ /dev/null @@ -1,19 +0,0 @@ -#!/sbin/runscript - -depend() { - need net -} - -start() { - ebegin "Starting Virtual Private Network" - start-stop-daemon --start --exec /usr/sbin/vpnc \ - --pidfile /var/run/vpnc/pid - eend $? -} - -stop() { - ebegin "Stopping Virtual Private Network" - start-stop-daemon --stop --exec /usr/sbin/vpnc-disconnect \ - --pidfile /var/run/vpnc/pid - eend $? -} diff --git a/net-misc/vpnc/files/vpnc-iproute-fix-2.diff b/net-misc/vpnc/files/vpnc-iproute-fix-2.diff deleted file mode 100644 index d5cbb2342cc8..000000000000 --- a/net-misc/vpnc/files/vpnc-iproute-fix-2.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- vpnc-0.3.3/vpnc-script 2005-05-05 19:05:18.000000000 +0200 -+++ vpnc-0.3.3-fix/vpnc-script 2005-12-20 13:40:43.991982250 +0100 -@@ -72,7 +72,7 @@ - - if [ -n "$IPROUTE" ]; then - fix_ip_get_output () { -- sed 's/cache//;s/metric[0-9]\+ [0-9]\+//g' -+ sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g' - } - - set_vpngateway_route() { diff --git a/net-misc/vpnc/files/vpnc.init b/net-misc/vpnc/files/vpnc.init index 23da5b75a56a..e1723c0d8dd0 100644 --- a/net-misc/vpnc/files/vpnc.init +++ b/net-misc/vpnc/files/vpnc.init @@ -1,6 +1,7 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/vpnc/files/vpnc.init,v 1.3 2007/07/25 11:37:29 opfer Exp $ VPNDIR="/etc/vpnc" VPN="${SVCNAME#*.}" @@ -43,9 +44,9 @@ start() { local args="" - start-stop-daemon --start --exec /usr/sbin/vpnc --pidfile "${VPNPID}" \ - -- "${VPNCONF}" - eend $? "Check your logs to see why startup failed" + start-stop-daemon --start --pidfile "${VPNPID}" --exec /usr/sbin/vpnc \ + -- --pid-file "${VPNPID}" "${VPNCONF}" >/dev/null + eend $? } stop() { @@ -53,5 +54,3 @@ stop() { start-stop-daemon --stop --exec /usr/sbin/vpnc --pidfile "${VPNPID}" eend $? } - -# vim: ts=4 |