From: Jo-Philipp Wich Date: Sun, 20 Feb 2011 15:18:26 +0000 (+0000) Subject: openswan: fix setup scripts (#8029) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=974d124cfdc11054f1ccbed5e5339e4533b4b4ba;p=openwrt%2Fsvn-archive%2Fpackages.git openswan: fix setup scripts (#8029) SVN-Revision: 25609 --- diff --git a/net/openswan/Makefile b/net/openswan/Makefile index 45beb33c6..c5f987548 100644 --- a/net/openswan/Makefile +++ b/net/openswan/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=openswan PKG_VERSION:=2.6.29 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.openswan.org/download diff --git a/net/openswan/patches/110-scripts.patch b/net/openswan/patches/110-scripts.patch index eafbd9926..db91c158a 100644 --- a/net/openswan/patches/110-scripts.patch +++ b/net/openswan/patches/110-scripts.patch @@ -5,32 +5,32 @@ 3 files changed, 7 insertions(+), 2 deletions(-) --- /dev/null -+++ openswan-2.6.29/programs/loggerfix ++++ b/programs/loggerfix @@ -0,0 +1,5 @@ +#!/bin/sh +# use filename instead of /dev/null to log, but dont log to flash or ram +# pref. log to nfs mount +echo "$*" >> /dev/null +exit 0 ---- openswan-2.6.29.orig/programs/_plutorun/_plutorun.in -+++ openswan-2.6.29/programs/_plutorun/_plutorun.in +--- a/programs/_plutorun/_plutorun.in ++++ b/programs/_plutorun/_plutorun.in @@ -155,7 +155,7 @@ then exit 1 fi else - if test ! -w "`dirname $stderrlog`" -+ if test ! -w "`echo $stderrlog | sed -r 's/(^.*\/)(.*$)/\1/'`" ++ if test ! -w "${stderrlog%/*}" then echo Cannot write to directory to create \"$stderrlog\". exit 1 ---- openswan-2.6.29.orig/programs/_realsetup/_realsetup.in -+++ openswan-2.6.29/programs/_realsetup/_realsetup.in +--- a/programs/_realsetup/_realsetup.in ++++ b/programs/_realsetup/_realsetup.in @@ -290,7 +290,7 @@ case "$1" in # misc pre-Pluto setup - perform test -d $subsysdir "&&" touch $subsyslock -+ rm test -d `echo $subsyslock | sed -r 's/(^.*\/)(.*$)/\1/'` "&&" touch $subsyslock "&&" rm -f $subsyslock ++ perfrom test -d "${subsyslock%/*}" "&&" touch $subsyslock "&&" rm -f $subsyslock manualconns