Blame SOURCES/rpm-pgsql.patch

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