From nobody Sun Jun 22 21:56:34 2025 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 4bQQ5t5wWYz5yKNy; Sun, 22 Jun 2025 21:56:34 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bQQ5t3bbYz3Smw; Sun, 22 Jun 2025 21:56:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750629394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zakOcAL+Hw9Iu0BgDLZ1YlnCD5grkFXJ7D6+KVn9HYU=; b=Sq1kN7PhO8I3HkqgRg6tuReGlNsFOMJnEkrgzc+07kJXYMMf3E7CbN0Qq7aKrlnwHnLapg A03fvEfJQAJlmojU5BwsQFORJfHsjZuPPsImuLWyNyYNc4WRSlEFND9HRuBZ4ZjQZ7hOWE haCdJRV55b3GZFZaFaCLl0slTwge06mmM0lK85+3lDnJYtYZOsNGu/a5FQFdOIo4u1Sduq YgPifh+tY9qw3G9/nSg7y4z2OiQBC//HqGo9M3LjKFQyuZkNue3awE0ptjPGevGE0GGaWU 3wbyHA4CYx/9acJatVqcadLwXX/8rjFvSAgFJuZWxv1mRg4aynXis+21L14GmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750629394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zakOcAL+Hw9Iu0BgDLZ1YlnCD5grkFXJ7D6+KVn9HYU=; b=niZILhjBvPokRL5vS8oeufNMvPYl1bJDtKxTZu/0sEpZenCfOngCA+ai/1eO1GbNnfiDmA oqfBKSh9hSC3wfB2W4XA3sxmb/6FYYJMaTzsXTWRJzgt0ECFPYGe5gX1Ajfm12INB7YUxV p4Y7atXd6bYht76pB6H6WYKR9oSpZyxnrMRcDHoFwInZzQZdWMl9rBwv6L9Tr5Bz35pRTX Yo1LrJ/4J7Kkf1PaDwrFGX+4RQFOErB1ixOvwulwkisNcXp6tUPTgG+zdMvGwodedT/i3s lnAooDJ2RyvOU9umLy+3+UIgkmoTcOC5iFCcAr6G2pHkfuL6u86iiXqpGXF0SQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750629394; a=rsa-sha256; cv=none; b=CKGZSi7+/LVLkjR/CBVXaNcWdjtdn56wGFqrxutIAT4xbVVNtmJLbfltB41FwoX/nAxF1n beLh3Xm1upem0ndSp82vNTxDos9yBjaB3d9QW09xaTn60uM9Kpz9KJZzoqyGSI57Gay4Wz rgBKXCrB4y9QWti/NQT9LuAdBf38ZIy8Gbx7RnXMFW/R1OJGfYuyaQtRnTKjcZ30/kbXRq Mvpvv7upfHMSMsQ7gR6wY47FMtLdF3kk35Umm/k7/G7bdFOdHpQfyGTSNcCucBljwkFdUV BiliyHjxZruZSe3KZD/v+44CNddI/1X9TtntkmE4wtTXNlipNGECRGDXJjYHtA== 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 4bQQ5t33PlzcCv; Sun, 22 Jun 2025 21:56:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55MLuYjR059429; Sun, 22 Jun 2025 21:56:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55MLuYU4059426; Sun, 22 Jun 2025 21:56:34 GMT (envelope-from git) Date: Sun, 22 Jun 2025 21:56:34 GMT Message-Id: <202506222156.55MLuYU4059426@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Jes=C3=BAs?= Daniel Colmenares Oviedo Subject: git: 4108cc08b929 - main - www/tinyauth: New port: Simplest way to protect your apps with a login screen 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dtxdf X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4108cc08b9297ee6cb197ec962d10db2614c3fc2 Auto-Submitted: auto-generated The branch main has been updated by dtxdf: URL: https://cgit.FreeBSD.org/ports/commit/?id=4108cc08b9297ee6cb197ec962d10db2614c3fc2 commit 4108cc08b9297ee6cb197ec962d10db2614c3fc2 Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2025-06-22 20:08:54 +0000 Commit: Jesús Daniel Colmenares Oviedo CommitDate: 2025-06-22 21:54:06 +0000 www/tinyauth: New port: Simplest way to protect your apps with a login screen Tinyauth is a simple authentication middleware that adds a simple login screen or OAuth with Google, Github and any provider to all of your docker apps. It supports all the popular proxies like Traefik, Nginx and Caddy. Approved by: acm (mentor) --- GIDs | 2 +- UIDs | 2 +- www/Makefile | 1 + www/tinyauth/Makefile | 49 +++++++++++++++++++++++++++++++++++++++ www/tinyauth/distinfo | 7 ++++++ www/tinyauth/files/pkg-message.in | 17 ++++++++++++++ www/tinyauth/files/tinyauth.in | 35 ++++++++++++++++++++++++++++ www/tinyauth/pkg-descr | 4 ++++ 8 files changed, 115 insertions(+), 2 deletions(-) diff --git a/GIDs b/GIDs index 7c6869b21d21..d5328e3ed06e 100644 --- a/GIDs +++ b/GIDs @@ -777,7 +777,7 @@ beehive:*:832: # free: 833 pocket-id:*:834: filebrowser:*:835: -# free: 836 +tinyauth:*:836: # free: 837 # free: 838 # free: 839 diff --git a/UIDs b/UIDs index 0b243bb7eb27..01361b61e621 100644 --- a/UIDs +++ b/UIDs @@ -783,7 +783,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 -# free: 836 +tinyauth:*:836:836::0:0:Simplest way to protect your apps with a login screen:/nonexistent:/usr/sbin/nologin # free: 837 # free: 838 # free: 839 diff --git a/www/Makefile b/www/Makefile index 6e56ffb734b4..b91c7a31dd0d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2522,6 +2522,7 @@ SUBDIR += tidy SUBDIR += tidy-html5 SUBDIR += tikiwiki + SUBDIR += tinyauth SUBDIR += tinymce SUBDIR += tinyproxy SUBDIR += tivoka diff --git a/www/tinyauth/Makefile b/www/tinyauth/Makefile new file mode 100644 index 000000000000..deb93522b649 --- /dev/null +++ b/www/tinyauth/Makefile @@ -0,0 +1,49 @@ +PORTNAME= tinyauth +DISTVERSIONPREFIX= v +DISTVERSION= 3.4.1 +CATEGORIES= www +MASTER_SITES= LOCAL/dtxdf/${PORTNAME}/ +DISTFILES= ${PORTNAME}-${DISTVERSION}.frontend${EXTRACT_SUFX} + +MAINTAINER= dtxdf@FreeBSD.org +COMMENT= Simplest way to protect your apps with a login screen +WWW= https://tinyauth.app + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:1.23,modules +USE_GITHUB= yes +GH_ACCOUNT= steveiliop56 + +USE_RC_SUBR= ${PORTNAME} + +GO_MOD_DIST= github +GO_MODULE= github.com/steveiliop56/${PORTNAME} +GO_BUILDFLAGS= -ldflags "\ + -X 'tinyauth/internal/constants.Version=${DISTVERSIONPREFIX}${DISTVERSION}' \ + -X 'tinyauth/internal/constants.CommitHash=${GITID}' \ + -X 'tinyauth/internal/constants.BuildTimestamp=${BUILD_DATE}'" + +SUB_FILES= pkg-message +SUB_LIST= USER=${USERS:[1]} + +USERS= ${TINYAUTH_USER} +GROUPS= ${TINYAUTH_GROUP} + +PLIST_FILES= bin/${PORTNAME} + +# Run 'git checkout ${DISTVERSIONPREFIX}${DISTVERSION} && git rev-parse HEAD' +# in the Tinyauth repository to get the value of GITID. +GITID= 9eb296f14644267410655122e8aff6f0db83371a + +BUILD_DATE= $$(date -u '+%Y-%m-%dT%H:%M:%S') + +TINYAUTH_USER= ${PORTNAME} +TINYAUTH_GROUP= ${TINYAUTH_USER} + +pre-build: + @${MKDIR} ${WRKSRC}/internal/assets/dist + @cd ${WRKDIR}/tinyauth-frontend && ${COPYTREE_SHARE} . ${WRKSRC}/internal/assets/dist + +.include diff --git a/www/tinyauth/distinfo b/www/tinyauth/distinfo new file mode 100644 index 000000000000..2325305b60e0 --- /dev/null +++ b/www/tinyauth/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1750535616 +SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v3.4.1_GH0/tinyauth-3.4.1.frontend.tar.gz) = 65cfc1c70e7882d1152d8391b3126f294e388af1e1dacc7fa77d8274d12d189f +SIZE (go/www_tinyauth/steveiliop56-tinyauth-v3.4.1_GH0/tinyauth-3.4.1.frontend.tar.gz) = 912295 +SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v3.4.1_GH0/go.mod) = 822e543197823d37d4c6718279f77e610c6bb866a9cc34689f20fcc592c1b295 +SIZE (go/www_tinyauth/steveiliop56-tinyauth-v3.4.1_GH0/go.mod) = 5138 +SHA256 (go/www_tinyauth/steveiliop56-tinyauth-v3.4.1_GH0/steveiliop56-tinyauth-v3.4.1_GH0.tar.gz) = 75357015d84e62eb427fca54c9782459a2779d8ea2478602b447aef875757ebc +SIZE (go/www_tinyauth/steveiliop56-tinyauth-v3.4.1_GH0/steveiliop56-tinyauth-v3.4.1_GH0.tar.gz) = 5629386 diff --git a/www/tinyauth/files/pkg-message.in b/www/tinyauth/files/pkg-message.in new file mode 100644 index 000000000000..ead130a4241c --- /dev/null +++ b/www/tinyauth/files/pkg-message.in @@ -0,0 +1,17 @@ +[ +{ type: install + message: <