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