Signed-off-by: Michel Stempin <[email protected]>
---
 ipv6/tspc/patches/002-sed-separator.patch |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 ipv6/tspc/patches/002-sed-separator.patch

diff --git a/ipv6/tspc/patches/002-sed-separator.patch 
b/ipv6/tspc/patches/002-sed-separator.patch
new file mode 100644
index 0000000..12c1cef
--- /dev/null
+++ b/ipv6/tspc/patches/002-sed-separator.patch
@@ -0,0 +1,22 @@
+--- a/conf/Makefile
++++ b/conf/Makefile
+@@ -34,16 +34,15 @@
+       fi
+       @if [ -z "$(configdir)" ]; then \
+        if [ -z "$(installdir)" ]; then \
+-         sed -e "s+@ifname_tun@+$(ifname_tun)+" -e "s+@ifname@+$(ifname)+" -e 
"s+@target@+$(target)+" -e "s+@tsp_dir@+`cd ..;pwd`+"  
tspc.conf.in>$(BIN)/tspc.conf.sample; \
++         sed -e "s|@ifname_tun@|$(ifname_tun)|" -e "s|@ifname@|$(ifname)|" -e 
"s|@target@|$(target)|" -e "s|@tsp_dir@|`cd ..;pwd`|"  
tspc.conf.in>$(BIN)/tspc.conf.sample; \
+        else \
+-         sed -e "s+@ifname_tun@+$(ifname_tun)+" -e "s+@ifname@+$(ifname)+" -e 
"s+@target@+$(target)+" -e "s+@tsp_dir@+$(installdir)+" tspc.conf.in 
>$(BIN)/tspc.conf.sample; \
++         sed -e "s|@ifname_tun@|$(ifname_tun)|" -e "s|@ifname@|$(ifname)|" -e 
"s|@target@|$(target)|" -e "s|@tsp_dir@|$(installdir)|" tspc.conf.in 
>$(BIN)/tspc.conf.sample; \
+        fi \
+       else \
+-       sed -e "s+@ifname_tun@+$(ifname_tun)+" -e "s+@ifname@+$(ifname)+" -e 
"s+@target@+$(target)+" -e "s+@tsp_dir@+$(configdir)+" tspc.conf.in 
>$(BIN)/tspc.conf.sample; \
++       sed -e "s|@ifname_tun@|$(ifname_tun)|" -e "s|@ifname@|$(ifname)|" -e 
"s|@target@|$(target)|" -e "s|@tsp_dir@|$(configdir)|" tspc.conf.in 
>$(BIN)/tspc.conf.sample; \
+       fi
+ 
+       chmod 600 $(BIN)/tspc.conf.sample
+-      
+ 
+ clean:
+       rm -f $(BIN)/tspc.conf.sample
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to