gw6c: fixed sed separator
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 21 Feb 2014 20:46:47 +0000 (20:46 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 21 Feb 2014 20:46:47 +0000 (20:46 +0000)
On my ramips RT5350 HAME-MPR1 target, my build directory is:
"build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2", thus the problem.

Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
SVN-Revision: 39657

ipv6/gw6c/patches/001-sed-separator.patch [new file with mode: 0644]

diff --git a/ipv6/gw6c/patches/001-sed-separator.patch b/ipv6/gw6c/patches/001-sed-separator.patch
new file mode 100644 (file)
index 0000000..93fbc3b
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/tspc-advanced/conf/Makefile
++++ b/tspc-advanced/conf/Makefile
+@@ -21,12 +21,12 @@ gw6c.conf.sample:
+       fi
+       @if [ -z "$(configdir)" ]; then \
+        if [ -z "$(installdir)" ]; then \
+-         sed -e "s+@ifname_v4v6@+$(ifname_v4v6)+" -e "s+@ifname_tun@+$(ifname_tun)+" -e "s+@ifname@+$(ifname)+" -e "s+@conf_template@+$(conf_template)+" -e "s+@conf_gw6_dir@+`cd ..;pwd`+"  gw6c.conf.in>$(BIN)/gw6c.conf.sample; \
++         sed -e "s|@ifname_v4v6@|$(ifname_v4v6)|" -e "s|@ifname_tun@|$(ifname_tun)|" -e "s|@ifname@|$(ifname)|" -e "s|@conf_template@|$(conf_template)|" -e "s|@conf_gw6_dir@|`cd ..;pwd`|"  gw6c.conf.in>$(BIN)/gw6c.conf.sample; \
+        else \
+-         sed -e "s+@ifname_v4v6@+$(ifname_v4v6)+" -e "s+@ifname_tun@+$(ifname_tun)+" -e "s+@ifname@+$(ifname)+" -e "s+@conf_template@+$(conf_template)+" -e "s+@conf_gw6_dir@+$(installdir)+" gw6c.conf.in >$(BIN)/gw6c.conf.sample; \
++         sed -e "s|@ifname_v4v6@|$(ifname_v4v6)|" -e "s|@ifname_tun@|$(ifname_tun)|" -e "s|@ifname@|$(ifname)|" -e "s|@conf_template@|$(conf_template)|" -e "s|@conf_gw6_dir@|$(installdir)|" gw6c.conf.in >$(BIN)/gw6c.conf.sample; \
+        fi \
+       else \
+-       sed -e "s+@ifname_v4v6@+$(ifname_v4v6)+" -e "s+@ifname_tun@+$(ifname_tun)+" -e "s+@ifname@+$(ifname)+" -e "s+@conf_template@+$(conf_template)+" -e "s+@conf_gw6_dir@+$(configdir)+" gw6c.conf.in >$(BIN)/gw6c.conf.sample; \
++       sed -e "s|@ifname_v4v6@|$(ifname_v4v6)|" -e "s|@ifname_tun@|$(ifname_tun)|" -e "s|@ifname@|$(ifname)|" -e "s|@conf_template@|$(conf_template)|" -e "s|@conf_gw6_dir@|$(configdir)|" gw6c.conf.in >$(BIN)/gw6c.conf.sample; \
+       fi
+       chmod 700 $(BIN)/gw6c.conf.sample