freebsd-ports/databases/postgres-xl/files/patch-contrib_pgxc__ctl_make__signature
Kurt Jaeger 3daef6eeef New port: databases/postgres-xl
Postgres-XL is an open source project to provide both write-scalability and
massively parallel processing transparently to PostgreSQL. It is a collection
of tightly coupled database components which can be installed on more than one
system or virtual machine.

Write-scalable means Postgres-XL can be configured with as many database
servers as you want and handle many more writes (updating SQL statements) than
a single standalone database server could otherwise do. You can have more than
one database server that provides a single database view. Any database update
from any database server is immediately visible to any other transactions
running on different servers. Transparent means you do not necessarily need
to worry about how your data is stored in more than one database servers
internally.

WWW: http://www.postgres-xl.org/

PR:		219164
Submitted by:	Jov <amutu@amutu.com>
2017-08-16 18:55:15 +00:00

115 lines
2.6 KiB
Text

--- contrib/pgxc_ctl/make_signature.orig 2017-04-19 15:17:02 UTC
+++ contrib/pgxc_ctl/make_signature
@@ -53,14 +53,20 @@ EOF
cp pgxc_ctl_bash_2 pgxc_ctl_bash.c.wk
-ex pgxc_ctl_bash.c.wk <<EOF
-%s/"/\\\"/ge
-w
-%s/^\(.*\)$/"\1",/e
-%s/^"#ifdef XCP",$/#ifdef XCP/e
-%s/^"#endif",$/#endif/e
-wq
-EOF
+
+sed -i '' -e 's/"/\\\"/g' pgxc_ctl_bash.c.wk
+sed -i '' -e 's/^\(.*\)$/"\1",/' pgxc_ctl_bash.c.wk
+sed -i '' -e 's/^"#ifdef XCP",$/#ifdef XCP/' pgxc_ctl_bash.c.wk
+sed -i '' -e 's/^"#endif",$/#endif/' pgxc_ctl_bash.c.wk
+
+#ex pgxc_ctl_bash.c.wk <<EOF
+#%s/"/\\\"/ge
+#w
+#%s/^\(.*\)$/"\1",/e
+#%s/^"#ifdef XCP",$/#ifdef XCP/e
+#%s/^"#endif",$/#endif/e
+#wq
+#EOF
cat > pgxc_ctl_bash.c <<EOF
/*
@@ -110,14 +116,19 @@ rm pgxc_ctl_bash.c.wk
cp pgxc_ctl_conf_part_full pgxc_ctl_conf_part.wk
-ex pgxc_ctl_conf_part.wk <<EOF
-%s/"/\\\"/ge
-w
-%s/^\(.*\)$/"\1",/e
-%s/^"#ifdef XCP",$/#ifdef XCP/e
-%s/^"#endif",$/#endif/e
-wq
-EOF
+sed -i '' -e 's/"/\\\"/g' pgxc_ctl_conf_part.wk
+sed -i '' -e 's/^\(.*\)$/"\1",/' pgxc_ctl_conf_part.wk
+sed -i '' -e 's/^"#ifdef XCP",$/#ifdef XCP/' pgxc_ctl_conf_part.wk
+sed -i '' -e 's/^"#endif",$/#endif/' pgxc_ctl_conf_part.wk
+
+#ex pgxc_ctl_conf_part.wk <<EOF
+#%s/"/\\\"/ge
+#w
+#%s/^\(.*\)$/"\1",/e
+#%s/^"#ifdef XCP",$/#ifdef XCP/e
+#%s/^"#endif",$/#endif/e
+#wq
+#EOF
cat >> pgxc_ctl_bash.c <<EOF
/*
@@ -141,14 +152,19 @@ rm pgxc_ctl_conf_part.wk
cp pgxc_ctl_conf_part_minimal pgxc_ctl_conf_part.wk
-ex pgxc_ctl_conf_part.wk <<EOF
-%s/"/\\\"/ge
-w
-%s/^\(.*\)$/"\1",/e
-%s/^"#ifdef XCP",$/#ifdef XCP/e
-%s/^"#endif",$/#endif/e
-wq
-EOF
+sed -i '' -e 's/"/\\\"/g' pgxc_ctl_conf_part.wk
+sed -i '' -e 's/^\(.*\)$/"\1",/' pgxc_ctl_conf_part.wk
+sed -i '' -e 's/^"#ifdef XCP",$/#ifdef XCP/' pgxc_ctl_conf_part.wk
+sed -i '' -e 's/^"#endif",$/#endif/' pgxc_ctl_conf_part.wk
+
+#ex pgxc_ctl_conf_part.wk <<EOF
+#%s/"/\\\"/ge
+#w
+#%s/^\(.*\)$/"\1",/e
+#%s/^"#ifdef XCP",$/#ifdef XCP/e
+#%s/^"#endif",$/#endif/e
+#wq
+#EOF
cat >> pgxc_ctl_bash.c <<EOF
/*
@@ -172,14 +188,19 @@ rm pgxc_ctl_conf_part.wk
cp pgxc_ctl_conf_part_empty pgxc_ctl_conf_empty.wk
-ex pgxc_ctl_conf_empty.wk <<EOF
-%s/"/\\\"/ge
-w
-%s/^\(.*\)$/"\1",/e
-%s/^"#ifdef XCP",$/#ifdef XCP/e
-%s/^"#endif",$/#endif/e
-wq
-EOF
+sed -i '' -e 's/"/\\\"/g' pgxc_ctl_conf_empty.wk
+sed -i '' -e 's/^\(.*\)$/"\1",/' pgxc_ctl_conf_empty.wk
+sed -i '' -e 's/^"#ifdef XCP",$/#ifdef XCP/' pgxc_ctl_conf_empty.wk
+sed -i '' -e 's/^"#endif",$/#endif/' pgxc_ctl_conf_empty.wk
+
+#ex pgxc_ctl_conf_empty.wk <<EOF
+#%s/"/\\\"/ge
+#w
+#%s/^\(.*\)$/"\1",/e
+#%s/^"#ifdef XCP",$/#ifdef XCP/e
+#%s/^"#endif",$/#endif/e
+#wq
+#EOF
cat >> pgxc_ctl_bash.c <<EOF
/*