head	1.15;
access;
symbols
	REL7_2_8:1.14
	REL7_2_7:1.14
	REL7_2_6:1.14
	REL7_2_5:1.14
	REL7_2_4:1.14
	REL7_2_3:1.14
	REL7_2_STABLE:1.14.0.2
	REL7_2:1.14
	REL7_2_RC2:1.14
	REL7_2_RC1:1.14
	REL7_2_BETA5:1.14
	REL7_2_BETA4:1.14
	REL7_2_BETA3:1.14
	REL7_2_BETA2:1.14
	REL7_2_BETA1:1.14
	REL7_1_2:1.13
	REL7_1_STABLE:1.13.0.2
	REL7_1_BETA:1.13
	REL7_1_BETA3:1.13
	REL7_1_BETA2:1.13
	REL7_1:1.13
	REL7_0_PATCHES:1.8.0.2
	REL7_0:1.7
	REL6_5_PATCHES:1.7.0.2
	REL6_5:1.7
	REL6_4:1.6.0.2
	release-6-3:1.2;
locks; strict;
comment	@# @;


1.15
date	2002.04.04.04.25.50;	author momjian;	state dead;
branches;
next	1.14;

1.14
date	2001.05.12.19.49.47;	author petere;	state Exp;
branches;
next	1.13;

1.13
date	2000.11.30.20.36.12;	author petere;	state Exp;
branches;
next	1.12;

1.12
date	2000.11.18.19.00.23;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2000.09.17.13.02.41;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2000.08.31.16.11.20;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2000.06.27.00.31.25;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2000.05.11.17.46.34;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	99.01.17.06.19.13;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	98.04.06.16.51.20;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	98.04.06.01.15.36;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	98.04.06.00.29.27;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	98.04.05.22.01.24;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	97.08.25.23.28.04;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	97.08.25.19.59.57;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Authentication improvements:

A new pg_hba.conf column, USER
Allow specifiction of lists of users separated by commas
Allow group names specified by +
Allow include files containing lists of users specified by @@
Allow lists of databases, and database files
Allow samegroup in database column to match group name matching dbname
Removal of secondary password files
Remove pg_passwd utility
Lots of code cleanup in user.c and hba.c
New data/global/pg_pwd format
New data/global/pg_group file
@
text
@# $Header: /cvsroot/pgsql/src/bin/pg_passwd/Makefile,v 1.14 2001/05/12 19:49:47 petere Exp $

subdir = src/bin/pg_passwd
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

OBJS = pg_passwd.o
ifdef STRDUP
OBJS += $(top_builddir)/src/utils/strdup.o
endif

all: pg_passwd

pg_passwd: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@@

$(top_builddir)/src/utils/strdup.o:
	$(MAKE) -C $(top_builddir)/src/utils strdup.o

install: all installdirs
	$(INSTALL_PROGRAM) pg_passwd$(X) $(DESTDIR)$(bindir)/pg_passwd$(X)

installdirs:
	$(mkinstalldirs) $(DESTDIR)$(bindir)

uninstall:
	rm -f $(DESTDIR)$(bindir)/pg_passwd$(X)

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

clean distclean maintainer-clean:
	rm -f pg_passwd$(X) pg_passwd.o

ifeq (depend,$(wildcard depend))
include depend
endif
@


1.14
log
@Add provisions for using strdup replacement in the places that still
needed it.

from our fearless Ultrix porter, Alexander Klimov <ask@@wisdom.weizmann.ac.il>
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_passwd/Makefile,v 1.13 2000/11/30 20:36:12 petere Exp $
@


1.13
log
@Make all commands that link a program look like

$(CC) $(CFLAGS) $(LDFLAGS) <object files> <extra-libraries> $(LIBS) -o $@@

This form seemed to be the most portable, readable, and logical, but in any
case it's better than having a dozen different ones in the tree.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_passwd/Makefile,v 1.12 2000/11/18 19:00:23 petere Exp $
d7 5
d14 1
a14 1
pg_passwd: pg_passwd.o
d16 3
@


1.12
log
@Simplification:  Build executable directly from .c file.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_passwd/Makefile,v 1.11 2000/09/17 13:02:41 petere Exp $
d8 3
@


1.11
log
@Support for DESTDIR make variable. This is used as in `make install
DESTDIR=/else/where' and prepends the value of DESTDIR to the full
installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows
users to install the package into a location different from the one that
was configured and hard-coded into various scripts, e.g., for creating
binary packages.

DESTDIR is in many cases preferrable over `make install
prefix=/else/where' because

a) `prefix' affects the path that is hard-coded into the files, which can
lead to a `make install prefix=xxx' (as done by the regression test
driver) corrupting the files in the source tree with wrong paths.

b) it doesn't work at all if a directory was overridden to not depend on
`prefix', e.g., --sysconfdir=/etc.

(Updating the regression test driver to use DESTDIR is a separate
undertaking.)

See also autoconf@@gnu.org, From: Akim Demaille <akim@@epita.fr>, Date: 08
Sep 2000 12:48:59 +0200, Message-ID:
<mv4em2vb1lw.fsf@@nostromo.lrde.epita.fr>, Subject: Re: HTML format
documentation.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_passwd/Makefile,v 1.10 2000/08/31 16:11:20 petere Exp $
d7 1
a7 4
all: pg_passwd$(X)

pg_passwd$(X): pg_passwd.o
	$(CC) $(CFLAGS) -o $@@ $^ $(LDFLAGS)
@


1.10
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d1 1
a1 1
# $Header$
d13 1
a13 1
	$(INSTALL_PROGRAM) pg_passwd$(X) $(bindir)/pg_passwd$(X)
d16 1
a16 1
	$(mkinstalldirs) $(bindir)
d19 1
a19 1
	rm -f $(bindir)/pg_passwd$(X)
@


1.9
log
@Makefile cleanup for bin and pl subtrees. They should now support
all the standard semantics. Also get rid of Makefile.in's on the
way and instead declare all variables in Makefile.global.
@
text
@d1 1
a1 3
#
# Makefile for src/bin/pg_passwd
#
d5 1
a5 1
include ../../Makefile.global
@


1.8
log
@Makefile CFLAGS cleanups.
@
text
@a0 1
#-------------------------------------------------------------------------
d2 2
a3 3
# Makefile
#    Makefile for bin/pg_passwd
#-------------------------------------------------------------------------
d5 2
a6 1
SRCDIR= ../..
d9 1
a9 1
OBJS= pg_passwd.o
d11 2
a12 1
all: pg_passwd
d14 2
a15 2
pg_passwd: $(OBJS)
	$(CC) $(CFLAGS) -o pg_passwd $(OBJS) $(LDFLAGS)
d17 2
a18 2
install: pg_passwd
	$(INSTALL) $(INSTL_EXE_OPTS) pg_passwd$(X) $(BINDIR)/pg_passwd$(X)
d20 2
a21 3
.PHONY: submake
submake:
	$(MAKE) -C $(LIBPQDIR) libpq.a
d26 2
a27 2
clean:
	rm -f pg_passwd$(X) $(OBJS)
@


1.7
log
@Apply Win32 patch from Horak Daniel.
@
text
@d15 1
a15 1
	$(CC) -o pg_passwd $(OBJS) $(LDFLAGS)
@


1.6
log
@DESTDIR removed, again.
@
text
@d18 1
a18 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_passwd $(BINDIR)/pg_passwd
d28 1
a28 1
	rm -f pg_passwd $(OBJS)
@


1.5
log
@Re-introduce $DISTDIR.
@
text
@d18 1
a18 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_passwd $(DESTDIR)$(BINDIR)/pg_passwd
@


1.4
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d18 1
a18 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_passwd $(BINDIR)/pg_passwd
@


1.3
log
@Remove DISTDIR.
@
text
@d25 1
a25 1
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
@


1.2
log
@pg_passwd cleanup.
@
text
@d18 1
a18 1
	$(INSTALL) $(INSTL_EXE_OPTS) pg_passwd $(DESTDIR)$(BINDIR)/pg_passwd
@


1.1
log
@pg_passwd cleanup
@
text
@d6 1
d9 1
d11 1
d13 1
d15 2
a16 1
      $(CC) -o pg_passwd $(OBJS) $(LDFLAGS)
d18 6
a23 1
      $(INSTALL) $(INSTL_EXE_OPTS) pg_passwd $(DESTDIR)$(BINDIR)/pg_passwd
d25 2
a26 1
      $(CC) -MM $(INCLUDE_OPT) *.c >depend
d28 2
a29 1
      rm -f pg_passwd $(OBJS)
@
