1 |
pylon 07/12/16 14:32:51 |
2 |
|
3 |
Modified: ipsec |
4 |
Added: digest-strongswan-4.1.9 ipsec-install-4.1.9.patch |
5 |
Removed: digest-strongswan-2.8.3 |
6 |
Log: |
7 |
Version bump; new init-script; cleanup; quotes. |
8 |
(Portage version: 2.1.4_rc10) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 net-misc/strongswan/files/ipsec |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/files/ipsec?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/files/ipsec?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/files/ipsec?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: ipsec |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/strongswan/files/ipsec,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- ipsec 19 May 2004 14:26:23 -0000 1.1 |
24 |
+++ ipsec 16 Dec 2007 14:32:50 -0000 1.2 |
25 |
@@ -1,56 +1,33 @@ |
26 |
#!/sbin/runscript |
27 |
- |
28 |
-# IPsec startup and shutdown script |
29 |
-# Copyright (C) 1998, 1999, 2001 Henry Spencer. |
30 |
-# Gentoo mods (C) 2003 Anthony de Boer |
31 |
-# |
32 |
-# This program is free software; you can redistribute it and/or modify it |
33 |
-# under the terms of the GNU General Public License as published by the |
34 |
-# Free Software Foundation; either version 2 of the License, or (at your |
35 |
-# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. |
36 |
-# |
37 |
-# This program is distributed in the hope that it will be useful, but |
38 |
-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
39 |
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
40 |
-# for more details. |
41 |
+# Copyright 1999-2006 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
depend() { |
45 |
- need net logger |
46 |
-} |
47 |
- |
48 |
-ipsecdoit() { |
49 |
-# Pick up IPsec configuration (until we have done this, successfully, we |
50 |
-# do not know where errors should go, hence the explicit "daemon.error"s.) |
51 |
-# Note the "--export", which exports the variables created. |
52 |
- eval `ipsec _confread --varprefix IPSEC --export --type config setup` |
53 |
- if test " $IPSEC_confreadstatus" != " " |
54 |
- then |
55 |
- echo "$IPSEC_confreadstatus -- \`$1' aborted" | |
56 |
- logger -s -p daemon.error -t ipsec_setup |
57 |
- exit 1 |
58 |
- fi |
59 |
- IPSECsyslog=${IPSECsyslog-daemon.error} |
60 |
- export IPSECsyslog |
61 |
- umask 022 |
62 |
- tmp=/var/run/ipsec_setup.st |
63 |
- ( |
64 |
- ipsec _realsetup $1 |
65 |
- echo "$?" >$tmp |
66 |
- ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1 |
67 |
- st=`cat $tmp` |
68 |
- rm -f $tmp |
69 |
- return $st |
70 |
+ need logger net |
71 |
} |
72 |
|
73 |
start() { |
74 |
- ebegin "Starting IPSEC ..." |
75 |
- ipsecdoit start |
76 |
+ ebegin "Starting ${IPSECD}" |
77 |
+ ipsec start |
78 |
eend $? |
79 |
} |
80 |
|
81 |
stop() { |
82 |
- ebegin "Stopping IPSEC ..." |
83 |
- ipsecdoit stop |
84 |
+ ebegin "Stopping ${IPSECD}" |
85 |
+ ipsec stop |
86 |
+ eend $? |
87 |
+} |
88 |
+ |
89 |
+restart() { |
90 |
+ ebegin "Restarting ${IPSECD}" |
91 |
+ svc_stop |
92 |
+ sleep 2 |
93 |
+ svc_start |
94 |
eend $? |
95 |
} |
96 |
|
97 |
+status() { |
98 |
+ ebegin "${IPSECD} Status (verbose):" |
99 |
+ ipsec statusall |
100 |
+ eend $? |
101 |
+} |
102 |
|
103 |
|
104 |
|
105 |
1.1 net-misc/strongswan/files/digest-strongswan-4.1.9 |
106 |
|
107 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/files/digest-strongswan-4.1.9?rev=1.1&view=markup |
108 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/files/digest-strongswan-4.1.9?rev=1.1&content-type=text/plain |
109 |
|
110 |
Index: digest-strongswan-4.1.9 |
111 |
=================================================================== |
112 |
MD5 5b78f00cba3c0d6edd97ee25108c4b6b strongswan-4.1.9.tar.bz2 2176339 |
113 |
RMD160 a140bd2295284910dc8e54bba1227f0bd384813f strongswan-4.1.9.tar.bz2 2176339 |
114 |
SHA256 37ea5119dc54cb150d444302f82f84854a15d35e45a817e3a29be86b7d750587 strongswan-4.1.9.tar.bz2 2176339 |
115 |
|
116 |
|
117 |
|
118 |
1.1 net-misc/strongswan/files/ipsec-install-4.1.9.patch |
119 |
|
120 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/files/ipsec-install-4.1.9.patch?rev=1.1&view=markup |
121 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/files/ipsec-install-4.1.9.patch?rev=1.1&content-type=text/plain |
122 |
|
123 |
Index: ipsec-install-4.1.9.patch |
124 |
=================================================================== |
125 |
diff -uprN strongswan-4.1.9.orig/src/starter/Makefile.am strongswan-4.1.9/src/starter/Makefile.am |
126 |
--- strongswan-4.1.9.orig/src/starter/Makefile.am 2007-11-06 12:37:59.000000000 +0100 |
127 |
+++ strongswan-4.1.9/src/starter/Makefile.am 2007-12-14 21:29:01.000000000 +0100 |
128 |
@@ -31,4 +31,4 @@ defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/ |
129 |
$(COMPILE) -c -o $@ $< |
130 |
|
131 |
install-exec-local : |
132 |
- test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf |
133 |
+ test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -D ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf |
134 |
|
135 |
|
136 |
|
137 |
-- |
138 |
gentoo-commits@g.o mailing list |