summaryrefslogtreecommitdiffstats
path: root/databases/postgresql7/Makefile
diff options
context:
space:
mode:
authorjfitz <jfitz@FreeBSD.org>1996-09-23 22:40:15 +0000
committerjfitz <jfitz@FreeBSD.org>1996-09-23 22:40:15 +0000
commit4d5246b270a1ddcd8403d3f85adccc7a8ecc92b8 (patch)
tree25b6a3179deae61aa77de1199c961eb1fdf447eb /databases/postgresql7/Makefile
parent212dc87b45243cfeb5746ca50ce2ca741f66a3d0 (diff)
downloadFreeBSD-ports-4d5246b270a1ddcd8403d3f85adccc7a8ecc92b8.zip
FreeBSD-ports-4d5246b270a1ddcd8403d3f85adccc7a8ecc92b8.tar.gz
Import of Postgres95, a next-generation DMBS research prototype.
Reviewed by: jfitz@FreeBSD.ORG Submitted by: Matthew Stein <matt@bdd.net>
Diffstat (limited to 'databases/postgresql7/Makefile')
-rw-r--r--databases/postgresql7/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/databases/postgresql7/Makefile b/databases/postgresql7/Makefile
new file mode 100644
index 0000000..03e477b
--- /dev/null
+++ b/databases/postgresql7/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: postgres95
+# Version required: 1.06
+# Date created: Sep 14 1996
+# Whom: Matthew Stein <matt@bdd.net>
+#
+# $Id$
+
+PKGNAME= postgres95-1.06
+CATEGORIES+= databases
+MASTER_SITES= ftp://ftp.ki.net/pub/postgres95/oldstuff/ \
+ ftp://ftp.luga.or.at/pub/postgres95/ \
+ ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/ \
+ ftp://cal011111.student.utwente.nl/pub/postgres95/
+
+DISTFILES= postgres95-1.05.tar.gz \
+ postgres95-1.05-1.06.tar.gz \
+ flex-2.5.2.tgz
+
+MAINTAINER= matt@bdd.net
+
+NO_PACKAGE= yes
+
+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
+
+pre-install:
+ @ ${MKDIR} -p ${PREFIX}/postgres95
+ @ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
+
+post-install:
+ @ 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} -p ${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; \
+ fi
+ @ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/postgres95
+.ifndef(BATCH)
+ @ more -e ${FILESDIR}/post-install-notes
+.endif
+
+pre-clean:
+ @ ${RM} -f ${FILESDIR}/md5
+
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud