1996-09-23 22:40:15 +00:00
|
|
|
# New ports collection makefile for: postgres95
|
1996-10-10 12:54:03 +00:00
|
|
|
# Version required: 1.08
|
|
|
|
# Date created: Oct 9 1996
|
1996-09-23 22:40:15 +00:00
|
|
|
# Whom: Matthew Stein <matt@bdd.net>
|
|
|
|
#
|
1997-04-02 09:15:26 +00:00
|
|
|
# $Id: Makefile,v 1.6 1996/12/07 12:49:35 asami Exp $
|
1996-09-23 22:40:15 +00:00
|
|
|
|
1996-10-10 12:54:03 +00:00
|
|
|
PKGNAME= postgres95-1.08
|
1996-11-17 03:18:45 +00:00
|
|
|
CATEGORIES= databases
|
1997-04-02 09:15:26 +00:00
|
|
|
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/
|
1996-09-23 22:40:15 +00:00
|
|
|
|
1996-10-10 12:54:03 +00:00
|
|
|
DISTFILES= postgres95-1.08.tar.gz \
|
1996-09-23 22:40:15 +00:00
|
|
|
flex-2.5.2.tgz
|
|
|
|
|
|
|
|
MAINTAINER= matt@bdd.net
|
|
|
|
|
1996-12-07 12:49:35 +00:00
|
|
|
NO_PACKAGE= "Requires postgres uid"
|
1996-09-23 22:40:15 +00:00
|
|
|
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:
|
1996-11-17 03:18:45 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/postgres95
|
1996-09-23 22:40:15 +00:00
|
|
|
@ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
|
|
|
|
|
|
|
|
post-install:
|
1996-09-26 01:43:09 +00:00
|
|
|
.if !defined(NOMANCOMPRESS)
|
|
|
|
@ for file in ${PREFIX}/postgres95/man/man[135l]/*; do \
|
|
|
|
gzip -9nf $$file ; \
|
|
|
|
done
|
|
|
|
.endif
|
1996-09-23 22:40:15 +00:00
|
|
|
@ chown -R postgres:postgres ${PREFIX}/postgres95
|
|
|
|
@ echo 'Initializing Postgres95 Databases - this may take a few minutes...'
|
1996-11-19 14:16:51 +00:00
|
|
|
@ su -l postgres -c ${PREFIX}/postgres95/bin/initdb
|
1996-11-17 03:18:45 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/etc/rc.d
|
1996-09-23 22:40:15 +00:00
|
|
|
@ 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>
|