Lines 1-83
Link Here
|
1 |
# New ports collection makefile for: froxlor |
1 |
# Created by: Marco Steinbach <coco@executive-computing.de> |
2 |
# Date created: 2010-10-13 |
|
|
3 |
# Whom: Marco Steinbach <coco@executive-computing.de> |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= froxlor |
4 |
PORTNAME= froxlor |
9 |
DISTVERSION= 0.9.26 |
5 |
DISTVERSION= 0.9.27 |
10 |
CATEGORIES= sysutils www |
6 |
CATEGORIES= sysutils www |
11 |
MASTER_SITES= http://files.froxlor.org/releases/ |
7 |
MASTER_SITES= http://files.froxlor.org/releases/ |
12 |
|
8 |
|
13 |
MAINTAINER= coco@executive-computing.de |
9 |
MAINTAINER= coco@executive-computing.de |
14 |
COMMENT= PHP-based ISP Server Management Panel |
10 |
COMMENT= PHP-based ISP Server Management Panel |
15 |
|
11 |
|
|
|
12 |
LICENSE= GPLv2 |
13 |
|
16 |
WRKSRC= ${WRKDIR} |
14 |
WRKSRC= ${WRKDIR} |
17 |
|
15 |
|
18 |
NO_BUILD= YES |
16 |
NO_BUILD= YES |
19 |
|
17 |
|
20 |
SUB_FILES+= pkg-message pkg-deinstall |
18 |
SUB_FILES+= pkg-message pkg-deinstall |
21 |
|
19 |
|
22 |
USE_PHP= xml bcmath posix filter session ftp mysqli gettext |
20 |
USE_PHP= xml bcmath posix filter session ftp mysql mysqli gettext |
23 |
|
21 |
|
24 |
USE_GETTEXT= RUN |
22 |
USE_GETTEXT= RUN |
25 |
|
23 |
|
26 |
OPTIONS= APACHE "Use Apache (2.2) as http server" On \ |
24 |
OPTIONS_DEFINE= POWERDNS LIBNSS LOGROTATE MYSQLS DKIM |
27 |
MYSQL "Use MySQL as database server" On \ |
|
|
28 |
POSTFIX "Use Postfix as smtp server" On \ |
29 |
DKIM "Use OpenDKIM" Off \ |
30 |
DOVECOT "Use Dovecot as imap/pop3 server" On \ |
31 |
PROFTPD "Use Proftpd-mysql as ftp server (implies MySQL)" On \ |
32 |
POWERDNS "Use Powerdns as dns server" Off \ |
33 |
LIBNSS "Use Libnss-mysql for authentication (impl. MySQL)" Off \ |
34 |
WEBALIZER "Use webalizer" On \ |
35 |
AWSTATS "Use awstats" Off \ |
36 |
LOGROTATE "Use logrotate" Off |
37 |
|
25 |
|
|
|
26 |
OPTIONS_SINGLE= WEB SMTP IMAPPOP3 FTP |
27 |
OPTIONS_SINGLE_WEB= APACHE LIGHTTPD NGINX |
28 |
OPTIONS_SINGLE_SMTP= POSTFIX EXIM |
29 |
OPTIONS_SINGLE_IMAPPOP3= DOVECOT COURIER |
30 |
OPTIONS_SINGLE_FTP= PROFTPD PUREFTPD |
31 |
OPTIONS_MULTI= WWWST |
32 |
OPTIONS_MULTI_WWWST= WEBALIZER AWSTATS |
33 |
|
34 |
APACHE_DESC= Apache (2.2) as http server |
35 |
LIGHTTPD_DESC= Lighttpd as http server |
36 |
NGINX_DESC= Nginx as http server |
37 |
MYSQLC_DESC= MySQL database client only |
38 |
MYSQLS_DESC= MySQL database server and client |
39 |
POSTFIX_DESC= Postfix as smtp server |
40 |
EXIM_DESC= Exim as smtp server |
41 |
DKIM_DESC= OpenDKIM for DomainKeys Identified Mail |
42 |
DOVECOT_DESC= Dovecot as imap/pop3 server |
43 |
COURIER_DESC= Courier as imap/pop3 server |
44 |
PROFTPD_DESC= ProFTPd as ftp server |
45 |
PUREFTPD_DESC= Pure-FTPd as ftp server |
46 |
POWERDNS_DESC= Powerdns as dns server |
47 |
LIBNSS_DESC= Libnss-mysql for authentication |
48 |
WEBALIZER_DESC= Webalizer for web statistics |
49 |
AWSTATS_DESC= Awstats for web statistics |
50 |
LOGROTATE_DESC= Logrotate for log rotation |
51 |
MYSQLS_DESC= Install/depend on MySQL server |
52 |
|
53 |
OPTIONS_DEFAULT= APACHE MYSQLS POSTFIX DOVECOT PROFTPD WEBALIZER MYSQLS |
54 |
|
38 |
.include <bsd.port.options.mk> |
55 |
.include <bsd.port.options.mk> |
39 |
|
56 |
|
40 |
.if !defined(WITHOUT_APACHE) |
57 |
.if ${PORT_OPTIONS:MAPACHE} |
41 |
USE_APACHE_RUN= 22 |
58 |
USE_APACHE_RUN= 22 |
42 |
.endif |
59 |
.endif |
43 |
|
60 |
|
44 |
.if !defined(WITHOUT_MYSQL) |
61 |
.if ${PORT_OPTIONS:MLIGHTTPD} |
45 |
USE_PHP+= mysql |
62 |
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd |
46 |
.endif |
63 |
.endif |
47 |
|
64 |
|
48 |
.if !defined(WITHOUT_POSTFIX) |
65 |
.if ${PORT_OPTIONS:MNGINX} |
|
|
66 |
RUN_DEPENDS+= nginx:${PORTSDIR}/www/nginx |
67 |
.endif |
68 |
|
69 |
.if ${PORT_OPTIONS:MMYSQLS} |
70 |
USE_MYSQL= server |
71 |
.endif |
72 |
|
73 |
.if ${PORT_OPTIONS:MPOSTFIX} |
49 |
RUN_DEPENDS+= postfix:${PORTSDIR}/mail/postfix |
74 |
RUN_DEPENDS+= postfix:${PORTSDIR}/mail/postfix |
50 |
.endif |
75 |
.endif |
51 |
|
76 |
|
52 |
.if defined(WITH_DKIM) |
77 |
.if ${PORT_OPTIONS:MEXIM} |
|
|
78 |
RUN_DEPENDS+= exim:${PORTSDIR}/mail/exim |
79 |
.endif |
80 |
|
81 |
.if ${PORT_OPTIONS:MDKIM} |
53 |
RUN_DEPENDS+= opendkim:${PORTSDIR}/mail/opendkim |
82 |
RUN_DEPENDS+= opendkim:${PORTSDIR}/mail/opendkim |
54 |
.endif |
83 |
.endif |
55 |
|
84 |
|
56 |
.if !defined(WITHOUT_DOVECOT) |
85 |
.if ${PORT_OPTIONS:MDOVECOT} |
57 |
RUN_DEPENDS+= dovecot:${PORTSDIR}/mail/dovecot |
86 |
RUN_DEPENDS+= dovecot:${PORTSDIR}/mail/dovecot |
58 |
.endif |
87 |
.endif |
59 |
|
88 |
|
60 |
.if !defined(WITHOUT_PROFTPD) |
89 |
.if ${PORT_OPTIONS:MCOURIER} |
|
|
90 |
RUN_DEPENDS+= courier:${PORTSDIR}/mail/courier |
91 |
.endif |
92 |
|
93 |
.if ${PORT_OPTIONS:MPROFTPD} |
61 |
RUN_DEPENDS+= ${LOCALBASE}/libexec/proftpd/mod_sql_mysql.so:${PORTSDIR}/databases/proftpd-mod_sql_mysql |
94 |
RUN_DEPENDS+= ${LOCALBASE}/libexec/proftpd/mod_sql_mysql.so:${PORTSDIR}/databases/proftpd-mod_sql_mysql |
62 |
.endif |
95 |
.endif |
63 |
|
96 |
|
64 |
.if defined(WITH_POWERDNS) |
97 |
.if ${PORT_OPTIONS:MPUREFTPD} |
|
|
98 |
RUN_DEPENDS+= pure-ftpd:${PORTSDIR}/ftp/pure-ftpd |
99 |
.endif |
100 |
|
101 |
.if ${PORT_OPTIONS:MPOWERDNS} |
65 |
RUN_DEPENDS+= powerdns:${PORTSDIR}/dns/powerdns |
102 |
RUN_DEPENDS+= powerdns:${PORTSDIR}/dns/powerdns |
66 |
.endif |
103 |
.endif |
67 |
|
104 |
|
68 |
.if defined(WITH_LIBNSS) |
105 |
.if ${PORT_OPTIONS:MLIBNSS} |
69 |
RUN_DEPENDS+= ${LOCALBASE}/lib/nss_mysql.so:${PORTSDIR}/net/libnss-mysql |
106 |
RUN_DEPENDS+= ${LOCALBASE}/lib/nss_mysql.so:${PORTSDIR}/net/libnss-mysql |
70 |
.endif |
107 |
.endif |
71 |
|
108 |
|
72 |
.if !defined(WITHOUT_WEBALIZER) |
109 |
.if ${PORT_OPTIONS:MWEBALIZER} |
73 |
RUN_DEPENDS+= webalizer:${PORTSDIR}/www/webalizer |
110 |
RUN_DEPENDS+= webalizer:${PORTSDIR}/www/webalizer |
74 |
.endif |
111 |
.endif |
75 |
|
112 |
|
76 |
.if defined(WITH_AWSTATS) |
113 |
.if ${PORT_OPTIONS:MAWSTATS} |
77 |
RUN_DEPENDS+= awstats>=6.8:${PORTSDIR}/www/awstats |
114 |
RUN_DEPENDS+= awstats>=6.8:${PORTSDIR}/www/awstats |
78 |
.endif |
115 |
.endif |
79 |
|
116 |
|
80 |
.if defined(WITH_LOGROTATE) |
117 |
.if ${PORT_OPTIONS:MLOGROTATE} |
81 |
RUN_DEPENDS+= logrotate:${PORTSDIR}/sysutils/logrotate |
118 |
RUN_DEPENDS+= logrotate:${PORTSDIR}/sysutils/logrotate |
82 |
.endif |
119 |
.endif |
83 |
|
120 |
|