Prune sysutils/pcpustat
[dports.git] / sysutils / froxlor / Makefile
1 # Created by: Marco Steinbach <coco@executive-computing.de>
2 # $FreeBSD$
3
4 PORTNAME=       froxlor
5 PORTVERSION=    0.9.33.2
6 CATEGORIES=     sysutils www
7 MASTER_SITES=   http://files.froxlor.org/releases/
8
9 MAINTAINER=     coco@executive-computing.de
10 COMMENT=        PHP-based ISP Server Management Panel
11
12 LICENSE=        GPLv2
13
14 WRKSRC=         ${WRKDIR}
15
16 SUB_FILES+=     pkg-message pkg-deinstall
17 SUB_LIST+=      WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
18 PLIST_SUB+=     ${SUB_LIST}
19
20 USE_PHP=        bcmath curl filter ftp json mysql mysqli pdo_mysql posix session xml
21
22 WANT_PHP_CLI=   yes
23
24 USES=           shebangfix
25 NO_ARCH=        yes
26 NO_BUILD=       yes
27
28 SHEBANG_FILES=  froxlor/install/tsmarty2c.php
29
30 OPTIONS_DEFINE= LIBNSS LOGROTATE MYSQLS DKIM PCNTL NLS
31
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
38 OPTIONS_MULTI=  WWWST
39 OPTIONS_MULTI_WWWST=    WEBALIZER AWSTATS
40
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)
69
70 OPTIONS_DEFAULT=        APACHE MYSQLS POSTFIX DOVECOT PROFTPD WEBALIZER MYSQLS PCNTL NLS
71
72 POSTFIX_RUN_DEPENDS=    postfix:${PORTSDIR}/mail/postfix
73
74 EXIM_RUN_DEPENDS=       exim:${PORTSDIR}/mail/exim
75
76 DKIM_RUN_DEPENDS=       opendkim:${PORTSDIR}/mail/opendkim
77
78 DOVECOT_RUN_DEPENDS=    dovecot>1:${PORTSDIR}/mail/dovecot
79
80 DOVECOT2_RUN_DEPENDS=   dovecot2>=2:${PORTSDIR}/mail/dovecot2
81
82 COURIER_RUN_DEPENDS=    courier:${PORTSDIR}/mail/courier
83
84 PROFTPD_RUN_DEPENDS=    ${LOCALBASE}/libexec/proftpd/mod_sql_mysql.so:${PORTSDIR}/databases/proftpd-mod_sql_mysql
85
86 PUREFTPD_RUN_DEPENDS=   pure-ftpd:${PORTSDIR}/ftp/pure-ftpd
87
88 POWERDNS_RUN_DEPENDS=   powerdns:${PORTSDIR}/dns/powerdns
89
90 ISCDNS_RUN_DEPENDS=     bind>=9.9.0.0:${PORTSDIR}/dns/bind99
91
92 LIBNSS_RUN_DEPENDS=     ${LOCALBASE}/lib/nss_mysql.so:${PORTSDIR}/net/libnss-mysql
93
94 WEBALIZER_RUN_DEPENDS=  webalizer:${PORTSDIR}/www/webalizer
95
96 AWSTATS_RUN_DEPENDS=    awstats>=6.8:${PORTSDIR}/www/awstats
97
98 LOGROTATE_RUN_DEPENDS=  logrotate:${PORTSDIR}/sysutils/logrotate
99
100 LIGHTTPD_RUN_DEPENDS=   lighttpd:${PORTSDIR}/www/lighttpd
101
102 NGINX_RUN_DEPENDS=      nginx:${PORTSDIR}/www/nginx
103
104 APACHE_USE=     yes
105
106 MYSQLS_USE=     MYSQL=server
107
108 PCNTL_USE=      PHP=pcntl
109
110 NLS_USES=       gettext-runtime:run
111 NLS_USE=        PHP=gettext
112
113 .include <bsd.port.options.mk>
114
115 .if ${PORT_OPTIONS:MAPACHE}
116 WANT_PHP_MOD=   yes
117 .endif
118
119 do-install:
120         cd ${WRKDIR}/${PORTNAME} && \
121         ${FIND} . ! -name .gitignore | \
122         ${CPIO} --quiet -pdm ${STAGEDIR}${WWWDIR}
123
124 .include <bsd.port.mk>