diff options
Diffstat (limited to 'www/shiori')
-rw-r--r-- | www/shiori/Makefile | 23 | ||||
-rw-r--r-- | www/shiori/distinfo | 10 | ||||
-rw-r--r-- | www/shiori/files/shiori.in | 32 |
3 files changed, 56 insertions, 9 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> diff --git a/www/shiori/distinfo b/www/shiori/distinfo index 477b07f5aa30..51989a34f03b 100644 --- a/www/shiori/distinfo +++ b/www/shiori/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1737293250 -SHA256 (go/www_shiori/shiori-v1.7.3/v1.7.3.mod) = 247336cc5dfbdf0bf093b310f9e1ff920eaa47e8a1abca571d3f5f536be826c9 -SIZE (go/www_shiori/shiori-v1.7.3/v1.7.3.mod) = 6740 -SHA256 (go/www_shiori/shiori-v1.7.3/v1.7.3.zip) = de0e1a4db3e3e37d9b1030777cf41dae5a91868ec779f174c370e0e185a4665a -SIZE (go/www_shiori/shiori-v1.7.3/v1.7.3.zip) = 7037104 +TIMESTAMP = 1750495895 +SHA256 (go/www_shiori/shiori-v1.7.4/v1.7.4.mod) = 247336cc5dfbdf0bf093b310f9e1ff920eaa47e8a1abca571d3f5f536be826c9 +SIZE (go/www_shiori/shiori-v1.7.4/v1.7.4.mod) = 6740 +SHA256 (go/www_shiori/shiori-v1.7.4/v1.7.4.zip) = 5de0eff8f67d7455f83b7ea2d724adb77e43c5c5838d19539f86953aacd11eab +SIZE (go/www_shiori/shiori-v1.7.4/v1.7.4.zip) = 7037128 diff --git a/www/shiori/files/shiori.in b/www/shiori/files/shiori.in new file mode 100644 index 000000000000..4237867a73e7 --- /dev/null +++ b/www/shiori/files/shiori.in @@ -0,0 +1,32 @@ +#!/bin/sh + +# PROVIDE: shiori +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Configuration settings for shiori in /etc/rc.conf +# +# shiori_enable (bool): Enable shiori. (default=NO) +# shiori_log (str): Log output. (default=/var/log/shiori.log) +# shiori_runas (str): User to run shiori as. (default=%%USER%%) +# + +. /etc/rc.subr + +name="shiori" +desc="Simple bookmark manager built with Go" +rcvar="${name}_enable" + +load_rc_config $name + +: ${shiori_enable:="NO"} +: ${shiori_log:="/var/log/shiori.log"} +: ${shiori_runas:="%%USER%%"} +: ${shiori_datadir:="%%HOMEDIR%%"} + +pidfile="/var/run/${name}.pid" +procname="%%LOCALBASE%%/bin/${name}" +command="/usr/sbin/daemon" +command_args="-c -u '${shiori_runas}' -p '${pidfile}' -t '${desc}' -o '${shiori_log}' '${procname}' server --storage-directory '${shiori_datadir}' ${shiori_args}" + +run_rc_command "$1" |