aboutsummaryrefslogtreecommitdiff
path: root/mail/postfixadmin/Makefile
blob: b5f6868229208ac4c6895bf58c1475144cf28d6f (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
# Created by: Rob Evers <rob@debank.tv>
# $FreeBSD$

PORTNAME=	postfixadmin
PORTVERSION=	2.93
CATEGORIES=	mail www
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports.maintainer@evilphi.com
COMMENT=	PHP web-based management tool for Postfix virtual domains and users

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/GPL-LICENSE.TXT

RUN_DEPENDS+=	p5-DBI>=1.634:databases/p5-DBI \
		p5-Email-Valid>=0.12:mail/p5-Email-Valid \
		p5-Log-Dispatch>=1.79:devel/p5-Log-Dispatch \
		p5-Log-Log4perl>=0.26:devel/p5-Log-Log4perl \
		p5-Mail-Sender>=0.7.04:mail/p5-Mail-Sender \
		p5-MIME-EncWords>=0.040:mail/p5-MIME-EncWords

USES=		cpe perl5 shebangfix
CPE_VENDOR=	postfix_admin_project
CPE_PRODUCT=	postfix_admin

NO_ARCH=	yes
NO_BUILD=	yes

SUB_FILES+=	pkg-message
PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}

OPTIONS_DEFINE=	DOCS
OPTIONS_SINGLE=	DB
OPTIONS_SINGLE_DB=	MYSQL MYSQLI PGSQL
MYSQLI_DESC=	MySQL 4.1+ back-end (use mysqli PHP extension)

OPTIONS_DEFAULT=	PGSQL

USE_PERL5=	run

USE_PHP=	pcre session mbstring spl xmlrpc

MYSQL_USE=	php=mysql
MYSQLI_USE=	php=mysqli
PGSQL_USE=	php=pgsql

WANT_PHP_WEB=	yes

do-install:
	@${MKDIR} ${STAGEDIR}${WWWDIR}
.for i in *.php calendar.js
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${WWWDIR}
.endfor
.for i in configs css images languages model scripts smarty templates templates_c tests users
	@cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${i}
.endfor
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/*.TXT ${STAGEDIR}${DATADIR}
.for i in ADDITIONS VIRTUAL_VACATION
	@cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${i}
.endfor

do-install-DOCS-on:
	@cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>