From nobody Sun Oct 10 17:39:03 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2F46117E31BE; Sun, 10 Oct 2021 17:39:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HS8LJ0sM5z3QmW; Sun, 10 Oct 2021 17:39:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F17DE11EC8; Sun, 10 Oct 2021 17:39:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19AHd3fp057724; Sun, 10 Oct 2021 17:39:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19AHd3g9057723; Sun, 10 Oct 2021 17:39:03 GMT (envelope-from git) Date: Sun, 10 Oct 2021 17:39:03 GMT Message-Id: <202110101739.19AHd3g9057723@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Bernard Spil Subject: git: 56bd13128865 - main - security/nextcloud-twofactor_admin: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brnrd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56bd131288651e46e53ab3eb0e2ad5d2cda68745 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by brnrd: URL: https://cgit.FreeBSD.org/ports/commit/?id=56bd131288651e46e53ab3eb0e2ad5d2cda68745 commit 56bd131288651e46e53ab3eb0e2ad5d2cda68745 Author: Bernard Spil AuthorDate: 2021-10-10 17:38:17 +0000 Commit: Bernard Spil CommitDate: 2021-10-10 17:38:17 +0000 security/nextcloud-twofactor_admin: Add new port --- security/Makefile | 1 + security/nextcloud-twofactor_admin/Makefile | 41 ++++++++++++++++++++++++++++ security/nextcloud-twofactor_admin/distinfo | 3 ++ security/nextcloud-twofactor_admin/pkg-descr | 3 ++ 4 files changed, 48 insertions(+) diff --git a/security/Makefile b/security/Makefile index 2f57f3214a31..9bd8afc59f0b 100644 --- a/security/Makefile +++ b/security/Makefile @@ -387,6 +387,7 @@ SUBDIR += nettle SUBDIR += nextcloud-end_to_end_encryption SUBDIR += nextcloud-passman + SUBDIR += nextcloud-twofactor_admin SUBDIR += nextcloud-twofactor_totp SUBDIR += nextcloud-twofactor_u2f SUBDIR += nextcloud-twofactor_webauthn diff --git a/security/nextcloud-twofactor_admin/Makefile b/security/nextcloud-twofactor_admin/Makefile new file mode 100644 index 000000000000..4465d89a9ead --- /dev/null +++ b/security/nextcloud-twofactor_admin/Makefile @@ -0,0 +1,41 @@ +# Created by: Bernard Spil + +PORTNAME= twofactor_admin +PORTVERSION= 3.1.0 +DISTVERSIONPREFIX= v +CATEGORIES= security +MASTER_SITES= https://github.com/ChristophWurst/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/ +#https://github.com/ChristophWurst/twofactor_admin/releases/download/v3.1.0/twofactor_admin.tar.gz +PKGNAMEPREFIX= nextcloud- +PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} +DISTNAME= ${PORTNAME} +DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}/${DISTNAME}-${DISTVERSIONPREFIX}${PORTVERSION} + +MAINTAINER= brnrd@FreeBSD.org +COMMENT= Admin create one-time TOTP app for Nextcloud + +LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= nextcloud${PHP_PKGNAMESUFFIX}>=17: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}) + @(cd ${WRKSRC}; ${FIND} . -not -type d) | ${SORT} | \ + ${SED} -e 's,^\.,${WWWDIR_REL},' >> ${TMPPLIST} + + +.include diff --git a/security/nextcloud-twofactor_admin/distinfo b/security/nextcloud-twofactor_admin/distinfo new file mode 100644 index 000000000000..e213ce8022e1 --- /dev/null +++ b/security/nextcloud-twofactor_admin/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1633886669 +SHA256 (nextcloud/twofactor_admin-v3.1.0/twofactor_admin.tar.gz) = cf5b5be558359d78f60d246193c5426cc397094a4ca5b9e52a770290cb50b83b +SIZE (nextcloud/twofactor_admin-v3.1.0/twofactor_admin.tar.gz) = 373694 diff --git a/security/nextcloud-twofactor_admin/pkg-descr b/security/nextcloud-twofactor_admin/pkg-descr new file mode 100644 index 000000000000..059e2137e23b --- /dev/null +++ b/security/nextcloud-twofactor_admin/pkg-descr @@ -0,0 +1,3 @@ +A Two-Factor-Auth Provider for TOTP (RFC 6238) + +WWW: https://apps.nextcloud.com/apps/twofactor_totp