diff options
Diffstat (limited to 'www/shiori/Makefile')
-rw-r--r-- | www/shiori/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/www/shiori/Makefile b/www/shiori/Makefile index a8bafe630a2e..555d7e18e4a4 100644 --- a/www/shiori/Makefile +++ b/www/shiori/Makefile @@ -1,6 +1,7 @@ PORTNAME= shiori DISTVERSIONPREFIX= v DISTVERSION= 1.7.4 +PORTREVISION= 2 CATEGORIES= www MAINTAINER= nivit@FreeBSD.org @@ -10,11 +11,23 @@ WWW= https://github.com/go-shiori/shiori LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= go:1.22,modules +USES= go:1.23,modules +USE_RC_SUBR= ${PORTNAME} GO_MODULE= github.com/go-shiori/shiori -PLIST_FILES= bin/${PORTNAME} +SUB_LIST= USER=${USERS:[1]} \ + HOMEDIR=${SHIORI_HOMEDIR} + +USERS= ${SHIORI_USER} +GROUPS= ${SHIORI_GROUP} + +PLIST_FILES= bin/${PORTNAME} \ + "@dir(${SHIORI_USER},${SHIORI_GROUP},0700) ${SHIORI_HOMEDIR}" + +SHIORI_HOMEDIR= /var/db/${SHIORI_USER} +SHIORI_USER= ${PORTNAME} +SHIORI_GROUP= ${SHIORI_USER} BUILD_DATE= %FT%T @@ -27,4 +40,7 @@ post-patch: ${WRKSRC}/main.go \ ${WRKSRC}/internal/model/main.go +post-install: + @${MKDIR} ${STAGEDIR}${SHIORI_HOMEDIR} + .include <bsd.port.mk> |