summaryrefslogtreecommitdiff
path: root/mail/roundcube-twofactor_gauthenticator/Makefile
blob: d35aaa2950348e0ff54e90f00e408c2c431c461c (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
PORTNAME=	twofactor_gauthenticator
PORTVERSION=	g20220403
CATEGORIES=	mail security
PKGNAMEPREFIX=	roundcube-
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}

MAINTAINER=	brnrd@FreeBSD.org
COMMENT=	Roundcube TOTP auth plugin
WWW=		https://github.com/alexandregz/twofactor_gauthenticator

LICENSE=	GPLv2

BUILD_DEPENDS=	roundcube${PHP_PKGNAMESUFFIX}>=1.0:mail/roundcube@${PHP_FLAVOR}
RUN_DEPENDS=	roundcube${PHP_PKGNAMESUFFIX}>=1.0:mail/roundcube@${PHP_FLAVOR}

USES=		php:flavors
IGNORE_WITH_PHP=81 82

USE_GITHUB=	yes
GH_ACCOUNT=	alexandregz
GH_TAGNAME=	06e21b0

NO_BUILD=	yes
NO_ARCH=	yes

SUB_FILES=	pkg-message

WWWDIR=		${PREFIX}/www/roundcube/plugins/${PORTNAME}

do-install:
	${MKDIR} ${STAGEDIR}${WWWDIR}
	cd ${WRKSRC} && ${PAX} -r -w . ${STAGEDIR}${WWWDIR}
	cd ${STAGEDIR}${WWWDIR} && \
		${MV} config.inc.php.dist config.inc.php.sample

.include <bsd.port.mk>