aboutsummaryrefslogtreecommitdiffstats
path: root/mail/nextcloud-mail/Makefile
blob: 81f316ddc6a164e2acece07525ac9d747d62ba15 (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
# Created by: Bernard Spil <brnrd@freebsd.org>
# $FreeBSD$

PORTNAME=   mail
PORTVERSION=    0.10.0
DISTVERSIONPREFIX=  v
CATEGORIES= mail
MASTER_SITES=   https://github.com/${PKGNAMEPREFIX:S/-//}/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/
PKGNAMEPREFIX=  nextcloud-
PKGNAMESUFFIX=  ${PHP_PKGNAMESUFFIX}
DISTNAME=   ${PORTNAME}
DIST_SUBDIR=    ${PKGNAMEPREFIX:S/-//}/${DISTNAME}-${DISTVERSIONPREFIX}${PORTVERSION}

MAINTAINER= brnrd@FreeBSD.org
COMMENT=    Mail app for Nextcloud

LICENSE=    AGPLv3

RUN_DEPENDS=    nextcloud${PHP_PKGNAMESUFFIX}>=14:www/nextcloud@${PHP_FLAVOR}

USES=       gettext php:flavors
USE_PHP=    imap

NO_BUILD=   yes
NO_ARCH=    yes

NEXTCLOUD_USERNAME?=    ${WWWOWN}
NEXTCLOUD_GROUPNAME?=   ${WWWGRP}

PLIST_SUB=  NEXTCLOUD_USERNAME=${NEXTCLOUD_USERNAME} \
        NEXTCLOUD_GROUPNAME=${NEXTCLOUD_GROUPNAME}

WWWDIR=     ${PREFIX}/www/nextcloud/apps-pkg/${PORTNAME}

do-install:
    ${MKDIR} ${STAGEDIR}${WWWDIR}
    (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})

.include <bsd.port.mk>