Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Oct 2025 21:40:26 GMT
From:      =?utf-8?Q?Jes=C3=BAs?= Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9743bc9f6e12 - main - www/tinyauth: Update to 4.0.0
Message-ID:  <202510112140.59BLeQvh020121@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by dtxdf:

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

commit 9743bc9f6e12e817b61357f6a8ba2f11e60673bb
Author:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
AuthorDate: 2025-10-11 21:36:47 +0000
Commit:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
CommitDate: 2025-10-11 21:39:58 +0000

    www/tinyauth: Update to 4.0.0
    
    * Use /var/db/tinyauth as the user's home directory, since Tinyauth is
      now a stateful application and needs to store the database somewhere.
    
    ChangeLog: https://github.com/steveiliop56/tinyauth/releases/tag/v4.0.0
---
 UIDs                              |  2 +-
 www/tinyauth/Makefile             |  9 ++++++---
 www/tinyauth/distinfo             | 14 +++++++-------
 www/tinyauth/files/pkg-message.in | 13 +++++++++++++
 4 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/UIDs b/UIDs
index 38981d063258..d6ef8ba8fca5 100644
--- a/UIDs
+++ b/UIDs
@@ -784,7 +784,7 @@ beehive:*:832:832::0:0:beehive user:/nonexistent:/usr/sbin/nologin
 # free: 833
 pocket-id:*:834:834::0:0:OIDC provider that allows users to authenticate with their passkeys:/var/db/pocket-id:/usr/sbin/nologin
 filebrowser:*:835:835::0:0:Web File Browser:/var/db/filebrowser:/usr/sbin/nologin
-tinyauth:*:836:836::0:0:Simplest way to protect your apps with a login screen:/nonexistent:/usr/sbin/nologin
+tinyauth:*:836:836::0:0:Simplest way to protect your apps with a login screen:/var/db/tinyauth:/usr/sbin/nologin
 homebox:*:837:837::0:0:Inventory and organization system built for the Home User:/var/db/homebox:/usr/sbin/nologin
 # free: 838
 shiori:*:839:839::0:0:Simple bookmark manager built with Go:/var/db/shiori:/usr/sbin/nologin
diff --git a/www/tinyauth/Makefile b/www/tinyauth/Makefile
index c6afa7e14f17..00bdf04744d2 100644
--- a/www/tinyauth/Makefile
+++ b/www/tinyauth/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	tinyauth
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.6.2
-PORTREVISION=	1
+DISTVERSION=	4.0.0
 CATEGORIES=	www
 MASTER_SITES=	LOCAL/dtxdf/${PORTNAME}/
 DISTFILES=	${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}.frontend${EXTRACT_SUFX}
@@ -32,7 +31,8 @@ SUB_LIST=	USER=${USERS:[1]}
 USERS=		${TINYAUTH_USER}
 GROUPS=		${TINYAUTH_GROUP}
 
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} \
+		"@dir(${TINYAUTH_USER},${TINYAUTH_GROUP},0750) /var/db/${PORTNAME}"
 
 # Run 'git checkout ${DISTVERSIONPREFIX}${DISTVERSION} && git rev-parse HEAD'
 # in the Tinyauth repository to get the value of GITID.
@@ -47,4 +47,7 @@ pre-build:
 	@${MKDIR} ${WRKSRC}/internal/assets/dist
 	@cd ${WRKDIR}/tinyauth-frontend && ${COPYTREE_SHARE} . ${WRKSRC}/internal/assets/dist
 
+post-install:
+	@${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
+
 .include <bsd.port.mk>
diff --git a/www/tinyauth/distinfo b/www/tinyauth/distinfo
index 6ecb3a8bb751..8cf2de36cd92 100644
--- a/www/tinyauth/distinfo
+++ b/www/tinyauth/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1754156249
-SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v3.6.2_GH0/tinyauth-v3.6.2.frontend.tar.gz) = bb0261e35041d8f2cc73341df6a61969ff97bd35264bc45743b3994702eecad6
-SIZE (go/www_tinyauth/steveiliop56-tinyauth-v3.6.2_GH0/tinyauth-v3.6.2.frontend.tar.gz) = 952998
-SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v3.6.2_GH0/go.mod) = d23ed0cab1f356dfb3e946fdabce2afffb1adaf8bfcf28cd195dc3c2f1d883f7
-SIZE (go/www_tinyauth/steveiliop56-tinyauth-v3.6.2_GH0/go.mod) = 5418
-SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v3.6.2_GH0/steveiliop56-tinyauth-v3.6.2_GH0.tar.gz) = 4b3a592bc76c8293ac862620cfcdb70cfd418f810f27ec27ce73cd9d7130fc44
-SIZE (go/www_tinyauth/steveiliop56-tinyauth-v3.6.2_GH0/steveiliop56-tinyauth-v3.6.2_GH0.tar.gz) = 5638267
+TIMESTAMP = 1760211074
+SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v4.0.0_GH0/tinyauth-v4.0.0.frontend.tar.gz) = 5e59fb24c2de32514dda027dba7615fec84010f96f1672620eb4540c61897422
+SIZE (go/www_tinyauth/steveiliop56-tinyauth-v4.0.0_GH0/tinyauth-v4.0.0.frontend.tar.gz) = 957403
+SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v4.0.0_GH0/go.mod) = 7349001cef42a829825219579ed2d37d4212c4117259c06c8228922c55932a3e
+SIZE (go/www_tinyauth/steveiliop56-tinyauth-v4.0.0_GH0/go.mod) = 6236
+SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v4.0.0_GH0/steveiliop56-tinyauth-v4.0.0_GH0.tar.gz) = 20881daf0281031681cfe05f9e49711b3f64c633c6c8accacc0f2566af80f43e
+SIZE (go/www_tinyauth/steveiliop56-tinyauth-v4.0.0_GH0/steveiliop56-tinyauth-v4.0.0_GH0.tar.gz) = 5649496
diff --git a/www/tinyauth/files/pkg-message.in b/www/tinyauth/files/pkg-message.in
index ead130a4241c..7125da4a7373 100644
--- a/www/tinyauth/files/pkg-message.in
+++ b/www/tinyauth/files/pkg-message.in
@@ -14,4 +14,17 @@ Tinyauth is installed
      service tinyauth start
 EOM
 }
+{ type: upgrade
+  maximum_version: "4.0.0"
+  message: <<EOM
+Since version 4.0.0, Tinyauth is a stateful application, which means you must set
+DATABASE_PATH to /var/db/tinyauth/tinyauth.db if you want sessions to persist even
+after restarting.
+
+Please refer to the current documentation for any changes you
+need to make to your configuration file:
+
+  https://tinyauth.app/docs/breaking-updates/3-to-4/
+EOM
+}
 ]


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510112140.59BLeQvh020121>