|
|
7db026 |
For the RPMs, we want the custom installation directories to end in
|
|
|
7db026 |
/pgsql not /postgresql. This is historical but not worth changing.
|
|
|
7db026 |
|
|
|
7db026 |
Notice that this patch also makes the appending of /pgsql unconditional.
|
|
|
7db026 |
This is to avoid unexpected behavior if the RPM is built in a working
|
|
|
7db026 |
directory whose path happens to include "postgres" or "pgsql" already.
|
|
|
7db026 |
However, datadir and sysconfdir are already set up in the specfile's
|
|
|
7db026 |
configure call, so we do not have to append anything to them.
|
|
|
7db026 |
|
|
|
7db026 |
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
|
|
|
7db026 |
index 9a6265b3a0..c9371a07c4 100644
|
|
|
7db026 |
--- a/src/Makefile.global.in
|
|
|
7db026 |
+++ b/src/Makefile.global.in
|
|
|
7db026 |
@@ -82,8 +82,7 @@ vpathsearch = `for f in $(addsuffix /$(1),$(subst :, ,. $(VPATH))); do test -r $
|
|
|
7db026 |
# Installation directories
|
|
|
7db026 |
#
|
|
|
7db026 |
# These are set by the equivalent --xxxdir configure options. We
|
|
|
7db026 |
-# append "postgresql" to some of them, if the string does not already
|
|
|
7db026 |
-# contain "pgsql" or "postgres", in order to avoid directory clutter.
|
|
|
7db026 |
+# append "pgsql" to some of them, in order to avoid directory clutter.
|
|
|
7db026 |
#
|
|
|
7db026 |
# In a PGXS build, we cannot use the values inserted into Makefile.global
|
|
|
7db026 |
# by configure, since the installation tree may have been relocated.
|
|
|
7db026 |
@@ -101,45 +100,23 @@ datarootdir := @datarootdir@
|
|
|
7db026 |
bindir := @bindir@
|
|
|
7db026 |
|
|
|
7db026 |
datadir := @datadir@
|
|
|
7db026 |
-ifeq "$(findstring pgsql, $(datadir))" ""
|
|
|
7db026 |
-ifeq "$(findstring postgres, $(datadir))" ""
|
|
|
7db026 |
-override datadir := $(datadir)/postgresql
|
|
|
7db026 |
-endif
|
|
|
7db026 |
-endif
|
|
|
7db026 |
|
|
|
7db026 |
sysconfdir := @sysconfdir@
|
|
|
7db026 |
-ifeq "$(findstring pgsql, $(sysconfdir))" ""
|
|
|
7db026 |
-ifeq "$(findstring postgres, $(sysconfdir))" ""
|
|
|
7db026 |
-override sysconfdir := $(sysconfdir)/postgresql
|
|
|
7db026 |
-endif
|
|
|
7db026 |
-endif
|
|
|
7db026 |
|
|
|
7db026 |
libdir := @libdir@
|
|
|
7db026 |
|
|
|
7db026 |
pkglibdir = $(libdir)
|
|
|
7db026 |
-ifeq "$(findstring pgsql, $(pkglibdir))" ""
|
|
|
7db026 |
-ifeq "$(findstring postgres, $(pkglibdir))" ""
|
|
|
7db026 |
-override pkglibdir := $(pkglibdir)/postgresql
|
|
|
7db026 |
-endif
|
|
|
7db026 |
-endif
|
|
|
7db026 |
+override pkglibdir := $(pkglibdir)/pgsql
|
|
|
7db026 |
|
|
|
7db026 |
includedir := @includedir@
|
|
|
7db026 |
|
|
|
7db026 |
pkgincludedir = $(includedir)
|
|
|
7db026 |
-ifeq "$(findstring pgsql, $(pkgincludedir))" ""
|
|
|
7db026 |
-ifeq "$(findstring postgres, $(pkgincludedir))" ""
|
|
|
7db026 |
-override pkgincludedir := $(pkgincludedir)/postgresql
|
|
|
7db026 |
-endif
|
|
|
7db026 |
-endif
|
|
|
7db026 |
+override pkgincludedir := $(pkgincludedir)/pgsql
|
|
|
7db026 |
|
|
|
7db026 |
mandir := @mandir@
|
|
|
7db026 |
|
|
|
7db026 |
docdir := @docdir@
|
|
|
7db026 |
-ifeq "$(findstring pgsql, $(docdir))" ""
|
|
|
7db026 |
-ifeq "$(findstring postgres, $(docdir))" ""
|
|
|
7db026 |
-override docdir := $(docdir)/postgresql
|
|
|
7db026 |
-endif
|
|
|
7db026 |
-endif
|
|
|
7db026 |
+override docdir := $(docdir)/pgsql
|
|
|
7db026 |
|
|
|
7db026 |
htmldir := @htmldir@
|
|
|
7db026 |
|