sepostgresql/sepostgresql-fedora-prefix.patch
2009-08-19 12:26:11 +00:00

87 lines
2.8 KiB
Diff

Index: sepgsql/src/Makefile.global.in
===================================================================
--- sepgsql/src/Makefile.global.in (revision 2237)
+++ sepgsql/src/Makefile.global.in (working copy)
@@ -75,14 +75,14 @@
datadir := @datadir@
ifeq "$(findstring pgsql, $(datadir))" ""
ifeq "$(findstring postgres, $(datadir))" ""
-override datadir := $(datadir)/postgresql
+override datadir := $(datadir)/sepgsql
endif
endif
sysconfdir := @sysconfdir@
ifeq "$(findstring pgsql, $(sysconfdir))" ""
ifeq "$(findstring postgres, $(sysconfdir))" ""
-override sysconfdir := $(sysconfdir)/postgresql
+override sysconfdir := $(sysconfdir)/sepgsql
endif
endif
@@ -91,7 +91,7 @@
pkglibdir = $(libdir)
ifeq "$(findstring pgsql, $(pkglibdir))" ""
ifeq "$(findstring postgres, $(pkglibdir))" ""
-override pkglibdir := $(pkglibdir)/postgresql
+override pkglibdir := $(pkglibdir)/sepgsql
endif
endif
@@ -100,7 +100,7 @@
pkgincludedir = $(includedir)
ifeq "$(findstring pgsql, $(pkgincludedir))" ""
ifeq "$(findstring postgres, $(pkgincludedir))" ""
-override pkgincludedir := $(pkgincludedir)/postgresql
+override pkgincludedir := $(pkgincludedir)/sepgsql
endif
endif
@@ -109,7 +109,7 @@
docdir := @docdir@
ifeq "$(findstring pgsql, $(docdir))" ""
ifeq "$(findstring postgres, $(docdir))" ""
-override docdir := $(docdir)/postgresql
+override docdir := $(docdir)/sepgsql
endif
endif
Index: sepgsql/src/bin/pg_ctl/pg_ctl.c
===================================================================
--- sepgsql/src/bin/pg_ctl/pg_ctl.c (revision 2237)
+++ sepgsql/src/bin/pg_ctl/pg_ctl.c (working copy)
@@ -643,7 +643,7 @@
postmaster_path = pg_malloc(MAXPGPATH);
- if ((ret = find_other_exec(argv0, "postgres", PG_BACKEND_VERSIONSTR,
+ if ((ret = find_other_exec(argv0, "sepostgres", PG_BACKEND_VERSIONSTR,
postmaster_path)) < 0)
{
char full_path[MAXPGPATH];
Index: sepgsql/src/bin/initdb/initdb.c
===================================================================
--- sepgsql/src/bin/initdb/initdb.c (revision 2237)
+++ sepgsql/src/bin/initdb/initdb.c (working copy)
@@ -2763,7 +2763,7 @@
sprintf(pgdenv, "PGDATA=%s", pg_data);
putenv(pgdenv);
- if ((ret = find_other_exec(argv[0], "postgres", PG_BACKEND_VERSIONSTR,
+ if ((ret = find_other_exec(argv[0], "sepostgres", PG_BACKEND_VERSIONSTR,
backend_exec)) < 0)
{
char full_path[MAXPGPATH];
Index: sepgsql/src/bin/pg_dump/pg_dumpall.c
===================================================================
--- sepgsql/src/bin/pg_dump/pg_dumpall.c (revision 2237)
+++ sepgsql/src/bin/pg_dump/pg_dumpall.c (working copy)
@@ -157,7 +157,7 @@
}
}
- if ((ret = find_other_exec(argv[0], "pg_dump", PGDUMP_VERSIONSTR,
+ if ((ret = find_other_exec(argv[0], "sepg_dump", PGDUMP_VERSIONSTR,
pg_dump_bin)) < 0)
{
char full_path[MAXPGPATH];