1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/security/nextcloud-twofactor_totp/Makefile
Bernard Spil 70165ce152 security/nextcloud-twofactor_totp: Update to 1.5.0
- Required for Nextcloud 14
2018-09-10 20:15:28 +00:00

40 lines
1.0 KiB
Makefile

# Created by: Bernard Spil <brnrd@freebsd.org>
# $FreeBSD$
PORTNAME= twofactor_totp
PORTVERSION= 1.5.0
CATEGORIES= security
MASTER_SITES= https://github.com/${PKGNAMEPREFIX:S/-//}/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/
PKGNAMEPREFIX= nextcloud-
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
DISTNAME= ${PORTNAME}
DISTVERSIONPREFIX= v
DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}/${DISTNAME}-${DISTVERSIONPREFIX}${PORTVERSION}
MAINTAINER= brnrd@FreeBSD.org
COMMENT= TOTP multi-factor auth app for Nextcloud
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= nextcloud${PHP_PKGNAMESUFFIX}>=14:www/nextcloud@${PHP_FLAVOR}
USES= php:flavors
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})
${RM} ${STAGEDIR}${WWWDIR}/COPYING
.include <bsd.port.mk>