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

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