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