# New ports collection makefile for:    psa-postgresql-configurator
# Date created:                         2008-04-25
# Whom:                                 Parallels
# OS Version:                           5.5
#
# $FreeBSD: ports/swsoft/psa-postgresql-configurator/Makefile 20080218000000 2008/04/25 22:54:32 Parallels Exp $
#

PORTNAME= psa-postgresql-configurator
PORTVERSION= 8.4.0
PORTREVISION= 

CATEGORIES= swsoft
MASTER_SITES?= http://autoinstall.plesk.com/PSA_8.4.0/dist-pkg-FreeBSD-5.5-i386/distfiles/

MAINTAINER= admins@parallels.com
COMMENT= Postgresql server for Plesk

EXTRACT_SUFX= .tar.gz

RUN_DEPENDS+=	${LOCALBASE}/psa/version:${PORTSDIR}/swsoft/psa

OPTIONS+= PGSQL80 "Use postgresql-8.0 instead postgresql-7.4" on 

.include <bsd.port.pre.mk>

.if defined(WITH_PGSQL80)
CONFLICTS+= postgresql-server-7.* postgresql-client-7.* \
	    postgresql-server-8.[1-9]* postgresql-client-8.[1-9]*
LIB_DEPENDS+= pq.4:${PORTSDIR}/databases/postgresql80-client
RUN_DEPENDS+= postgres:${PORTSDIR}/databases/postgresql80-server 
.else
CONFLICTS+= postgresql-server-7.[0-35-9]* postgresql-client-7.[0-35-9]* \
	    postgresql-server-8.* postgresql-client-8.*
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql74-client
RUN_DEPENDS+= postgres:${PORTSDIR}/databases/postgresql74-server 
.endif

.include <plesk.install.mk>
