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