aboutsummaryrefslogtreecommitdiffstats
path: root/mail/rainloop/Makefile
blob: bcd9e937cdf7b887d64527c0cfa6d2ebb31fcb6a (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
# $FreeBSD$

PORTNAME=   rainloop
PORTVERSION=    1.11.1
CATEGORIES= mail www
MASTER_SITES=   https://github.com/RainLoop/rainloop-webmail/releases/download/v${PORTVERSION}/

MAINTAINER= loic.blot@unix-experience.fr
COMMENT?=   Modern and interactive webmail

.if !defined(PKGNAMESUFFIX)
LICENSE=    RainLoop
LICENSE_NAME=   RainLoop Software License
LICENSE_TEXT=   License can be found at: http://www.rainloop.net/licensing/
LICENSE_PERMS=  auto-accept
.endif

.if !defined(PKGNAMESUFFIX)
RESTRICTED= Redistribution in any form is prohibited
.endif
USES=       php:web zip
NO_BUILD=   yes
NO_ARCH=    yes
NO_WRKSUBDIR=   yes
USE_PHP=    curl iconv json xml dom openssl pcre spl zlib
PLIST_SUB=  VER="${PORTVERSION}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"

OPTIONS_RADIO=      DB
OPTIONS_RADIO_DB=   MYSQL PGSQL SQLITE
OPTIONS_DEFAULT=    SQLITE

MYSQL_USE=  PHP=pdo_mysql
PGSQL_USE=  PHP=pdo_pgsql
SQLITE_USE= PHP=pdo_sqlite

do-install:
    @${MKDIR} ${STAGEDIR}${WWWDIR}/data
    ${INSTALL_DATA} ${WRKSRC}/data/* ${STAGEDIR}${WWWDIR}/data
    ${INSTALL_DATA} ${WRKSRC}/index.php ${STAGEDIR}${WWWDIR}
    (cd ${WRKSRC} && ${COPYTREE_SHARE} rainloop ${STAGEDIR}${WWWDIR})
# Prune empty dirs
    @${FIND} ${STAGEDIR}${WWWDIR}/${PORTNAME}/v/${PORTVERSION} -type d -empty -delete

.include <bsd.port.mk>