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