aboutsummaryrefslogtreecommitdiff
path: root/sysutils/froxlor/Makefile
blob: 2e9b213b9eba11c5f4d74c5101e50a8c32a0c338 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Created by: Marco Steinbach <coco@executive-computing.de>
# $FreeBSD$

PORTNAME=	froxlor
DISTVERSION=	0.9.28.1
CATEGORIES=	sysutils www
MASTER_SITES=	http://files.froxlor.org/releases/

MAINTAINER=	coco@executive-computing.de
COMMENT=	PHP-based ISP Server Management Panel

LICENSE=	GPLv2

WRKSRC=		${WRKDIR}

NO_BUILD=	YES

SUB_FILES+=	pkg-message pkg-deinstall

USE_PHP=	xml bcmath posix filter session ftp mysql mysqli

OPTIONS_DEFINE=	POWERDNS LIBNSS LOGROTATE MYSQLS DKIM PCNTL NLS

OPTIONS_RADIO=	WEB SMTP IMAPPOP3 FTP
OPTIONS_RADIO_WEB=	APACHE LIGHTTPD NGINX
OPTIONS_RADIO_SMTP=	POSTFIX EXIM
OPTIONS_RADIO_IMAPPOP3=	DOVECOT COURIER
OPTIONS_RADIO_FTP=	PROFTPD PUREFTPD
OPTIONS_MULTI=	WWWST
OPTIONS_MULTI_WWWST=	WEBALIZER AWSTATS

WWWST_DESC=	Web access and traffic statistics dependency
WEB_DESC=	Web server dependency
SMTP_DESC=	SMTP server dependency
IMAPPOP3_DESC=	IMAP/POP3 server dependency
FTP_DESC=	FTP server dependency
APACHE_DESC=	Apache (2.2) as HTTP/HTTPS server
LIGHTTPD_DESC=	Lighttpd as HTTP/HTTPS server
NGINX_DESC=	Nginx as HTTP/HTTPS server
MYSQLC_DESC=	MySQL database client only
MYSQLS_DESC=	MySQL database server and client
POSTFIX_DESC=	Postfix as SMTP server
EXIM_DESC=	Exim as SMTP server
DKIM_DESC=	OpenDKIM for DomainKeys Identified Mail
DOVECOT_DESC=	Dovecot as IMAP/POP3 server
COURIER_DESC=	Courier as IMAP/POP3 server
PROFTPD_DESC=	ProFTPd as FTP server
PUREFTPD_DESC=	Pure-FTPd as FTP server
POWERDNS_DESC=	Powerdns as DNS server
PCNTL_DESC=	Use php-pcntl (speeds up statistics creation)
LIBNSS_DESC=	Libnss-mysql for authentication
WEBALIZER_DESC=	Webalizer (small, fast, static result pages)
AWSTATS_DESC=	Awstats (more fancy, dynamic and static result pages)
LOGROTATE_DESC=	Logrotate for log rotation
MYSQLS_DESC=	Depend on MySQL server
NLS_DESC=	Enable NLS support (required for webFTP frontend)

OPTIONS_DEFAULT=	APACHE MYSQLS POSTFIX DOVECOT PROFTPD WEBALIZER MYSQLS PCNTL NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN=	22
.endif

.if ${PORT_OPTIONS:MLIGHTTPD}
RUN_DEPENDS+=	lighttpd:${PORTSDIR}/www/lighttpd
.endif

.if ${PORT_OPTIONS:MNGINX}
RUN_DEPENDS+=	nginx:${PORTSDIR}/www/nginx
.endif

.if ${PORT_OPTIONS:MMYSQLS}
USE_MYSQL=	server
.endif

.if ${PORT_OPTIONS:MPOSTFIX}
RUN_DEPENDS+=	postfix:${PORTSDIR}/mail/postfix
.endif

.if ${PORT_OPTIONS:MEXIM}
RUN_DEPENDS+=	exim:${PORTSDIR}/mail/exim
.endif

.if ${PORT_OPTIONS:MDKIM}
RUN_DEPENDS+=	opendkim:${PORTSDIR}/mail/opendkim
.endif

.if ${PORT_OPTIONS:MDOVECOT}
RUN_DEPENDS+=	dovecot:${PORTSDIR}/mail/dovecot
.endif

.if ${PORT_OPTIONS:MCOURIER}
RUN_DEPENDS+=	courier:${PORTSDIR}/mail/courier
.endif

.if ${PORT_OPTIONS:MPROFTPD}
RUN_DEPENDS+=	${LOCALBASE}/libexec/proftpd/mod_sql_mysql.so:${PORTSDIR}/databases/proftpd-mod_sql_mysql
.endif

.if ${PORT_OPTIONS:MPUREFTPD}
RUN_DEPENDS+=	pure-ftpd:${PORTSDIR}/ftp/pure-ftpd
.endif

.if ${PORT_OPTIONS:MPOWERDNS}
RUN_DEPENDS+=	powerdns:${PORTSDIR}/dns/powerdns
.endif

.if ${PORT_OPTIONS:MLIBNSS}
RUN_DEPENDS+=	${LOCALBASE}/lib/nss_mysql.so:${PORTSDIR}/net/libnss-mysql
.endif

.if ${PORT_OPTIONS:MWEBALIZER}
RUN_DEPENDS+=	webalizer:${PORTSDIR}/www/webalizer
.endif

.if ${PORT_OPTIONS:MAWSTATS}
RUN_DEPENDS+=	awstats>=6.8:${PORTSDIR}/www/awstats
.endif

.if ${PORT_OPTIONS:MLOGROTATE}
RUN_DEPENDS+=	logrotate:${PORTSDIR}/sysutils/logrotate
.endif

.if ${PORT_OPTIONS:MPCNTL}
USE_PHP+=	pcntl
.endif

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext:run
USE_PHP+=	gettext
.endif

do-install:
	cd ${WRKDIR}/${PORTNAME} && \
	${FIND} . ! -name .gitignore | \
	${CPIO} --quiet -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR}

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>