# New ports collection makefile for:    psa
# Date created:                         2010-12-09
# Whom:                                 Parallels
# OS Version:                           6.1
#
# $FreeBSD: ports/swsoft/psa/Makefile 9.5.4 2010/12/09 08:47:20 Parallels Exp $
#

PORTNAME= psa
PORTVERSION= 9.5.4
PORTREVISION= 296635

CATEGORIES= swsoft
MASTER_SITES?= http://autoinstall.plesk.com/PSA_9.5.4/dist-pkg-FreeBSD-6.1-i386/distfiles/

MAINTAINER= info@parallels.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+=	${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-configurator
RUN_DEPENDS+=	${LOCALBASE}/psa/webalizer/bin/webalizer:${PORTSDIR}/swsoft/psa-webalizer
RUN_DEPENDS+=	${LOCALBASE}/sbin/apachectl:${PORTSDIR}/swsoft/psa-apache-configurator
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}/psa/admin/sbin/mailmng:${PORTSDIR}/swsoft/psa-mail-configurator
RUN_DEPENDS+=	${LOCALBASE}/etc/psa/psa.conf.default:${PORTSDIR}/swsoft/plesk-base

LIB_DEPENDS+=	lzo.1:${PORTSDIR}/archivers/lzo
LIB_DEPENDS+=	c_r.4:${PORTSDIR}/misc/compat4x
LIB_DEPENDS+=	z.2:${PORTSDIR}/misc/compat5x
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
LIB_DEPENDS+=	exslt.8:${PORTSDIR}/textproc/libxslt
LIB_DEPENDS+=	xmlrpc.9:${PORTSDIR}/net/xmlrpc-c
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.4:${PORTSDIR}/devel/boost
LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
LIB_DEPENDS+=	iconv.3:${PORTSDIR}/converters/libiconv
LIB_DEPENDS+=	gcrypt.16:${PORTSDIR}/security/libgcrypt
LIB_DEPENDS+=	intl.8:${PORTSDIR}/devel/gettext
LIB_DEPENDS+=	gpg-error.0:${PORTSDIR}/security/libgpg-error
LIB_DEPENDS+=	uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid
LIB_DEPENDS+=	idn.16:${PORTSDIR}/dns/libidn
LIB_DEPENDS+=	execinfo.1:${PORTSDIR}/devel/libexecinfo
LIB_DEPENDS+=	spf2.3:${PORTSDIR}/mail/libspf2

CONFLICTS= gcc_plesk_bsd-* psa-hotfix* psa-perl-modules-* psa-manual-custom-skin-guide-* plesk-billing-6.0.0*


USE_ICONV= yes
USE_PYTHON= 2.5

.include <plesk.install.mk>
