46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
PORTNAME= pocket-id
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.14.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: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>
|