summaryrefslogtreecommitdiff
path: root/sysutils/froxlor/Makefile
blob: 13f624c5ea8eb76a2e855925714eb242edc74ae1 (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
# 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>