On Tue, Feb 18, 2014 at 08:03:06AM +0100, Michel Stempin wrote:
> Signed-off-by: Michel Stempin <[email protected]>
> ---
> 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 0000000..8d4c4bd
> --- /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 @@
> + 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; \
Hi, just curious, what's wrong with using '+' as separators here. I
compiled gw6c for ar71xx fine without this patch.
yousong
> + 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
> +
> --
> 1.7.10.4
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel