Changeset 25609


Ignore:
Timestamp:
2011-02-20T16:18:26+01:00 (6 years ago)
Author:
jow
Message:

[packages] openswan: fix setup scripts (#8029)

Location:
packages/net/openswan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/openswan/Makefile

    r23353 r25609  
    1111PKG_NAME:=openswan 
    1212PKG_VERSION:=2.6.29 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/openswan/patches/110-scripts.patch

    r23353 r25609  
    66 
    77--- /dev/null 
    8 +++ openswan-2.6.29/programs/loggerfix 
     8+++ b/programs/loggerfix 
    99@@ -0,0 +1,5 @@ 
    1010+#!/bin/sh 
     
    1313+echo "$*" >> /dev/null 
    1414+exit 0 
    15 --- openswan-2.6.29.orig/programs/_plutorun/_plutorun.in 
    16 +++ openswan-2.6.29/programs/_plutorun/_plutorun.in 
     15--- a/programs/_plutorun/_plutorun.in 
     16+++ b/programs/_plutorun/_plutorun.in 
    1717@@ -155,7 +155,7 @@ then 
    1818                        exit 1 
     
    2020        else 
    2121-               if test ! -w "`dirname $stderrlog`" 
    22 +               if test ! -w "`echo $stderrlog | sed -r 's/(^.*\/)(.*$)/\1/'`" 
     22+               if test ! -w "${stderrlog%/*}" 
    2323                then 
    2424                        echo Cannot write to directory to create \"$stderrlog\". 
    2525                        exit 1 
    26 --- openswan-2.6.29.orig/programs/_realsetup/_realsetup.in 
    27 +++ openswan-2.6.29/programs/_realsetup/_realsetup.in 
     26--- a/programs/_realsetup/_realsetup.in 
     27+++ b/programs/_realsetup/_realsetup.in 
    2828@@ -290,7 +290,7 @@ case "$1" in 
    2929  
     
    3131  
    3232-       perform test -d $subsysdir "&&" touch $subsyslock 
    33 +       rm test -d `echo $subsyslock | sed -r 's/(^.*\/)(.*$)/\1/'` "&&" touch $subsyslock "&&" rm -f $subsyslock 
     33+       perfrom test -d "${subsyslock%/*}" "&&" touch $subsyslock "&&" rm -f $subsyslock 
    3434  
    3535        manualconns 
Note: See TracChangeset for help on using the changeset viewer.