update to version 6.3 and make it install in standard locations

This commit is contained in:
marc 1998-03-11 02:06:34 +00:00
parent c0c039054a
commit ec5a0e34b9
15 changed files with 459 additions and 398 deletions

View File

@ -1,25 +1,18 @@
# New ports collection makefile for: PostgreSQL
# Version required: 6.1
# Version required: 6.3
# Date created: November 19, 1997
# Whom: mickey
# from: Marc G. Fournier <scrappy@FreeBSD.ORG>
#
# $OpenBSD: Makefile,v 1.2 1997/12/03 20:10:01 niklas Exp $
# $OpenBSD: Makefile,v 1.3 1998/03/11 02:06:34 marc Exp $
DISTNAME= postgresql-6.2.1
DISTNAME= postgresql-6.3
CATEGORIES= databases
MASTER_SITES= ftp://ftp.PostgreSQL.org/pub/ \
ftp://ftp.luga.or.at/pub/postgres95/ \
ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/
MAINTAINER= mickey@openbsd.org
# if you want to use the tcl/tk frontend pgaccess, then you need to build
# postgresql with tcl support by typing: make USE_TCL=yes
.if defined(USE_TCL)
MAKE_ENV+= USE_TCL=true TCL_INCDIR=${PREFIX}/include/tcl8.0
LIB_DEPENDS= tcl80\\.1\\.:${PORTSDIR}/lang/tcl80
.endif
MAINTAINER= ports@openbsd.org
NO_PACKAGE= "Requires pgsql uid"
WRKSRC= ${WRKDIR}/${DISTNAME}/src
@ -29,36 +22,63 @@ MAKEFILE= GNUmakefile
HAS_CONFIGURE= YES
CONFIGURE_ARGS+=--prefix=${PREFIX}/pgsql \
--enable-locale \
--with-template=openbsd
# --with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'`
--with-template=openbsd \
--with-defaults=yes
# if you want to use the tcl/tk frontend pgaccess, then you need to build
# postgresql with tcl support by typing: make WITH_TCL=yes
#
.if defined(WITH_TCL) && ${WITH_TCL} == yes
CONFIGURE_ARGS+=--with-tcl
LIB_DEPENDS= tcl80\\.1\\.:${PORTSDIR}/lang/tcl80
.endif
MAN1= cleardbdir.1 createdb.1 createuser.1 destroydb.1 \
destroyuser.1 initdb.1 ipcclean.1 monitor.1 pg_dump.1 \
pg_dumpall.1 pg_passwd.1 pgintro.1 postgres.1 \
destroyuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 \
pg_dump.1 pg_dumpall.1 pg_passwd.1 pgintro.1 postgres.1 \
postmaster.1 psql.1
MAN3= catalogs.3 large_objects.3 libpq.3 oracle_compat.3 pgbuiltin.3
MAN5= bki.5 page.5 pg_hba.conf.5
MANL= abort.l alter_table.l begin.l close.l cluster.l \
commit.l copy.l create_aggregate.l create_database.l \
create_function.l create_index.l create_operator.l \
create_rule.l create_sequence.l create_table.l \
create_trigger.l create_type.l create_version.l \
create_view.l declare.l delete.l drop.l drop_aggregate.l \
drop_database.l drop_function.l drop_index.l drop_operator.l \
drop_rule.l drop_sequence.l drop_table.l drop_trigger.l \
drop_type.l drop_view.l end.l explain.l fetch.l grant.l \
insert.l listen.l load.l move.l notify.l purge.l rename.l \
reset.l revoke.l rollback.l select.l set.l show.l sql.l \
update.l vacuum.l
MANPREFIX= ${PREFIX}/pgsql
MANL= abort.l alter_table.l alter_user.l begin.l close.l \
cluster.l commit.l copy.l create_aggregate.l create_database.l \
create_function.l create_index.l create_language.l \
create_operator.l create_rule.l create_sequence.l \
create_table.l create_trigger.l create_type.l create_user.l \
create_version.l create_view.l declare.l delete.l drop.l \
drop_aggregate.l drop_database.l drop_function.l drop_index.l \
drop_language.l drop_operator.l drop_rule.l drop_sequence.l \
drop_table.l drop_trigger.l drop_type.l drop_user.l \
drop_view.l end.l explain.l fetch.l grant.l insert.l listen.l \
load.l lock.l move.l notify.l rename.l reset.l revoke.l \
rollback.l select.l set.l show.l sql.l update.l vacuum.l
pre-fetch:
.if !defined(USE_TCL)
@${ECHO_MSG} "To build the \"PostgreSQL to Tcl interface library\", libpgtcl, type:"
@${ECHO_MSG} " make USE_TCL=yes"
.if defined(WITH_TCL)
.if ${WITH_TCL} == yes
@${ECHO_MSG} "Building/Installing PostgreSQL with \"libpgtcl\"."
.endif
.else
@${ECHO_MSG} "Building PostgreSQL with \"libpgtcl\"."
@${ECHO_MSG} "To build/install the \"PostgreSQL to Tcl interface library\", libpgtcl, type:"
@${ECHO_MSG} " make WITH_TCL=yes"
.endif
# The configuration step, this overrides the standard which sets
# INSTALL to a value that caused the gnu configure to bitch. Since
# this file takes over installation, this is a not issue.
#
do-configure:
@(cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" CFLAGS="${CFLAGS}" \
INSTALL="/usr/bin/install" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
# Use the postgres makefile override facility to disable shared libs
# libs if necessary
#
pre-build:
.if (${MACHINE_ARCH} == "alpha")
${ECHO} "# OpenBSD Makefile overrides" > ${WRKSRC}/Makefile.custom
${ECHO} "BSD_SHLIB= false" >> ${WRKSRC}/Makefile.custom
.endif
post-build:
@ -67,17 +87,133 @@ post-build:
@ ${ECHO} "Detailed instructions, see INSTALL file under ${WRKDIR}... "
@ ${ECHO} "------------------------------------------------------------"
pre-install:
@ ${MKDIR} ${PREFIX}/pgsql
@ ${SETENV} ${MAKE_ENV} perl ${SCRIPTDIR}/createuser
# Take over the install phase so things are put in OpenBSD standard
# locations (more or less).
#
# The install steps are:
# 1) create pgsql "home" directory
# 2) create pgsql user -- this updates the password file
# 3) install pgsql binaries, libraries, library files, and headers
# 4) install tcl extensions (if requested).
# 5) install man pages
#
do-install:
@${MKDIR} ${PREFIX}/pgsql
@${SETENV} ${MAKE_ENV} perl ${SCRIPTDIR}/createuser
@${ECHO_MSG} "installing in ${PREFIX}/bin"
@${INSTALL_PROGRAM} \
${WRKSRC}/backend/postgres \
${WRKSRC}/bin/pg_id/pg_id \
${WRKSRC}/bin/pg_version/pg_version \
${WRKSRC}/bin/psql/psql \
${WRKSRC}/bin/pg_dump/pg_dump \
${WRKSRC}/bin/pg_passwd/pg_passwd \
${PREFIX}/bin
@${LN} -sf ${PREFIX}/bin/postgres ${PREFIX}/bin/postmaster
@${INSTALL_SCRIPT} \
${WRKSRC}/bin/pg_dump/pg_dumpall \
${WRKSRC}/bin/cleardbdir/cleardbdir \
${WRKSRC}/bin/createdb/createdb \
${WRKSRC}/bin/createuser/createuser \
${WRKSRC}/bin/destroydb/destroydb \
${WRKSRC}/bin/destroyuser/destroyuser \
${WRKSRC}/bin/initdb/initdb \
${WRKSRC}/bin/initlocation/initlocation \
${PREFIX}/bin
@${ECHO_MSG} "installing in ${PREFIX}/lib"
@${INSTALL_DATA} \
${WRKSRC}/interfaces/libpq/libpq.a ${PREFIX}/lib
.if (${MACHINE_ARCH} != "alpha")
@${INSTALL_DATA} \
${WRKSRC}/interfaces/libpq/libpq.so.1.1 ${PREFIX}/lib
.endif
@${ECHO_MSG} "installing in ${PREFIX}/lib/pgsql"
@${MKDIR} ${PREFIX}/lib/pgsql
@${INSTALL_DATA} \
${WRKSRC}/backend/global1.bki.source \
${WRKSRC}/backend/global1.description \
${WRKSRC}/backend/local1_template1.bki.source \
${WRKSRC}/backend/local1_template1.description \
${WRKSRC}/backend/libpq/pg_hba.conf.sample \
${WRKSRC}/backend/optimizer/geqo/pg_geqo.sample \
${PREFIX}/lib/pgsql
@${ECHO_MSG} "installing in ${PREFIX}/include/pgsql"
@${MKDIR} ${PREFIX}/include/pgsql
@${INSTALL_DATA} \
${WRKSRC}/backend/fmgr.h \
${WRKSRC}/include/os.h \
${WRKSRC}/include/config.h \
${WRKSRC}/include/postgres.h \
${WRKSRC}/include/postgres_ext.h \
${WRKSRC}/interfaces/libpq/libpq-fe.h \
${WRKSRC}/interfaces/libpq/c.h \
${PREFIX}/include/pgsql
@${MKDIR} ${PREFIX}/include/pgsql/libpq
@${INSTALL_DATA} \
${WRKSRC}/include/libpq/pqcomm.h \
${WRKSRC}/include/libpq/libpq-fs.h \
${PREFIX}/include/pgsql/libpq
@${MKDIR} ${PREFIX}/include/pgsql/lib
@${INSTALL_DATA} \
${WRKSRC}/include/lib/dllist.h \
${PREFIX}/include/pgsql/lib
@${MKDIR} ${PREFIX}/include/pgsql/utils
@${INSTALL_DATA} \
${WRKSRC}/include/utils/geo_decls.h \
${WRKSRC}/include/utils/elog.h \
${WRKSRC}/include/utils/palloc.h \
${PREFIX}/include/pgsql/utils
@${MKDIR} ${PREFIX}/include/pgsql/access
@${INSTALL_DATA} \
${WRKSRC}/include/access/attnum.h \
${PREFIX}/include/pgsql/access
@${MKDIR} ${PREFIX}/include/pgsql/executor
@${INSTALL_DATA} \
${WRKSRC}/include/executor/spi.h \
${PREFIX}/include/pgsql/executor
@${MKDIR} ${PREFIX}/include/pgsql/commands
@${INSTALL_DATA} \
${WRKSRC}/include/commands/trigger.h \
${PREFIX}/include/pgsql/commands
.if defined( WITH_TCL ) && ${WITH_TCL} == yes
@${ECHO_MSG} "installing tcl/tk interface"
@${INSTALL_PROGRAM} \
${WRKSRC}/bin/pgtclsh/pgtclsh \
${WRKSRC}/bin/pgtclsh/pgtksh \
${PREFIX}/bin
@${INSTALL_DATA} \
${WRKSRC}/interfaces/libpgtcl/libpgtcl.a ${PREFIX}/lib
.if (${MACHINE_ARCH} != "alpha")
@${INSTALL_DATA} \
${WRKSRC}/interfaces/libpgtcl/libpgtcl.so.1.0 ${PREFIX}/lib
.endif
@${INSTALL_DATA} \
${WRKSRC}/interfaces/libpgtcl/libpgtcl.h ${PREFIX}/include/pgsql
.endif
@${ECHO_MSG} "installing in ${PREFIX}/man"
.for man in ${MAN1}
@${INSTALL_MAN} ${WRKSRC}/man/${man} ${PREFIX}/man/man1
.endfor
.for man in ${MAN3}
@${INSTALL_MAN} ${WRKSRC}/man/${man} ${PREFIX}/man/man3
.endfor
.for man in ${MAN5}
@${INSTALL_MAN} ${WRKSRC}/man/${man} ${PREFIX}/man/man5
.endfor
@${ECHO_MSG} "installing in ${PREFIX}/pgsql/man"
@${MKDIR} ${PREFIX}/pgsql/man/manl
.for man in ${MANL}
@${INSTALL_MAN} ${WRKSRC}/man/${man} ${PREFIX}/pgsql/man/manl
.endfor
@${LDCONFIG} -m ${PREFIX}/lib
post-install:
@ if [ ! -f ${PREFIX}/pgsql/.profile ]; then \
${ECHO} "PATH=${PATH}:${PREFIX}/pgsql/bin" \
${ECHO} "PATH=${PATH}" \
> ${PREFIX}/pgsql/.profile; \
${ECHO} "MANPATH=${MANPATH}:${PREFIX}/pgsql/bin" \
${ECHO} "MANPATH=${MANPATH}:${PREFIX}/pgsql/man" \
>> ${PREFIX}/pgsql/.profile; \
${ECHO} "PGLIB=${PREFIX}/pgsql/lib" \
${ECHO} "PGLIB=${PREFIX}/lib/pgsql" \
>> ${PREFIX}/pgsql/.profile; \
${ECHO} "# note: PGDATA overwrites the -D startup option" \
>> ${PREFIX}/pgsql/.profile; \
@ -94,21 +230,24 @@ post-install:
${ECHO} "#export TZ" \
>> ${PREFIX}/pgsql/.profile; \
fi
@ ${SED} -e "s=!!PREFIX!!=${PREFIX}=g" <${FILESDIR}/post-install-notes \
> ${PREFIX}/pgsql/post-install-notes
@ ${SED} -e "s=!!PREFIX!!=${PREFIX}=g" <${FILESDIR}/man.conf \
> ${PREFIX}/pgsql/man.conf
@ ${CP} -r ${WRKSRC}/bin/pgaccess ${PREFIX}/pgsql
@ chown -R pgsql:pgsql ${PREFIX}/pgsql
@ ${ECHO} 'Initializing PostgreSQL Databases - this may take a few minutes...'
@ ${LDCONFIG} -m ${PREFIX}/pgsql/lib
@ su -l pgsql -c '${PREFIX}/pgsql/bin/initdb --pglib=${PREFIX}/pgsql/lib --pgdata=${PREFIX}/pgsql/data'
@ su -l pgsql -c '${PREFIX}/bin/initdb --pglib=${PREFIX}/lib/pgsql --pgdata=${PREFIX}/pgsql/data'
@ ${SED} -e "s=!!PREFIX!!=${PREFIX}=g" < ${FILESDIR}/pgsql.sh.tmpl \
> ${PREFIX}/etc/rc.pgsql
@ chmod 554 ${PREFIX}/etc/rc.pgsql
@ chown root.pgsql ${PREFIX}/etc/rc.pgsql
@ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/pgsql
> ${PREFIX}/pgsql/rc.pgsql
@ chmod 554 ${PREFIX}/pgsql/rc.pgsql
@ chown root.pgsql ${PREFIX}/pgsql/rc.pgsql
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/pgsql
${CP} -r ${WRKDIR}/${DISTNAME}/doc/* ${PREFIX}/share/doc/pgsql
@${MKDIR} ${PREFIX}/share/doc/pgsql
@${CP} -r ${WRKDIR}/${DISTNAME}/doc/* ${PREFIX}/share/doc/pgsql
.endif
.if !defined(BATCH)
@ more -e ${FILESDIR}/post-install-notes
@ more -e ${PREFIX}/pgsql/post-install-notes
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,13 @@
# PostgreSQL SQL man page configuration file
#
_version BSD.2
_subdir catl manl
_build .l /usr/bin/nroff -man %s
_build .l.Z /usr/bin/zcat %s | /usr/bin/nroff -man
_build .l.gz /usr/bin/gunzip -c %s | /usr/bin/nroff -man
_default !!PREFIX!!/pgsql/man/
l !!PREFIX!!/pgsql/man/manl

View File

@ -1 +1 @@
MD5 (postgresql-6.2.1.tar.gz) = bd606dcab6b09a3a3d276d88b504a1d3
MD5 (postgresql-6.3.tar.gz) = 059ab23cb493811f510cd25c5ede9fb3

View File

@ -8,6 +8,32 @@ You may wish to subscribe to the PostgreSQL user-support mailing list.
Send an e-mail to pgsql-questions-request@postgresql.org with the
text "subscribe" in the message body.
If you build PostgreSQL with TCL support, then you can use the
TCL/TK based database frontend "pgaccess" for database operations.
The user pgsql has been created with a home directory of
!!PREFIX!!/pgsql. A sample startup script, rc.pgsql, can be
found in that directory. Other directories used by PostgreSQL are:
executables !!PREFIX!!/bin
libraries !!PREFIX!!/lib
pgsql lib directory !!PREFIX!!/lib/pgsql
include files !!PREFIX!!/include/pgsql
man pages !!PREFIX!!/man
doc files !!PREFIX!!/share/doc/pgsql
database files !!PREFIX!!/pgsql
PostgreSQL has a section for SQL man pages. These pages have
been installed in !!PREFIX!!/pgsql/man/manl. To access these
pages use the command:
man -C !!PREFIX!!/pgsql/man.conf man-page
If this does not work you must also add !!PREFIX!!/pgsql/man
to your MANPATH.
If you build PostgreSQL with TCL support you can use the TCL/TK based
database frontend "pgaccess" for database operations. See:
!!PREFIX!!/pgsql/pgaccess/README.pga
for more information on pgaccess.

View File

@ -0,0 +1,32 @@
--- configure.orig Mon Mar 2 06:55:42 1998
+++ configure Mon Mar 9 19:40:42 1998
@@ -825,10 +825,11 @@
# Check whether --with-tcl or --without-tcl was given.
if test "${with_tcl+set}" = set; then
withval="$with_tcl"
- USE_TCL=true echo "$ac_t""enabled" 1>&6
+ USE_TCL=true
+ echo "$ac_t""enabled" 1>&6
else
- USE_TCL=false echo "$ac_t""disabled" 1>&6
-
+ USE_TCL=false
+ echo "$ac_t""disabled" 1>&6
fi
export USE_TCL
@@ -839,10 +840,11 @@
# Check whether --with-perl or --without-perl was given.
if test "${with_perl+set}" = set; then
withval="$with_perl"
- USE_PERL=true echo "$ac_t""enabled" 1>&6
+ USE_PERL=true
+ echo "$ac_t""enabled" 1>&6
else
- USE_PERL=false echo "$ac_t""disabled" 1>&6
-
+ USE_PERL=false
+ echo "$ac_t""disabled" 1>&6
fi
export USE_PERL

View File

@ -1,10 +1,7 @@
--- bin/initdb/initdb.sh.orig Wed Apr 2 07:09:13 1997
+++ bin/initdb/initdb.sh Wed Apr 2 07:09:33 1997
@@ -344,6 +344,5 @@
--- bin/initdb/initdb.sh.~1~ Wed Feb 25 05:09:02 1998
+++ bin/initdb/initdb.sh Mon Mar 9 14:33:43 1998
@@ -386,3 +386,4 @@
echo "vacuum analyze" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
grep -v "^DEBUG:"
if [ $debug -eq 0 ]; then
echo "vacuuming template1"
- echo "vacuum" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
- grep -v "^DEBUG:"
+ echo "vacuum" | postgres -o /dev/null -F -Q -D$PGDATA template1 > /dev/null
fi
+exit 0

View File

@ -1,29 +0,0 @@
--- configure.orig Wed Nov 19 17:53:21 1997
+++ configure Wed Nov 19 17:53:08 1997
@@ -576,7 +576,7 @@
sunos*) PORTNAME='sunos4' ;;
linux*) PORTNAME='linux' ;;
bsdi*) PORTNAME='bsdi' ;;
- freebsd*|netbsd*) PORTNAME='BSD44_derived';;
+ freebsd*|netbsd*|openbsd*) PORTNAME='BSD44_derived';;
dgux*) PORTNAME='dgux';;
aix*) PORTNAME='aix';;
nextstep*) PORTNAME='nextstep';;
@@ -691,7 +691,7 @@
echo "enter 'none' or new directories to override default"
echo ""
$ECHO_N "Additional directories to search for include files { $SRCH_INC }: $ECHO_C"
-read a
+a=$SRCH_INC
if test "$a." = "none."
then
SRCH_INC=
@@ -708,7 +708,7 @@
echo "- setting CPPFLAGS=$CPPFLAGS"
$ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C"
-read a
+a=$SRCH_LIB
if test "$a." = "none."
then
SRCH_LIB=

View File

@ -1,12 +1,15 @@
--- template/openbsd Sat Jun 14 20:13:06 1997
+++ /dev/null Sat Jun 14 20:12:51 1997
@@ -0,0 +1,9 @@
+AROPT:cq
+SHARED_LIB:-fpic -DPIC
+CFLAGS:-pipe -O2
+SRCH_INC:/usr/local/include
+SRCH_LIB:/usr/local/lib
--- template/openbsd.~1~ Mon Jan 19 19:11:11 1998
+++ template/openbsd Wed Mar 4 15:45:05 1998
@@ -1,9 +1,9 @@
AROPT:cq
SHARED_LIB:-fpic -DPIC
-CFLAGS:-O2 -m486 -pipe
+CFLAGS:-O2 -pipe
SRCH_INC:/usr/local/include
SRCH_LIB:/usr/local/lib
-USE_LOCALE:no
+USE_LOCALE:yes
+DLSUFFIX:.so
+YFLAGS:-d
DLSUFFIX:.so
YFLAGS:-d
-YACC:bison -y
+YACC:

View File

@ -1,26 +0,0 @@
--- Makefile.global.in.orig Sat Oct 4 23:21:46 1997
+++ Makefile.global.in Sat Oct 4 23:27:22 1997
@@ -162,15 +162,15 @@
# USE_TCL= true
# customize these to your site's needs
#
-TCL_INCDIR= /home/tools/include
-TCL_LIBDIR= /home/tools/lib
-TCL_LIB= -ltcl7.5
-TK_INCDIR= /home/tools/include
-TK_LIBDIR= /home/tools/lib
-TK_LIB= -ltk4.1
+TCL_INCDIR= /usr/local/include/tcl8.0
+TCL_LIBDIR= /usr/local/lib
+TCL_LIB= -ltcl80
+TK_INCDIR= /usr/local/include/tk8.0
+TK_LIBDIR= /usr/local/lib
+TK_LIB= -ltk80
-X11_INCDIR= /usr/include
-X11_LIBDIR= /usr/lib
+X11_INCDIR= /usr/X11R6/include
+X11_LIBDIR= /usr/X11R6/lib
X11_LIB= -lX11 @SOCKET_LIB@ @NSL_LIB@

View File

@ -1,47 +0,0 @@
--- interfaces/libpgtcl/Makefile.orig Mon Sep 29 23:02:46 1997
+++ interfaces/libpgtcl/Makefile Sun Oct 5 02:12:00 1997
@@ -39,6 +39,14 @@
endif
endif
+ifeq ($(PORTNAME), BSD44_derived)
+ CFLAGS += $(CFLAGS_SL)
+ shlib := libpgtcl.so.1.0
+ install-shlib-dep := install-shlib
+ LDFLAGS_SL = -x -Bshareable -Bforcearchive
+ LDFLAGS += -L $(SRCDIR)/interfaces/libpq -lpq
+endif
+
ifeq ($(PORTNAME), i386_solaris)
CFLAGS+= -fPIC
endif
@@ -56,10 +64,10 @@
endif
$(RANLIB) libpgtcl.a
-libpgtcl.so.1: $(OBJS)
- $(CC) $(LDFLAGS) -shared $(OBJS) -o libpgtcl.so.1
+libpgtcl.so.1.0: $(OBJS)
+ $(CC) $(LDFLAGS) -shared $(OBJS) -o libpgtcl.so.1.0
rm -f libpgtcl.so
- ln -s libpgtcl.so.1 libpgtcl.so
+ ln -s libpgtcl.so.1.0 libpgtcl.so
.PHONY: beforeinstall-headers install-headers
.PHONY: install install-libpgtcl
@@ -75,11 +83,11 @@
install-libpgtcl: libpgtcl.a
$(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(DESTDIR)$(LIBDIR)/libpgtcl.a
-install-shlib: libpgtcl.so.1
- $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.so.1 \
- $(DESTDIR)$(LIBDIR)/libpgtcl.so.1
+install-shlib: libpgtcl.so.1.0
+ $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.so.1.0 \
+ $(DESTDIR)$(LIBDIR)/libpgtcl.so.1.0
rm -f $(DESTDIR)$(LIBDIR)/libpgtcl.so
- ln -s libpgtcl.so.1 $(DESTDIR)$(LIBDIR)/libpgtcl.so
+ ln -s libpgtcl.so.1.0 $(DESTDIR)$(LIBDIR)/libpgtcl.so
.PHONY: clean
clean:

View File

@ -1,11 +0,0 @@
--- interfaces/libpq/Makefile.orig Sun Oct 5 02:00:11 1997
+++ interfaces/libpq/Makefile Sun Oct 5 02:00:31 1997
@@ -151,7 +151,7 @@
install-shlib: $(shlib)
$(INSTALL) $(INSTL_LIB_OPTS) $(shlib) $(DESTDIR)$(LIBDIR)/$(shlib)
rm -f $(DESTDIR)$(LIBDIR)/libpq.so
- ln -s libpq.so.1 $(DESTDIR)$(LIBDIR)/libpq.so
+ ln -s libpq.so.1.0 $(DESTDIR)$(LIBDIR)/libpq.so
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend

View File

@ -1,11 +0,0 @@
--- GNUmakefile.in.orig Wed Oct 8 22:30:13 1997
+++ GNUmakefile.in Wed Oct 8 22:31:14 1997
@@ -65,7 +65,7 @@
ifneq ($(wildcard man), )
$(MAKE) -C man install
endif
- more -e ../register.txt
+ cat ../register.txt
clean:
@if test $(PORTNAME) = UNDEFINED; then \

View File

@ -22,3 +22,7 @@ support mailing list (questions@PostgreSQL.ORG).
PostgreSQL is free and the complete source is available.
More information and documentation, visit: http://www.PostgreSQL.ORG/
NOTE: PostgreSQL requires an OpenBSD kernel generated with options
SYSVMSG, SYSVSEM, and SYSVSHM.

View File

@ -1,186 +1,133 @@
etc/rc.pgsql
pgsql/.profile
pgsql/bin/cleardbdir
pgsql/bin/createdb
pgsql/bin/createuser
pgsql/bin/destroydb
pgsql/bin/destroyuser
pgsql/bin/initdb
pgsql/bin/pg_dump
pgsql/bin/pg_dumpall
pgsql/bin/pg_id
pgsql/bin/pg_passwd
pgsql/bin/pg_version
pgsql/bin/pgtclsh
pgsql/bin/pgtksh
pgsql/bin/postgres
pgsql/bin/postmaster
pgsql/bin/psql
pgsql/data/PG_VERSION
pgsql/data/base/template1/PG_VERSION
pgsql/data/base/template1/pg_aggregate
pgsql/data/base/template1/pg_am
pgsql/data/base/template1/pg_amop
pgsql/data/base/template1/pg_amproc
pgsql/data/base/template1/pg_attnameind
pgsql/data/base/template1/pg_attnumind
pgsql/data/base/template1/pg_attrdef
pgsql/data/base/template1/pg_attrdefind
pgsql/data/base/template1/pg_attrelidind
pgsql/data/base/template1/pg_attribute
pgsql/data/base/template1/pg_class
pgsql/data/base/template1/pg_classnameind
pgsql/data/base/template1/pg_classoidind
pgsql/data/base/template1/pg_index
pgsql/data/base/template1/pg_inheritproc
pgsql/data/base/template1/pg_inherits
pgsql/data/base/template1/pg_internal.init
pgsql/data/base/template1/pg_ipl
pgsql/data/base/template1/pg_language
pgsql/data/base/template1/pg_listener
pgsql/data/base/template1/pg_opclass
pgsql/data/base/template1/pg_operator
pgsql/data/base/template1/pg_parg
pgsql/data/base/template1/pg_proc
pgsql/data/base/template1/pg_procidind
pgsql/data/base/template1/pg_procnameind
pgsql/data/base/template1/pg_procsrcind
pgsql/data/base/template1/pg_relcheck
pgsql/data/base/template1/pg_relcheckind
pgsql/data/base/template1/pg_rewrite
pgsql/data/base/template1/pg_statistic
pgsql/data/base/template1/pg_trigger
pgsql/data/base/template1/pg_trigrelidind
pgsql/data/base/template1/pg_type
pgsql/data/base/template1/pg_typeidind
pgsql/data/base/template1/pg_typenameind
pgsql/data/base/template1/pg_version
pgsql/data/pg_database
pgsql/data/pg_defaults
pgsql/data/pg_demon
pgsql/data/pg_geqo.sample
pgsql/data/pg_group
pgsql/data/pg_hba.conf
pgsql/data/pg_hosts
pgsql/data/pg_log
pgsql/data/pg_magic
pgsql/data/pg_server
pgsql/data/pg_time
pgsql/data/pg_user
pgsql/data/pg_variable
pgsql/include/access/attnum.h
pgsql/include/c.h
pgsql/include/config.h
pgsql/include/fmgr.h
pgsql/include/lib/dllist.h
pgsql/include/libpgtcl.h
pgsql/include/libpq-fe.h
pgsql/include/libpq/libpq-fs.h
pgsql/include/libpq/pqcomm.h
pgsql/include/os.h
pgsql/include/postgres.h
pgsql/include/postgres_ext.h
pgsql/include/utils/elog.h
pgsql/include/utils/geo_decls.h
pgsql/include/utils/palloc.h
pgsql/lib/global1.bki.source
pgsql/lib/libpgtcl.a
pgsql/lib/libpgtcl.so
pgsql/lib/libpgtcl.so.1.0
pgsql/lib/libpq.a
pgsql/lib/libpq.so
pgsql/lib/libpq.so.1.0
pgsql/lib/local1_template1.bki.source
pgsql/lib/pg_geqo.sample
pgsql/lib/pg_hba.conf.sample
pgsql/man/man1/cleardbdir.1
pgsql/man/man1/createdb.1
pgsql/man/man1/createuser.1
pgsql/man/man1/destroydb.1
pgsql/man/man1/destroyuser.1
pgsql/man/man1/initdb.1
pgsql/man/man1/ipcclean.1
pgsql/man/man1/monitor.1
pgsql/man/man1/pg_dump.1
pgsql/man/man1/pg_dumpall.1
pgsql/man/man1/pg_passwd.1
pgsql/man/man1/pgintro.1
pgsql/man/man1/postgres.1
pgsql/man/man1/postmaster.1
pgsql/man/man1/psql.1
pgsql/man/man3/catalogs.3
pgsql/man/man3/large_objects.3
pgsql/man/man3/libpq.3
pgsql/man/man3/oracle_compat.3
pgsql/man/man3/pgbuiltin.3
pgsql/man/man5/bki.5
pgsql/man/man5/page.5
pgsql/man/man5/pg_hba.conf.5
pgsql/man/manl/abort.l
pgsql/man/manl/alter_table.l
pgsql/man/manl/begin.l
pgsql/man/manl/close.l
pgsql/man/manl/cluster.l
pgsql/man/manl/commit.l
pgsql/man/manl/copy.l
pgsql/man/manl/create_aggregate.l
pgsql/man/manl/create_database.l
pgsql/man/manl/create_function.l
pgsql/man/manl/create_index.l
pgsql/man/manl/create_operator.l
pgsql/man/manl/create_rule.l
pgsql/man/manl/create_sequence.l
pgsql/man/manl/create_table.l
pgsql/man/manl/create_trigger.l
pgsql/man/manl/create_type.l
pgsql/man/manl/create_version.l
pgsql/man/manl/create_view.l
pgsql/man/manl/declare.l
pgsql/man/manl/delete.l
pgsql/man/manl/drop.l
pgsql/man/manl/drop_aggregate.l
pgsql/man/manl/drop_database.l
pgsql/man/manl/drop_function.l
pgsql/man/manl/drop_index.l
pgsql/man/manl/drop_operator.l
pgsql/man/manl/drop_rule.l
pgsql/man/manl/drop_sequence.l
pgsql/man/manl/drop_table.l
pgsql/man/manl/drop_trigger.l
pgsql/man/manl/drop_type.l
pgsql/man/manl/drop_view.l
pgsql/man/manl/end.l
pgsql/man/manl/explain.l
pgsql/man/manl/fetch.l
pgsql/man/manl/grant.l
pgsql/man/manl/insert.l
pgsql/man/manl/listen.l
pgsql/man/manl/load.l
pgsql/man/manl/move.l
pgsql/man/manl/notify.l
pgsql/man/manl/purge.l
pgsql/man/manl/rename.l
pgsql/man/manl/reset.l
pgsql/man/manl/revoke.l
pgsql/man/manl/rollback.l
pgsql/man/manl/select.l
pgsql/man/manl/set.l
pgsql/man/manl/show.l
pgsql/man/manl/sql.l
pgsql/man/manl/update.l
pgsql/man/manl/vacuum.l
pgsql/post-install-notes
share/doc/pgsql/FAQ
share/doc/pgsql/FAQ-Irix
share/doc/pgsql/FAQ-Linux
share/doc/pgsql/README.GEQO
share/doc/pgsql/README.fsync
share/doc/pgsql/README.support
share/doc/pgsql/TODO
share/doc/pgsql/TODO.GEQO
share/doc/pgsql/bug.template
share/doc/pgsql/libpgtcl.doc
share/doc/pgsql/manual/admin.html
bin/postgres
bin/postmaster
bin/pgtclsh
bin/pgtksh
bin/pg_id
bin/pg_version
bin/psql
bin/pg_dump
bin/pg_dumpall
bin/pg_passwd
bin/cleardbdir
bin/createdb
bin/createuser
bin/destroydb
bin/destroyuser
bin/initdb
bin/initlocation
lib/libpq.a
lib/libpq.so.1.1
lib/libpgtcl.a
lib/libpgtcl.so.1.0
lib/pgsql/global1.bki.source
lib/pgsql/global1.description
lib/pgsql/local1_template1.bki.source
lib/pgsql/local1_template1.description
lib/pgsql/pg_hba.conf.sample
lib/pgsql/pg_geqo.sample
man/man1/cleardbdir.1
man/man1/createdb.1
man/man1/createuser.1
man/man1/destroydb.1
man/man1/destroyuser.1
man/man1/ecpg.1
man/man1/initdb.1
man/man1/initlocation.1
man/man1/ipcclean.1
man/man1/pg_dump.1
man/man1/pg_dumpall.1
man/man1/psql.1
man/man1/pg_passwd.1
man/man1/pgintro.1
man/man1/postgres.1
man/man1/postmaster.1
man/man3/catalogs.3
man/man3/large_objects.3
man/man3/libpq.3
man/man3/oracle_compat.3
man/man3/pgbuiltin.3
man/man5/bki.5
man/man5/page.5
man/man5/pg_hba.conf.5
include/pgsql/fmgr.h
include/pgsql/os.h
include/pgsql/config.h
include/pgsql/postgres.h
include/pgsql/postgres_ext.h
include/pgsql/libpq-fe.h
include/pgsql/c.h
include/pgsql/libpq/pqcomm.h
include/pgsql/libpq/libpq-fs.h
include/pgsql/lib/dllist.h
include/pgsql/utils/geo_decls.h
include/pgsql/utils/elog.h
include/pgsql/utils/palloc.h
include/pgsql/access/attnum.h
include/pgsql/executor/spi.h
include/pgsql/commands/trigger.h
include/pgsql/libpgtcl.h
share/doc/pgsql/src/graphics/connections.ag
share/doc/pgsql/src/graphics/clientserver.ag
share/doc/pgsql/src/graphics/clientserver.gif
share/doc/pgsql/src/graphics/catalogs.gif
share/doc/pgsql/src/graphics/connections.gif
share/doc/pgsql/src/graphics/layout.ag
share/doc/pgsql/src/graphics/layout.gif
share/doc/pgsql/src/sgml/xtypes.sgml
share/doc/pgsql/src/sgml/admin.sgml
share/doc/pgsql/src/sgml/advanced.sgml
share/doc/pgsql/src/sgml/arch-dev.sgml
share/doc/pgsql/src/sgml/arch-pg.sgml
share/doc/pgsql/src/sgml/arch.sgml
share/doc/pgsql/src/sgml/array.sgml
share/doc/pgsql/src/sgml/biblio.sgml
share/doc/pgsql/src/sgml/compiler.sgml
share/doc/pgsql/src/sgml/contacts.sgml
share/doc/pgsql/src/sgml/datatype.sgml
share/doc/pgsql/src/sgml/dfunc.sgml
share/doc/pgsql/src/sgml/docguide.sgml
share/doc/pgsql/src/sgml/ecpg.sgml
share/doc/pgsql/src/sgml/environ.sgml
share/doc/pgsql/src/sgml/extend.sgml
share/doc/pgsql/src/sgml/func-ref.sgml
share/doc/pgsql/src/sgml/geqo.sgml
share/doc/pgsql/src/sgml/gist.sgml
share/doc/pgsql/src/sgml/inherit.sgml
share/doc/pgsql/src/sgml/intro.sgml
share/doc/pgsql/src/sgml/install.sgml
share/doc/pgsql/src/sgml/intro-pg.sgml
share/doc/pgsql/src/sgml/jdbc.sgml
share/doc/pgsql/src/sgml/libpgtcl.sgml
share/doc/pgsql/src/sgml/libpq.sgml
share/doc/pgsql/src/sgml/lobj.sgml
share/doc/pgsql/src/sgml/manage.sgml
share/doc/pgsql/src/sgml/odbc.sgml
share/doc/pgsql/src/sgml/pgaccess.sgml
share/doc/pgsql/src/sgml/ports.sgml
share/doc/pgsql/src/sgml/postgres.sgml
share/doc/pgsql/src/sgml/programmer.sgml
share/doc/pgsql/src/sgml/protocol.sgml
share/doc/pgsql/src/sgml/psql.sgml
share/doc/pgsql/src/sgml/query-ug.sgml
share/doc/pgsql/src/sgml/query.sgml
share/doc/pgsql/src/sgml/recovery.sgml
share/doc/pgsql/src/sgml/regress.sgml
share/doc/pgsql/src/sgml/release.sgml
share/doc/pgsql/src/sgml/rules.sgml
share/doc/pgsql/src/sgml/spi.sgml
share/doc/pgsql/src/sgml/start-ag.sgml
share/doc/pgsql/src/sgml/start.sgml
share/doc/pgsql/src/sgml/storage.sgml
share/doc/pgsql/src/sgml/trigger.sgml
share/doc/pgsql/src/sgml/tutorial.sgml
share/doc/pgsql/src/sgml/user.sgml
share/doc/pgsql/src/sgml/xaggr.sgml
share/doc/pgsql/src/sgml/xfunc.sgml
share/doc/pgsql/src/sgml/xindex.sgml
share/doc/pgsql/src/sgml/xoper.sgml
share/doc/pgsql/src/sgml/Makefile
share/doc/pgsql/src/Makefile
share/doc/pgsql/manual/xtypes.html
share/doc/pgsql/manual/advanced.html
share/doc/pgsql/manual/appenda.html
share/doc/pgsql/manual/architec.html
@ -201,28 +148,51 @@ share/doc/pgsql/manual/xaggr.html
share/doc/pgsql/manual/xfunc.html
share/doc/pgsql/manual/xindex.html
share/doc/pgsql/manual/xoper.html
share/doc/pgsql/manual/xtypes.html
share/doc/pgsql/spi.txt
share/doc/pgsql/manual/admin.html
share/doc/pgsql/user.ps.gz
share/doc/pgsql/tutorial.tar.gz
share/doc/pgsql/tutorial.ps.gz
share/doc/pgsql/trigger.txt
share/doc/pgsql/spi.txt
share/doc/pgsql/programmer.tar.gz
share/doc/pgsql/programmer.ps.gz
share/doc/pgsql/postgres.tar.gz
share/doc/pgsql/libpgtcl.doc
share/doc/pgsql/bug.template
share/doc/pgsql/admin.tar.gz
share/doc/pgsql/admin.ps.gz
share/doc/pgsql/TODO.GEQO
share/doc/pgsql/TODO
share/doc/pgsql/README.support
share/doc/pgsql/README.fsync
share/doc/pgsql/README.GEQO
share/doc/pgsql/Makefile
share/doc/pgsql/FAQ_Linux
share/doc/pgsql/FAQ_Irix
share/doc/pgsql/FAQ_FreeBSD
share/doc/pgsql/userguide.ps
share/doc/pgsql/FAQ
share/doc/pgsql/user.tar.gz
@dirrm lib/pgsql
@dirrm include/pgsql/libpq
@dirrm include/pgsql/lib
@dirrm include/pgsql/utils
@dirrm include/pgsql/access
@dirrm include/pgsql/executor
@dirrm include/pgsql/commands
@dirrm include/pgsql
@dirrm share/doc/pgsql/src/graphics
@dirrm share/doc/pgsql/src/sgml
@dirrm share/doc/pgsql/src
@dirrm share/doc/pgsql/manual
@dirrm share/doc/pgsql
@dirrm pgsql/bin
@dirrm pgsql/data/base/template1
@dirrm pgsql/data/base
@dirrm pgsql/data
@dirrm pgsql/include/access
@dirrm pgsql/include/include
@dirrm pgsql/include/lib
@dirrm pgsql/include/libpq
@dirrm pgsql/include/port/BSD44_derived
@dirrm pgsql/include/port
@dirrm pgsql/include/utils
@dirrm pgsql/include
@dirrm pgsql/lib
@dirrm pgsql/man/man1
@dirrm pgsql/man/man3
@dirrm pgsql/man/man5
@dirrm pgsql/man/manl
@dirrm pgsql/man
@dirrm pgsql
@unexec echo ""
@unexec echo " *** PostgreSQL binaries, libraries, and documentation files"
@unexec echo " *** have been removed. The directory %D/pgsql contains your"
@unexec echo " *** PostgreSQL database files. This directory has NOT been"
@unexec echo " *** removed. If you wish to remove your database files issue"
@unexec echo " *** the command:"
@unexec echo " *** rm -rf %D/pgsql"
@unexec echo " *** as root. You may also need to remove any automatic startup"
@unexec echo " *** from /etc/rc.local and the pgsql user from the passwd file."
@unexec echo ""

View File

@ -34,6 +34,7 @@ print "pgsql user using gid $pgGID\n";
print( "/usr/bin/chpass -a \"pgsql:*:$pgUID\:$pgGID\:\:\:\:PostgreSQL pseudo-user:$ENV{'PREFIX'}/pgsql:/bin/sh\"" );
system( "/usr/bin/chpass -a \"pgsql:*\:$pgUID\:$pgGID\:\:\:\:PostgreSQL pseudo-user\:$ENV{'PREFIX'}/pgsql\:/bin/sh\"" );
print( "\n" );
sub append_file {
local($file,@list) = @_;