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

PORTNAME= psa-apache-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= Apache WWW server chooser for Plesk

EXTRACT_SUFX= .tar.gz

RUN_DEPENDS+=	
RUN_DEPENDS+=	${LOCALBASE}/${APACHEMODDIR}/mod_perl.so:${PORTSDIR}/${CATEGORIES}/mod_perl
RUN_DEPENDS+=	${LOCALBASE}/${APACHEMODDIR}/mod_python.so:${PORTSDIR}/${CATEGORIES}/mod_python
RUN_DEPENDS+=	${LOCALBASE}/${APACHEMODDIR}/mod_suexec.so:${PORTSDIR}/${APACHE_PORT}

OPTIONS+= APACHE22 "Use apache22 instead apache20" off 

USE_APACHE= 2.0+
WITH_APACHE2= yes

.include <bsd.port.pre.mk>

.if defined(WITH_APACHE22)
APACHE_PORT= www/apache22
PKGNAMESUFFIX= -ap22

PRE_DEPENDS+= www/apache22
.else
APACHE_PORT= www/apache20
PKGNAMESUFFIX= -ap20

PRE_DEPENDS+= www/apache20
.endif

.include <plesk.install.mk>
