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