freebsd-ports/sysutils/froxlor/Makefile
Beech Rintoul e3d75ad0d5 - Fix to properly check dependencies
PR:		ports/163702
Submitted by:	Marco Steinbach <coco@executive-computing.de> (maintainer)
2011-12-29 23:43:17 +00:00

89 lines
2 KiB
Makefile

# New ports collection makefile for: froxlor
# Date created: 2010-10-13
# Whom: Marco Steinbach <coco@executive-computing.de>
#
# $FreeBSD$
#
PORTNAME= froxlor
PORTVERSION= 0.9.22
PORTREVISION= 2
CATEGORIES= sysutils www
MASTER_SITES= http://files.froxlor.org/releases/
MAINTAINER= coco@executive-computing.de
COMMENT= PHP-based ISP Server Management Panel
WRKSRC= ${WRKDIR}
NO_BUILD= YES
SUB_FILES+= pkg-message pkg-deinstall
USE_PHP= xml bcmath posix filter session ftp mysqli gettext
USE_GETTEXT= RUN
OPTIONS= APACHE "Use Apache (2.2) as http server" On \
MYSQL "Use MySQL as database server" On \
POSTFIX "Use Postfix as smtp server" On \
DKIM "Use OpenDKIM" Off \
DOVECOT "Use Dovecot as imap/pop3 server" On \
PROFTPD "Use Proftpd-mysql as ftp server (implies MySQL)" On \
POWERDNS "Use Powerdns as dns server" Off \
LIBNSS "Use Libnss-mysql for authentication (impl. MySQL)" Off \
WEBALIZER "Use webalizer" On \
AWSTATS "Use awstats" Off
.include <bsd.port.options.mk>
.if !defined(WITHOUT_APACHE)
USE_APACHE= 22
.endif
.if !defined(WITHOUT_MYSQL)
USE_PHP+= mysql
.endif
.if !defined(WITHOUT_POSTFIX)
RUN_DEPENDS+= postfix:${PORTSDIR}/mail/postfix
.endif
.if defined(WITH_DKIM)
RUN_DEPENDS+= opendkim:${PORTSDIR}/mail/opendkim
.endif
.if !defined(WITHOUT_DOVECOT)
RUN_DEPENDS+= dovecot:${PORTSDIR}/mail/dovecot
.endif
.if !defined(WITHOUT_PROFTPD)
RUN_DEPENDS+= proftpd:${PORTSDIR}/ftp/proftpd-mysql
.endif
.if defined(WITH_POWERDNS)
RUN_DEPENDS+= powerdns:${PORTSDIR}/dns/powerdns
.endif
.if defined(WITH_LIBNSS)
RUN_DEPENDS+= ${LOCALBASE}/lib/nss_mysql.so:${PORTSDIR}/net/libnss-mysql
.endif
.if !defined(WITHOUT_WEBALIZER)
RUN_DEPENDS+= webalizer:${PORTSDIR}/www/webalizer
.endif
.if defined(WITH_AWSTATS)
RUN_DEPENDS+= awstats>=6.8:${PORTSDIR}/www/awstats
.endif
do-install:
cd ${WRKDIR}/${PORTNAME} && \
${FIND} . ! -name .gitignore | \
${CPIO} --quiet -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.include <bsd.port.post.mk>