From 1698630bc0bf0e5af818e34ad8447003b7514691 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 28 Jun 2011 13:12:18 +0000 Subject: [PATCH] Added PostgreSQL 9.0 shared object for Linux 64-bit --- .../linux/32/lib_postgresqludf_sys/Makefile | 5 +++++ .../linux/32/lib_postgresqludf_sys/install.sh | 10 +++++++--- .../linux/64/lib_postgresqludf_sys/Makefile | 5 +++++ .../linux/64/lib_postgresqludf_sys/install.sh | 10 +++++++--- .../linux/64/9.0/lib_postgresqludf_sys.so | Bin 0 -> 7920 bytes 5 files changed, 24 insertions(+), 6 deletions(-) create mode 100755 udf/postgresql/linux/64/9.0/lib_postgresqludf_sys.so diff --git a/extra/udfhack/linux/32/lib_postgresqludf_sys/Makefile b/extra/udfhack/linux/32/lib_postgresqludf_sys/Makefile index 846e3b8d4..bff85f12b 100644 --- a/extra/udfhack/linux/32/lib_postgresqludf_sys/Makefile +++ b/extra/udfhack/linux/32/lib_postgresqludf_sys/Makefile @@ -1,5 +1,10 @@ LIBDIR=/tmp +9.0: + gcc -Wall -I/usr/include/postgresql/9.0/server -Os -shared lib_postgresqludf_sys.c -fPIC -o lib_postgresqludf_sys.so + strip -sx lib_postgresqludf_sys.so + cp -f lib_postgresqludf_sys.so $(LIBDIR)/lib_postgresqludf_sys.so + 8.4: gcc-4.3 -Wall -I/usr/include/postgresql/8.4/server -Os -shared lib_postgresqludf_sys.c -o lib_postgresqludf_sys.so strip -sx lib_postgresqludf_sys.so diff --git a/extra/udfhack/linux/32/lib_postgresqludf_sys/install.sh b/extra/udfhack/linux/32/lib_postgresqludf_sys/install.sh index 1d7530638..94e73b096 100755 --- a/extra/udfhack/linux/32/lib_postgresqludf_sys/install.sh +++ b/extra/udfhack/linux/32/lib_postgresqludf_sys/install.sh @@ -3,23 +3,25 @@ # Copyright (C) 2009-2010 Bernardo Damele A. G. # web: http://bernardodamele.blogspot.com/ # email: bernardo.damele@gmail.com -# +# # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. -# +# # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. -# +# # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Adapt the following settings to your environment USER="postgres" +#PORT="5435" +#VERSION="9.0" PORT="5434" VERSION="8.4" #PORT="5433" @@ -40,6 +42,8 @@ if test $? -ne 0; then echo "apt-get install postgresql-server-dev-8.3" elif test "${VERSION}" == "8.4"; then echo "apt-get install postgresql-server-dev-8.4" + elif test "${VERSION}" == "9.0"; then + echo "apt-get install postgresql-server-dev-9.0" fi exit 1 diff --git a/extra/udfhack/linux/64/lib_postgresqludf_sys/Makefile b/extra/udfhack/linux/64/lib_postgresqludf_sys/Makefile index 4a9e428f1..21c82cbda 100644 --- a/extra/udfhack/linux/64/lib_postgresqludf_sys/Makefile +++ b/extra/udfhack/linux/64/lib_postgresqludf_sys/Makefile @@ -1,5 +1,10 @@ LIBDIR=/tmp +9.0: + gcc -Wall -I/usr/include/postgresql/9.0/server -Os -shared lib_postgresqludf_sys.c -fPIC -o lib_postgresqludf_sys.so + strip -sx lib_postgresqludf_sys.so + cp -f lib_postgresqludf_sys.so $(LIBDIR)/lib_postgresqludf_sys.so + 8.4: gcc-4.2 -Wall -I/usr/include/postgresql/8.4/server -Os -shared lib_postgresqludf_sys.c -fPIC -o lib_postgresqludf_sys.so strip -sx lib_postgresqludf_sys.so diff --git a/extra/udfhack/linux/64/lib_postgresqludf_sys/install.sh b/extra/udfhack/linux/64/lib_postgresqludf_sys/install.sh index 1d7530638..94e73b096 100755 --- a/extra/udfhack/linux/64/lib_postgresqludf_sys/install.sh +++ b/extra/udfhack/linux/64/lib_postgresqludf_sys/install.sh @@ -3,23 +3,25 @@ # Copyright (C) 2009-2010 Bernardo Damele A. G. # web: http://bernardodamele.blogspot.com/ # email: bernardo.damele@gmail.com -# +# # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. -# +# # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. -# +# # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # Adapt the following settings to your environment USER="postgres" +#PORT="5435" +#VERSION="9.0" PORT="5434" VERSION="8.4" #PORT="5433" @@ -40,6 +42,8 @@ if test $? -ne 0; then echo "apt-get install postgresql-server-dev-8.3" elif test "${VERSION}" == "8.4"; then echo "apt-get install postgresql-server-dev-8.4" + elif test "${VERSION}" == "9.0"; then + echo "apt-get install postgresql-server-dev-9.0" fi exit 1 diff --git a/udf/postgresql/linux/64/9.0/lib_postgresqludf_sys.so b/udf/postgresql/linux/64/9.0/lib_postgresqludf_sys.so new file mode 100755 index 0000000000000000000000000000000000000000..7c29ff7a3505d7037a23a686a82d69273bbfb942 GIT binary patch literal 7920 zcmcIpeQ;FO6~9R~5HW5djT%AVfgn+Fn+-yOh-UKvFElv8Bv{3;Y&M$@O?KDa4FyC^ zT|gFCO_}~-9qgdPRK|{$>9h`_LNpL)r&5rjI9kQ8_N{P6QCz4BfO1hLhTwOk7$J4DzpJ{a zw5%XSF$$qcg4!5@+@tDy3Q|1dhD@m@HY;R163K3pvfHHW7<*M$7;{o?gbhfUc`J@r zdW@t?sqV8#3za7gm*Pd(lA;A8+s%a?#rZ>%IZo(C5@H%8}hq}Y_mXGoXOrc9nK<*9@mLN;{b-ZUU_}k&<*I_# z2#udLU1K7so?<3l^1r-1DR#CBEGvSRY!fMu_#&4FnUw_w&4}k2aY(}8b&|w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