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 <michel.stempin@wanadoo.fr>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@39657 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hauke 2014-02-21 20:46:47 +00:00
parent 5f244f80db
commit 9d35b39418

View File

@ -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