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

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