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