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

PORTNAME=   postfixadmin
PORTVERSION=    3.1
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 php
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_MULTI=  DB
OPTIONS_MULTI_DB=   MYSQL PGSQL SQLITE
OPTIONS_DEFAULT=    PGSQL

USE_PERL5=  run

USE_PHP=    mbstring pcre session spl xmlrpc

MYSQL_USE=  php=mysqli
PGSQL_USE=  php=pgsql
SQLITE_USE= php=sqlite3

do-install:
    @${MKDIR} ${STAGEDIR}${WWWDIR}
    @${MKDIR} ${STAGEDIR}${WWWDIR}/templates_c
.for i in *.php calendar.js favicon.ico
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${WWWDIR}
.endfor
.for i in configs css images languages model scripts smarty templates tests users
    @cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${i}
.endfor
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/*.TXT ${WRKSRC}/README.md ${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>