diff --git a/filesystems/versitygw/Makefile b/filesystems/versitygw/Makefile index d411283e2a8f..35de4caf3b9e 100644 --- a/filesystems/versitygw/Makefile +++ b/filesystems/versitygw/Makefile @@ -1,26 +1,25 @@ PORTNAME= versitygw DISTVERSIONPREFIX= v -DISTVERSION= 1.3.1 -PORTREVISION= 1 +DISTVERSION= 1.4.1 CATEGORIES= filesystems www MAINTAINER= dch@FreeBSD.org COMMENT= High-Performance S3 Gateway and Translation Service WWW= https://github.com/versity/versitygw/wiki LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules USE_RC_SUBR= versitygw GO_MODULE= github.com/versity/versitygw GO_TARGET= ./cmd/versitygw GO_BUILDFLAGS+= -ldflags='-X main.Version=${DISTVERSION} -X main.Build=FreeBSD' PLIST_DIRS= /var/log/versitygw PLIST_FILES= bin/versitygw post-install: ${MKDIR} ${STAGEDIR}/var/log/versitygw .include diff --git a/filesystems/versitygw/distinfo b/filesystems/versitygw/distinfo index 57d9459737c7..036b70ea6f4c 100644 --- a/filesystems/versitygw/distinfo +++ b/filesystems/versitygw/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1772623467 -SHA256 (go/filesystems_versitygw/versitygw-v1.3.1/v1.3.1.mod) = 76ed4ec2b86db6a3f8822fa170d6fa12542bd3c5006295dea20db514f7c67242 -SIZE (go/filesystems_versitygw/versitygw-v1.3.1/v1.3.1.mod) = 4036 -SHA256 (go/filesystems_versitygw/versitygw-v1.3.1/v1.3.1.zip) = 137b45b24e82372fa470fd75537091c4d313231ab94012096d3365540b7e440e -SIZE (go/filesystems_versitygw/versitygw-v1.3.1/v1.3.1.zip) = 1495095 +TIMESTAMP = 1777279313 +SHA256 (go/filesystems_versitygw/versitygw-v1.4.1/v1.4.1.mod) = 2d2cf358532b8adba657b54c842c2ae9422cbd3b900fe0028dc4bd2bf1b6cb2b +SIZE (go/filesystems_versitygw/versitygw-v1.4.1/v1.4.1.mod) = 3976 +SHA256 (go/filesystems_versitygw/versitygw-v1.4.1/v1.4.1.zip) = d04c013092c995e5c6015d54eab7d1a7957240a44795d8f55392afac8d876eb8 +SIZE (go/filesystems_versitygw/versitygw-v1.4.1/v1.4.1.zip) = 1609982 diff --git a/filesystems/versitygw/files/versitygw.in b/filesystems/versitygw/files/versitygw.in index 6cc04da99cea..f9a2d9faa681 100644 --- a/filesystems/versitygw/files/versitygw.in +++ b/filesystems/versitygw/files/versitygw.in @@ -1,94 +1,92 @@ #!/bin/sh # PROVIDE: versitygw # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # versitygw_enable (bool): Set it to YES to enable versitygw. # Default is "NO". # versitygw_user (user): Set user to run versitygw. -# Default is "versitygw". +# Default is "www". # versitygw_group (group): Set group to run versitygw. -# Default is "versitygw". +# Default is "www". # versitygw_options (string): Provide additional runtime options. # Default is "". -# versitygw_readonly (file): Disallow writes. +# versitygw_readonly (string): Disallow writes. # Default is "yes". # versitygw_access_log (file): Path for access logs. -# Default is "/var/log/versitgw/access.log". +# Default is "/var/log/versitygw/access.log". # versitygw_admin_log (file): Path for admin logs. -# Default is "/var/log/versitgw/admin.log". -# versitygw_listen (file): IP:port to listen on. +# Default is "/var/log/versitygw/admin.log". +# versitygw_listen (string): IP:port to listen on. # Default is "localhost:7070". . /etc/rc.subr name=versitygw rcvar=versitygw_enable load_rc_config $name : ${versitygw_enable:="NO"} : ${versitygw_user:="www"} : ${versitygw_group:="www"} : ${versitygw_access_log:="/var/log/versitygw/access.log"} : ${versitygw_admin_log:="/var/log/versitygw/admin.log"} : ${versitygw_access_key:=""} : ${versitygw_secret_key:=""} : ${versitygw_directory:=""} : ${versitygw_listen:="localhost:7070"} : ${versitygw_options:=""} : ${versitygw_readonly:="yes"} if checkyesno versitygw_readonly; then versitygw_is_readonly="--readonly" else versitygw_is_readonly="" fi pidfile=/var/run/versitygw.pid procname="%%PREFIX%%/bin/versitygw" command="/usr/sbin/daemon" command_args="-f -p ${pidfile} \ /usr/bin/env ${versitygw_env} ${procname} \ --access ${versitygw_access_key} \ --secret ${versitygw_secret_key} \ --access-log ${versitygw_access_log} \ --admin-access-log ${versitygw_admin_log} \ ${versitygw_is_readonly} \ --port ${versitygw_listen} \ + ${versitygw_options} \ posix ${versitygw_directory}" monitor_cmd=versitygw_monitor start_precmd=versitygw_startprecmd required_dirs="$versitygw_directory" versitygw_monitor() { sig_reload=USR1 run_rc_command "reload" } versitygw_startprecmd() { if [ ! -e ${versitygw_access_log} ]; then install -m 0640 -o ${versitygw_user} -g ${versitygw_group} /dev/null ${versitygw_access_log}; fi if [ ! -e ${versitygw_admin_log} ]; then install -m 0640 -o ${versitygw_user} -g ${versitygw_group} /dev/null ${versitygw_admin_log}; fi if [ ! -e ${pidfile} ]; then install -o ${versitygw_user} -g ${versitygw_group} /dev/null ${pidfile}; fi - if [ ! -d ${versitygw_dir} ]; then - install -d -o ${versitygw_user} -g ${versitygw_group} ${versitygw_dir} - fi } run_rc_command "$1"