mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
be989e9647
PR: 165186 Submitted by: Marco Steinbach <coco@executive-computing.de> (maintainer)
94 lines
2.2 KiB
Makefile
94 lines
2.2 KiB
Makefile
# New ports collection makefile for: froxlor
|
|
# Date created: 2010-10-13
|
|
# Whom: Marco Steinbach <coco@executive-computing.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= froxlor
|
|
DISTVERSION= 0.9.26
|
|
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 \
|
|
LOGROTATE "Use logrotate" 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+= ${LOCALBASE}/libexec/proftpd/mod_sql_mysql.so:${PORTSDIR}/databases/proftpd-mod_sql_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
|
|
|
|
.if defined(WITH_LOGROTATE)
|
|
RUN_DEPENDS+= logrotate:${PORTSDIR}/sysutils/logrotate
|
|
.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>
|