1 # Created by: Marco Steinbach <coco@executive-computing.de>
6 CATEGORIES= sysutils www
7 MASTER_SITES= http://files.froxlor.org/releases/
9 MAINTAINER= coco@executive-computing.de
10 COMMENT= PHP-based ISP Server Management Panel
16 SUB_FILES+= pkg-message pkg-deinstall
17 SUB_LIST+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
18 PLIST_SUB+= ${SUB_LIST}
20 USE_PHP= bcmath curl filter ftp json mysql mysqli pdo_mysql posix session xml
28 SHEBANG_FILES= froxlor/install/tsmarty2c.php
30 OPTIONS_DEFINE= LIBNSS LOGROTATE MYSQLS DKIM PCNTL NLS
32 OPTIONS_RADIO= WEB SMTP IMAPPOP3 FTP DNS
33 OPTIONS_RADIO_WEB= APACHE LIGHTTPD NGINX
34 OPTIONS_RADIO_SMTP= POSTFIX EXIM
35 OPTIONS_RADIO_IMAPPOP3= DOVECOT DOVECOT2 COURIER
36 OPTIONS_RADIO_FTP= PROFTPD PUREFTPD
37 OPTIONS_RADIO_DNS= POWERDNS ISCDNS
39 OPTIONS_MULTI_WWWST= WEBALIZER AWSTATS
41 WWWST_DESC= Web access and traffic statistics dependency
42 WEB_DESC= Web server dependency
43 SMTP_DESC= SMTP server dependency
44 IMAPPOP3_DESC= IMAP/POP3 server dependency
45 DNS_DESC= DNS server dependency
46 FTP_DESC= FTP server dependency
47 APACHE_DESC= Apache as HTTP/HTTPS server
48 LIGHTTPD_DESC= Lighttpd as HTTP/HTTPS server
49 NGINX_DESC= Nginx as HTTP/HTTPS server
50 MYSQLC_DESC= MySQL database client only
51 MYSQLS_DESC= MySQL database server and client
52 POSTFIX_DESC= Postfix as SMTP server
53 EXIM_DESC= Exim as SMTP server
54 DKIM_DESC= OpenDKIM for DomainKeys Identified Mail
55 DOVECOT_DESC= Dovecot 1.x as IMAP/POP3 server
56 DOVECOT2_DESC= Dovecot 2.x as IMAP/POP3 server
57 COURIER_DESC= Courier as IMAP/POP3 server
58 PROFTPD_DESC= ProFTPd as FTP server
59 PUREFTPD_DESC= Pure-FTPd as FTP server
60 POWERDNS_DESC= Powerdns as DNS server
61 ISCDNS_DESC= ISC BIND 9.9 from ports as DNS server
62 PCNTL_DESC= Use php-pcntl (speeds up statistics creation)
63 LIBNSS_DESC= Libnss-mysql for authentication
64 WEBALIZER_DESC= Webalizer (small, fast, static result pages)
65 AWSTATS_DESC= Awstats (more fancy, dynamic and static result pages)
66 LOGROTATE_DESC= Logrotate for log rotation
67 MYSQLS_DESC= Depend on MySQL server
68 NLS_DESC= Enable NLS support (required for webFTP frontend)
70 OPTIONS_DEFAULT= APACHE MYSQLS POSTFIX DOVECOT PROFTPD WEBALIZER MYSQLS PCNTL NLS
72 POSTFIX_RUN_DEPENDS= postfix:${PORTSDIR}/mail/postfix
74 EXIM_RUN_DEPENDS= exim:${PORTSDIR}/mail/exim
76 DKIM_RUN_DEPENDS= opendkim:${PORTSDIR}/mail/opendkim
78 DOVECOT_RUN_DEPENDS= dovecot>1:${PORTSDIR}/mail/dovecot
80 DOVECOT2_RUN_DEPENDS= dovecot2>=2:${PORTSDIR}/mail/dovecot2
82 COURIER_RUN_DEPENDS= courier:${PORTSDIR}/mail/courier
84 PROFTPD_RUN_DEPENDS= ${LOCALBASE}/libexec/proftpd/mod_sql_mysql.so:${PORTSDIR}/databases/proftpd-mod_sql_mysql
86 PUREFTPD_RUN_DEPENDS= pure-ftpd:${PORTSDIR}/ftp/pure-ftpd
88 POWERDNS_RUN_DEPENDS= powerdns:${PORTSDIR}/dns/powerdns
90 ISCDNS_RUN_DEPENDS= bind>=9.9.0.0:${PORTSDIR}/dns/bind99
92 LIBNSS_RUN_DEPENDS= ${LOCALBASE}/lib/nss_mysql.so:${PORTSDIR}/net/libnss-mysql
94 WEBALIZER_RUN_DEPENDS= webalizer:${PORTSDIR}/www/webalizer
96 AWSTATS_RUN_DEPENDS= awstats>=6.8:${PORTSDIR}/www/awstats
98 LOGROTATE_RUN_DEPENDS= logrotate:${PORTSDIR}/sysutils/logrotate
100 LIGHTTPD_RUN_DEPENDS= lighttpd:${PORTSDIR}/www/lighttpd
102 NGINX_RUN_DEPENDS= nginx:${PORTSDIR}/www/nginx
106 MYSQLS_USE= MYSQL=server
110 NLS_USES= gettext-runtime:run
113 .include <bsd.port.options.mk>
115 .if ${PORT_OPTIONS:MAPACHE}
120 cd ${WRKDIR}/${PORTNAME} && \
121 ${FIND} . ! -name .gitignore | \
122 ${CPIO} --quiet -pdm ${STAGEDIR}${WWWDIR}
124 .include <bsd.port.mk>