Blame SOURCES/libecpg-10.5-rpm-pgsql.patch

dd8f85
For the RPMs, we want the custom installation directories to end in
dd8f85
/pgsql not /postgresql.  This is historical but not worth changing.
dd8f85
dd8f85
Notice that this patch also makes the appending of /pgsql unconditional.
dd8f85
This is to avoid unexpected behavior if the RPM is built in a working
dd8f85
directory whose path happens to include "postgres" or "pgsql" already.
dd8f85
However, datadir and sysconfdir are already set up in the specfile's
dd8f85
configure call, so we do not have to append anything to them.
dd8f85
dd8f85
dd8f85
diff -Naur postgresql-9.0.1.orig/src/Makefile.global.in postgresql-9.0.1/src/Makefile.global.in
dd8f85
--- postgresql-9.0.1.orig/src/Makefile.global.in	2010-10-01 10:25:44.000000000 -0400
dd8f85
+++ postgresql-9.0.1/src/Makefile.global.in	2010-10-11 11:52:05.224975308 -0400
dd8f85
@@ -55,8 +55,7 @@
dd8f85
 # Installation directories
dd8f85
 #
dd8f85
 # These are set by the equivalent --xxxdir configure options.  We
dd8f85
-# append "postgresql" to some of them, if the string does not already
dd8f85
-# contain "pgsql" or "postgres", in order to avoid directory clutter.
dd8f85
+# append "pgsql" to some of them, in order to avoid directory clutter.
dd8f85
 #
dd8f85
 # In a PGXS build, we cannot use the values inserted into Makefile.global
dd8f85
 # by configure, since the installation tree may have been relocated.
dd8f85
@@ -74,45 +73,23 @@
dd8f85
 bindir := @bindir@
dd8f85
 
dd8f85
 datadir := @datadir@
dd8f85
-ifeq "$(findstring pgsql, $(datadir))" ""
dd8f85
-ifeq "$(findstring postgres, $(datadir))" ""
dd8f85
-override datadir := $(datadir)/postgresql
dd8f85
-endif
dd8f85
-endif
dd8f85
 
dd8f85
 sysconfdir := @sysconfdir@
dd8f85
-ifeq "$(findstring pgsql, $(sysconfdir))" ""
dd8f85
-ifeq "$(findstring postgres, $(sysconfdir))" ""
dd8f85
-override sysconfdir := $(sysconfdir)/postgresql
dd8f85
-endif
dd8f85
-endif
dd8f85
 
dd8f85
 libdir := @libdir@
dd8f85
 
dd8f85
 pkglibdir = $(libdir)
dd8f85
-ifeq "$(findstring pgsql, $(pkglibdir))" ""
dd8f85
-ifeq "$(findstring postgres, $(pkglibdir))" ""
dd8f85
-override pkglibdir := $(pkglibdir)/postgresql
dd8f85
-endif
dd8f85
-endif
dd8f85
+override pkglibdir := $(pkglibdir)/pgsql
dd8f85
 
dd8f85
 includedir := @includedir@
dd8f85
 
dd8f85
 pkgincludedir = $(includedir)
dd8f85
-ifeq "$(findstring pgsql, $(pkgincludedir))" ""
dd8f85
-ifeq "$(findstring postgres, $(pkgincludedir))" ""
dd8f85
-override pkgincludedir := $(pkgincludedir)/postgresql
dd8f85
-endif
dd8f85
-endif
dd8f85
+override pkgincludedir := $(pkgincludedir)/pgsql
dd8f85
 
dd8f85
 mandir := @mandir@
dd8f85
 
dd8f85
 docdir := @docdir@
dd8f85
-ifeq "$(findstring pgsql, $(docdir))" ""
dd8f85
-ifeq "$(findstring postgres, $(docdir))" ""
dd8f85
-override docdir := $(docdir)/postgresql
dd8f85
-endif
dd8f85
-endif
dd8f85
+override docdir := $(docdir)/pgsql
dd8f85
 
dd8f85
 htmldir := @htmldir@
dd8f85