git: c6185898f4ab - main - www/nextcloud-impersonate: new port

From: Serhii (Sergey) Kozlov <skozlov_at_FreeBSD.org>
Date: Mon, 20 Jul 2026 21:06:04 UTC
The branch main has been updated by skozlov:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6185898f4ab9a8f926dcec9dd6ac9d7fb69e522

commit c6185898f4ab9a8f926dcec9dd6ac9d7fb69e522
Author:     Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
AuthorDate: 2026-07-20 21:03:00 +0000
Commit:     Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
CommitDate: 2026-07-20 21:05:45 +0000

    www/nextcloud-impersonate: new port
    
    Enable administrators to impersonate other users on the Nextcloud server.
    This is especially useful for debugging issues reported by users.
---
 www/Makefile                        |  1 +
 www/nextcloud-impersonate/Makefile  | 16 ++++++++++++++++
 www/nextcloud-impersonate/distinfo  |  3 +++
 www/nextcloud-impersonate/pkg-descr | 14 ++++++++++++++
 4 files changed, 34 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index e4579e5c5554..0370f24cdd51 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -506,6 +506,7 @@
     SUBDIR += nextcloud-deck
     SUBDIR += nextcloud-forms
     SUBDIR += nextcloud-groupfolders
+    SUBDIR += nextcloud-impersonate
     SUBDIR += nextcloud-memories
     SUBDIR += nextcloud-news
     SUBDIR += nextcloud-notes
diff --git a/www/nextcloud-impersonate/Makefile b/www/nextcloud-impersonate/Makefile
new file mode 100644
index 000000000000..e01f2de981e1
--- /dev/null
+++ b/www/nextcloud-impersonate/Makefile
@@ -0,0 +1,16 @@
+PORTNAME=	impersonate
+PORTVERSION=	5.0.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	www security
+
+MAINTAINER=	skozlov@FreeBSD.org
+COMMENT=	Allow administrators to become a different user
+WWW=		https://apps.nextcloud.com/apps/${PORTNAME}
+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+NEXTCLOUD_RUN_DEPENDS=	34
+
+USES=		nextcloud php:flavors
+
+.include <bsd.port.mk>
diff --git a/www/nextcloud-impersonate/distinfo b/www/nextcloud-impersonate/distinfo
new file mode 100644
index 000000000000..c024e8bbd374
--- /dev/null
+++ b/www/nextcloud-impersonate/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1784580660
+SHA256 (nextcloud/impersonate-v5.0.0.tar.gz) = e9b85d6489434af2d05f1618839bcfd9859dbc6b7be580148592f511a448ed66
+SIZE (nextcloud/impersonate-v5.0.0.tar.gz) = 1160172
diff --git a/www/nextcloud-impersonate/pkg-descr b/www/nextcloud-impersonate/pkg-descr
new file mode 100644
index 000000000000..b8530e2bb131
--- /dev/null
+++ b/www/nextcloud-impersonate/pkg-descr
@@ -0,0 +1,14 @@
+Allow administrators to become a different user by adding an impersonate action
+to the user list. This is especially useful for debugging issues reported by
+users.
+
+To impersonate a user an administrator has to simply follow the following four
+steps:
+
+1. Login as administrator to Nextcloud.
+2. Open users administration interface.
+3. Select the impersonate button on the affected user.
+4. Confirm the impersonation.
+
+The administrator is then logged-in as the user, to switch back to the regular
+user account they simply have to press the logout button.