2014-09-26 11:05:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rainloop
|
2018-05-06 18:33:41 +02:00
|
|
|
PORTVERSION= 1.12.0
|
2016-10-02 20:14:02 +02:00
|
|
|
CATEGORIES= mail www
|
|
|
|
MASTER_SITES= https://github.com/RainLoop/rainloop-webmail/releases/download/v${PORTVERSION}/
|
2014-09-26 11:05:15 +02:00
|
|
|
|
|
|
|
MAINTAINER= loic.blot@unix-experience.fr
|
2016-10-02 20:14:02 +02:00
|
|
|
COMMENT?= Modern and interactive webmail
|
2014-09-26 11:05:15 +02:00
|
|
|
|
2015-07-06 19:24:09 +02:00
|
|
|
.if !defined(PKGNAMESUFFIX)
|
2015-09-12 02:29:12 +02:00
|
|
|
LICENSE= RainLoop
|
|
|
|
LICENSE_NAME= RainLoop Software License
|
|
|
|
LICENSE_TEXT= License can be found at: http://www.rainloop.net/licensing/
|
|
|
|
LICENSE_PERMS= auto-accept
|
2015-07-06 19:24:09 +02:00
|
|
|
.endif
|
2014-10-08 17:41:18 +02:00
|
|
|
|
2015-09-12 02:29:12 +02:00
|
|
|
.if !defined(PKGNAMESUFFIX)
|
|
|
|
RESTRICTED= Redistribution in any form is prohibited
|
|
|
|
.endif
|
2016-07-05 16:04:11 +02:00
|
|
|
USES= php:web zip
|
2014-09-26 11:05:15 +02:00
|
|
|
NO_BUILD= yes
|
2015-10-15 12:30:44 +02:00
|
|
|
NO_ARCH= yes
|
2014-10-05 20:35:33 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
2014-09-26 11:05:15 +02:00
|
|
|
USE_PHP= curl iconv json xml dom openssl pcre spl zlib
|
2016-10-02 20:14:02 +02:00
|
|
|
PLIST_SUB= VER="${PORTVERSION}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
|
2015-03-30 21:54:21 +02:00
|
|
|
|
2015-05-06 21:04:31 +02:00
|
|
|
OPTIONS_RADIO= DB
|
|
|
|
OPTIONS_RADIO_DB= MYSQL PGSQL SQLITE
|
2015-05-06 22:34:12 +02:00
|
|
|
OPTIONS_DEFAULT= SQLITE
|
2015-03-30 21:54:21 +02:00
|
|
|
|
2015-07-06 19:24:09 +02:00
|
|
|
MYSQL_USE= PHP=pdo_mysql
|
2015-07-06 23:00:33 +02:00
|
|
|
PGSQL_USE= PHP=pdo_pgsql
|
2015-07-06 19:24:09 +02:00
|
|
|
SQLITE_USE= PHP=pdo_sqlite
|
2015-03-30 21:54:21 +02:00
|
|
|
|
2014-09-26 11:05:15 +02:00
|
|
|
do-install:
|
2014-10-05 20:35:33 +02:00
|
|
|
@${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})
|
2016-05-17 17:27:35 +02:00
|
|
|
# Prune empty dirs
|
2016-10-02 20:14:02 +02:00
|
|
|
@${FIND} ${STAGEDIR}${WWWDIR}/${PORTNAME}/v/${PORTVERSION} -type d -empty -delete
|
2014-09-26 11:05:15 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|