# New ports collection makefile for:    psa-apache-configurator
# Date created:                         2007-09-24
# Whom:                                 SWSoft Ltd.
# OS Version:                           5.5
#
# $FreeBSD: ports/swsoft/psa-apache-configurator/Makefile 8.2.1 2007/09/24 22:56:35 SWSoft Exp $
#

PORTNAME= psa-apache-configurator
PORTVERSION= 8.2.1
PORTREVISION= 0

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

MAINTAINER= admins@swsoft.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>
