update openswan to 0.4.10, reenable 2.6 support, sync with included openwrt packaging...
[openwrt/svn-archive/archive.git] / package / openswan / patches / 110-scripts.patch
1 diff -urN openswan.old/programs/loggerfix openswan.dev/programs/loggerfix
2 --- openswan.old/programs/loggerfix 1970-01-01 01:00:00.000000000 +0100
3 +++ openswan.dev/programs/loggerfix 2006-10-08 20:41:08.000000000 +0200
4 @@ -0,0 +1,5 @@
5 +#!/bin/sh
6 +# use filename instead of /dev/null to log, but dont log to flash or ram
7 +# pref. log to nfs mount
8 +echo "$*" >> /dev/null
9 +exit 0
10 diff -urN openswan.old/programs/_plutorun/_plutorun.in openswan.dev/programs/_plutorun/_plutorun.in
11 --- openswan.old/programs/_plutorun/_plutorun.in 2006-10-08 20:43:21.000000000 +0200
12 +++ openswan.dev/programs/_plutorun/_plutorun.in 2006-10-08 20:41:08.000000000 +0200
13 @@ -147,7 +147,7 @@
14 exit 1
15 fi
16 else
17 - if test ! -w "`dirname $stderrlog`"
18 + if test ! -w "`echo $stderrlog | sed -r 's/(^.*\/)(.*$)/\1/'`"
19 then
20 echo Cannot write to directory to create \"$stderrlog\".
21 exit 1
22 diff -urN openswan.old/programs/_realsetup/_realsetup.in openswan.dev/programs/_realsetup/_realsetup.in
23 --- openswan.old/programs/_realsetup/_realsetup.in 2006-10-08 20:43:21.000000000 +0200
24 +++ openswan.dev/programs/_realsetup/_realsetup.in 2006-10-08 20:41:08.000000000 +0200
25 @@ -232,7 +232,7 @@
26
27 # misc pre-Pluto setup
28
29 - perform test -d `dirname $subsyslock` "&&" touch $subsyslock
30 + perform test -d `echo $subsyslock | sed -r 's/(^.*\/)(.*$)/\1/'` "&&" touch $subsyslock "&&" rm -f $subsyslock
31
32 if test " $IPSECforwardcontrol" = " yes"
33 then