Blame SOURCES/libecpg-10.5-rpm-pgsql.patch

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