summaryrefslogtreecommitdiff
path: root/databases/postgresql90-server/Makefile
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@FreeBSD.org>1997-04-10 19:15:12 +0000
committerMarc G. Fournier <scrappy@FreeBSD.org>1997-04-10 19:15:12 +0000
commit3c5198c1f3d64c80acffd44e32192862950c4d8b (patch)
treecaa735167d43e5b13e9285504017fc687155bd51 /databases/postgresql90-server/Makefile
parentfix handling of builtin limit command. (diff)
Update postgresql port from v1.09 to v6.0 using files from PostgreSQL
port, which is going to be removed
Notes
Notes: svn path=/head/; revision=6177
Diffstat (limited to 'databases/postgresql90-server/Makefile')
-rw-r--r--databases/postgresql90-server/Makefile99
1 files changed, 47 insertions, 52 deletions
diff --git a/databases/postgresql90-server/Makefile b/databases/postgresql90-server/Makefile
index 8fe4bc783e44..d75977ce0a5c 100644
--- a/databases/postgresql90-server/Makefile
+++ b/databases/postgresql90-server/Makefile
@@ -1,66 +1,61 @@
-# New ports collection makefile for: postgres95
-# Version required: 1.08
-# Date created: Oct 9 1996
-# Whom: Matthew Stein <matt@bdd.net>
+# New ports collection makefile for: PostgreSQL
+# Version required: 6.0
+# Date created: April 2, 1997
+# Whom: Marc G. Fournier <scrappy@FreeBSD.ORG>
#
-# $Id: Makefile,v 1.7 1997/04/02 09:15:26 scrappy Exp $
+# $Id: Makefile,v 1.2 1997/04/02 18:17:50 jfitz Exp $
-PKGNAME= postgres95-1.08
+DISTNAME= postgresql-v6.0
+PKGNAME= postgresql-6.0
CATEGORIES= databases
-MASTER_SITES= ftp://ftp.PostgreSQL.org/pub/oldstuff/ \
- ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/oldstuff/ \
- ftp://postgres95.vnet.net:/pub/postgres95/oldstuff/ \
- ftp://ftp.itm.tu-clausthal.de/pub/mirrors/postgres95/oldstuff/ \
- ftp://rocker.sch.bme.hu/pub/mirrors/postgreSQL/oldstuff/ \
- ftp://ftp.luga.or.at/pub/postgres95/
-
-DISTFILES= postgres95-1.08.tar.gz \
- flex-2.5.2.tgz
+MASTER_SITES= ftp://ftp.PostgreSQL.org/pub/ \
+ ftp://ftp.luga.or.at/pub/postgres95/ \
+ ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/
-MAINTAINER= matt@bdd.net
-
-NO_PACKAGE= "Requires postgres uid"
-WRKSRC= ${WRKDIR}/postgres95/src/
-MAKE_ENV+= WRKSRC=${WRKSRC} WRKDIR=${WRKDIR}
-USE_GMAKE= yes
-
-pre-fetch:
-.if exists(/usr/lib/libc.so.3.0)
- @ ${CAT} ${FILESDIR}/md5.libc30 ${FILESDIR}/md5.all > ${FILESDIR}/md5
-MASTER_SITES+= ftp://eddie.cis.uoguelph.ca/pub/flex/ \
- ftp://ftp.teamos2.org/pub/flex/ \
- ftp://ftp.bdd.net/pub/flex/
-.else
- @ ${CAT} ${FILESDIR}/md5.libc22 ${FILESDIR}/md5.all > ${FILESDIR}/md5
-MASTER_SITES+= ftp://ftp.freebsd.org/pub/FreeBSD/packages-2.1.5/All/
-.endif
+MAINTAINER= scrappy@FreeBSD.ORG
+
+NO_PACKAGE= "Requires pgsql uid"
+WRKSRC= ${WRKDIR}/src
+USE_GMAKE= YES
+MAKEFILE= GNUmakefile
+
+MAN1= createdb.1 psql.1 unix.1 postgres.1 pg_dumpall.1 monitor.1 \
+ initdb.1 ipcclean.1 destroydb.1 cleardbdir.1 createuser.1 \
+ destroyuser.1 pg_dump.1 postmaster.1
+MAN3= libpq.3 large_objects.3 built-in.3 catalogs.3
+MAN5= pg_hba.conf.5 bki.5 page.5
+MANL= vacuum.l sql.l select.l update.l revoke.l rename.l purge.l \
+ load.l listen.l insert.l fetch.l end.l grant.l drop_rule.l \
+ drop_type.l drop_function.l create_aggregate.l drop.l \
+ delete.l destroydb.l create_view.l create_rule.l \
+ create_index.l copy.l cluster.l create_database.l \
+ create_function.l begin.l abort.l alter_table.l close.l \
+ create_operator.l create_table.l create_type.l \
+ create_version.l drop_aggregate.l drop_operator.l explain.l \
+ notify.l remove_view.l rollback.l commit.l drop_index.l
+MANPREFIX= ${PREFIX}/pgsql
pre-install:
- @ ${MKDIR} ${PREFIX}/postgres95
+ @ ${MKDIR} ${PREFIX}/pgsql
@ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
post-install:
-.if !defined(NOMANCOMPRESS)
- @ for file in ${PREFIX}/postgres95/man/man[135l]/*; do \
- gzip -9nf $$file ; \
- done
-.endif
- @ chown -R postgres:postgres ${PREFIX}/postgres95
- @ echo 'Initializing Postgres95 Databases - this may take a few minutes...'
- @ su -l postgres -c ${PREFIX}/postgres95/bin/initdb
- @ ${MKDIR} ${PREFIX}/etc/rc.d
- @ if [ ! -f ${PREFIX}/etc/rc.d/postgres95.sh ]; then \
- echo "Installing ${PREFIX}/etc/rc.d/postgres95.sh startup file."; \
- echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/postgres95.sh; \
- echo "[ -x ${PREFIX}/postgres95/bin/postmaster ] && su -l postgres -c ${PREFIX}/postgres95/bin/postmaster & && echo -n ' postgres95'" >> ${PREFIX}/etc/rc.d/postgres95.sh; \
- chmod 751 ${PREFIX}/etc/rc.d/postgres95.sh; \
+ @ chown -R pgsql:pgsql ${PREFIX}/pgsql
+ @ if [ ! -f ${PREFIX}/pgsql/.profile ]; then \
+ echo "PATH=\${PATH}:${PREFIX}/pgsql/bin" > ${PREFIX}/pgsql/.profile; \
+ echo "export PATH" >> ${PREFIX}/pgsql/.profile; \
+ fi
+ @ echo 'Initializing PostgreSQL Databases - this may take a few minutes...'
+ @ su -l pgsql -c '${PREFIX}/pgsql/bin/initdb --pglib=${PREFIX}/pgsql/lib --pgdata=${PREFIX}/pgsql/data'
+ @ if [ ! -f ${PREFIX}/etc/rc.d/postgresql.sh ]; then \
+ echo "Installing ${PREFIX}/etc/rc.d/postgresql.sh startup file."; \
+ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/postgresql.sh; \
+ echo "[ -x ${PREFIX}/pgsql/bin/postmaster ] && su -l pgsql -c '${PREFIX}/pgsql/bin/postmaster -D${PREFIX}/pgsql/data -o -F > ${PREFIX}/pgsql/errlog &' && echo -n ' pgsql'" >> ${PREFIX}/etc/rc.d/postgresql.sh; \
+ chmod 751 ${PREFIX}/etc/rc.d/postgresql.sh; \
fi
- @ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/postgres95
-.ifndef(BATCH)
+ @ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/pgsql
+.if !defined(BATCH)
@ more -e ${FILESDIR}/post-install-notes
.endif
-pre-clean:
- @ ${RM} -f ${FILESDIR}/md5
-
.include <bsd.port.mk>