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