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