blob: 08de608f0b211dcc3fc5bbf1f7e375d2648853e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
PORTNAME= pocket-id
DISTVERSIONPREFIX= v
DISTVERSION= 2.12.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= LOCAL/dtxdf/${PORTNAME}/:assets
# For instructions on how to create assets:
# https://github.com/DtxdF/port-assets-makejails/tree/main/pocket-id
DISTFILES= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}.frontend${EXTRACT_SUFX}:assets
MAINTAINER= dtxdf@FreeBSD.org
COMMENT= OIDC provider that allows users to authenticate with their passkeys
WWW= https://pocket-id.org
LICENSE= BSD2CLAUSE
ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= module modernc.org/sqlite only supported on aarch64 and amd64
USES= go:1.26+,modules
USE_GITHUB= yes
USE_RC_SUBR= ${PORTNAME}
GO_MOD_DIST= github
GO_MODULE= https://github.com/pocket-id/${PORTNAME}
GO_TARGET= ./cmd:${PORTNAME}
GO_BUILDFLAGS= -ldflags "-X github.com/pocket-id/pocket-id/backend/internal/common.Version=${DISTVERSION} -buildid=${DISTVERSION}"
SUB_FILES= pkg-message
SUB_LIST= USER=${USERS:[1]}
WRKSRC_SUBDIR= backend
USERS= ${POCKET_ID_USER}
GROUPS= ${POCKET_ID_GROUP}
PLIST_FILES= bin/${PORTNAME}
POCKET_ID_USER= ${PORTNAME}
POCKET_ID_GROUP= ${POCKET_ID_USER}
pre-build:
@cd ${WRKDIR}/pocket-id-frontend && ${COPYTREE_SHARE} . ${WRKSRC}/frontend/dist
.include <bsd.port.mk>
|