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