diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-01-06 03:18:27 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-01-06 03:18:27 +0000 |
commit | c3e9699f212050b0c8bdf3772eeaaffa3c3596cd (patch) | |
tree | d1f5217cfd590c571483eb3ac8ceaeb53f843beb /src/backend/Makefile | |
parent | d99e7b5a0dc15f86bc9a66de315bf5ed6f7c5271 (diff) | |
download | postgresql-c3e9699f212050b0c8bdf3772eeaaffa3c3596cd.tar.gz |
Enable IPv6 connections to the server, and add pg_hba.conf IPv6 entries
if the OS supports it. Code will still compile on non-IPv6-aware
machines (feature added by Bruce).
Nigel Kukard
Diffstat (limited to 'src/backend/Makefile')
-rw-r--r-- | src/backend/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile index 2365b21efd..9df4b921d1 100644 --- a/src/backend/Makefile +++ b/src/backend/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.89 2002/12/14 00:24:23 petere Exp $ +# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.90 2003/01/06 03:18:26 momjian Exp $ # #------------------------------------------------------------------------- @@ -132,7 +132,14 @@ ifeq ($(MAKE_DLL), true) endif endif $(MAKE) -C catalog install-data +ifdef HAVE_IPV6 $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample +else + grep -v '^host.*::1.*ffff:ffff:ffff:ffff:ffff:ffff' \ + $(srcdir)/libpq/pg_hba.conf.sample \ + > $(srcdir)/libpq/pg_hba.conf.sample.no_ipv6 + $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample.no_ipv6 $(DESTDIR)$(datadir)/pg_hba.conf.sample +endif $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample @@ -182,6 +189,9 @@ clean: rm -f postgres$(X) $(POSTGRES_IMP) \ $(top_srcdir)/src/include/parser/parse.h \ $(top_builddir)/src/include/utils/fmgroids.h +ifndef HAVE_IPV6 + rm -f $(srcdir)/libpq/pg_hba.conf.sample.no_ipv6 +endif ifeq ($(PORTNAME), win) rm -f postgres.dll postgres.def libpostgres.a endif |