From 975cf9580f19fc196579c9aa27cf360c07fb3a14 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Fri, 21 Feb 2014 20:46:47 +0000 Subject: [PATCH] gw6c: fixed sed separator 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 SVN-Revision: 39657 --- ipv6/gw6c/patches/001-sed-separator.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ipv6/gw6c/patches/001-sed-separator.patch diff --git a/ipv6/gw6c/patches/001-sed-separator.patch b/ipv6/gw6c/patches/001-sed-separator.patch new file mode 100644 index 000000000..93fbc3bbe --- /dev/null +++ b/ipv6/gw6c/patches/001-sed-separator.patch @@ -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 + -- 2.30.2