Blame SOURCES/rpm-pgsql.patch

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