mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
63f3e3b0d4
- s/USE_APACHE= 20+/USE_APACHE= 22+/ - unify s/YES/yes/ - cleanup APACHE_VERSION <= 22 usage - add entry to MOVED with hat apache@
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_RUN= 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>
|