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

PORTNAME= psa
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= Plesk Interface and Utilities

EXTRACT_SUFX= .tar.gz

RUN_DEPENDS+=	gettext:${PORTSDIR}/devel/gettext
RUN_DEPENDS+=	gpg:${PORTSDIR}/security/gnupg
RUN_DEPENDS+=	perl5.8.8:${PORTSDIR}/lang/perl5.8
RUN_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip
RUN_DEPENDS+=	gtar:${PORTSDIR}/archivers/gtar
RUN_DEPENDS+=	${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2
RUN_DEPENDS+=	
RUN_DEPENDS+=	
RUN_DEPENDS+=	${LOCALBASE}/psa/pam_plesk/pam_plesk.so:${PORTSDIR}/swsoft/psa-libpam-plesk
RUN_DEPENDS+=	${LOCALBASE}/psa/awstats/tools/awstats_updateall.pl:${PORTSDIR}/swsoft/psa-awstats
RUN_DEPENDS+=	${LOCALBASE}/psa/webalizer/bin/webalizer:${PORTSDIR}/swsoft/psa-webalizer
RUN_DEPENDS+=	${LOCALBASE}/sbin/apachectl:${PORTSDIR}/swsoft/psa-apache-configurator
RUN_DEPENDS+=	${LOCALBASE}/lib/mysql/libmysqlclient.so.14:${PORTSDIR}/swsoft/psa-mysql-configurator
RUN_DEPENDS+=	${LOCALBASE}/psa/courier-imap/bin/imapd:${PORTSDIR}/swsoft/psa-courier-imap
RUN_DEPENDS+=	${LOCALBASE}/psa/courier-imap/libexec/authlib/authpsa:${PORTSDIR}/swsoft/psa-courier-imap-add
RUN_DEPENDS+=	${LOCALBASE}/psa/qmail/bin/qmail-queue:${PORTSDIR}/swsoft/psa-qmail
RUN_DEPENDS+=	${LOCALBASE}/psa/ftpd/sbin/proftpd:${PORTSDIR}/swsoft/psa-proftpd
RUN_DEPENDS+=	${LOCALBASE}/psa/logrotate/sbin/logrotate:${PORTSDIR}/swsoft/psa-logrotate
RUN_DEPENDS+=	${LOCALBASE}/psa/admin/plib/api-cli/admin.php:${PORTSDIR}/swsoft/psa-api
RUN_DEPENDS+=	${LOCALBASE}/psa/admin/htdocs/locales/en-US/license.html:${PORTSDIR}/swsoft/psa-locale-base
RUN_DEPENDS+=	${LOCALBASE}/psa/admin/htdocs/domains/databases/phpMyAdmin/index.php:${PORTSDIR}/swsoft/psa-phpmyadmin
RUN_DEPENDS+=	${LOCALBASE}/psa/admin/htdocs/domains/databases/phpPgAdmin/index.php:${PORTSDIR}/swsoft/psa-phppgadmin
RUN_DEPENDS+=	${LOCALBASE}/psa/admin/sbin/autoinstaller:${PORTSDIR}/swsoft/psa-autoinstaller
RUN_DEPENDS+=	${LOCALBASE}/sbin/sw-cp-serverd:${PORTSDIR}/swsoft/sw-cp-server

LIB_DEPENDS+=	lzo:${PORTSDIR}/archivers/lzo
LIB_DEPENDS+=	c_r.4:${PORTSDIR}/misc/compat4x
LIB_DEPENDS+=	
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
LIB_DEPENDS+=	exslt.8:${PORTSDIR}/textproc/libxslt
LIB_DEPENDS+=	expat.6:${PORTSDIR}/textproc/expat2
LIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg
LIB_DEPENDS+=	png.5:${PORTSDIR}/graphics/png
LIB_DEPENDS+=	tiff.4:${PORTSDIR}/graphics/tiff
LIB_DEPENDS+=	pdf.8:${PORTSDIR}/print/pdflib
LIB_DEPENDS+=	gd.4:${PORTSDIR}/graphics/gd
LIB_DEPENDS+=	boost_date_time-plesk-1.32.0.2:${PORTSDIR}/swsoft/psa-boost
LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
LIB_DEPENDS+=	iconv.3:${PORTSDIR}/converters/libiconv
LIB_DEPENDS+=	gcrypt.13:${PORTSDIR}/security/libgcrypt
LIB_DEPENDS+=	intl.8:${PORTSDIR}/devel/gettext
LIB_DEPENDS+=	gpg-error.0:${PORTSDIR}/security/libgpg-error

CONFLICTS= gcc_plesk_bsd-* psa-hotfix*


USE_ICONV= yes
USE_PYTHON= 2.5

.include <plesk.install.mk>
