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