diff options
Diffstat (limited to 'www/shiori/Makefile')
-rw-r--r-- | www/shiori/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/www/shiori/Makefile b/www/shiori/Makefile index e368c2645269..555d7e18e4a4 100644 --- a/www/shiori/Makefile +++ b/www/shiori/Makefile @@ -1,7 +1,7 @@ PORTNAME= shiori DISTVERSIONPREFIX= v -DISTVERSION= 1.7.3 -PORTREVISION= 3 +DISTVERSION= 1.7.4 +PORTREVISION= 2 CATEGORIES= www MAINTAINER= nivit@FreeBSD.org @@ -11,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 @@ -28,4 +40,7 @@ post-patch: ${WRKSRC}/main.go \ ${WRKSRC}/internal/model/main.go +post-install: + @${MKDIR} ${STAGEDIR}${SHIORI_HOMEDIR} + .include <bsd.port.mk> |