Page MenuHomeFreeBSD

D54616.id169385.diff
No OneTemporary

D54616.id169385.diff

Index: filesystems/Makefile
===================================================================
--- filesystems/Makefile
+++ filesystems/Makefile
@@ -125,6 +125,7 @@
SUBDIR += ufs_copy
SUBDIR += unionfs
SUBDIR += unreliablefs
+ SUBDIR += versitygw
SUBDIR += webdavfs
SUBDIR += wimlib
SUBDIR += xfsm
Index: filesystems/versitygw/Makefile
===================================================================
--- /dev/null
+++ filesystems/versitygw/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= versitygw
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.20
+CATEGORIES= filesystems www
+
+MAINTAINER= dch@FreeBSD.org
+COMMENT= High-Performance S3 Gateway and Translation Service
+WWW= https://github.com/versity/versitygw/blob/main/go.mod
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+GO_MODULE= github.com/versity/versitygw
+GO_TARGET= ./cmd/versitygw
+
+PLIST_FILES= bin/versitygw
+
+.include <bsd.port.mk>
Index: filesystems/versitygw/distinfo
===================================================================
--- /dev/null
+++ filesystems/versitygw/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1767970041
+SHA256 (go/filesystems_versitygw/versitygw-v1.0.20/v1.0.20.mod) = 1e6f63dcd3c885949cea5d0aeafdaef63212ab4b8304c57bda324815aa410d36
+SIZE (go/filesystems_versitygw/versitygw-v1.0.20/v1.0.20.mod) = 4125
+SHA256 (go/filesystems_versitygw/versitygw-v1.0.20/v1.0.20.zip) = ce483e8c9b9b087e52620ae6256e29bb53d1cedbf9cea8ba4df4615c6d3f4636
+SIZE (go/filesystems_versitygw/versitygw-v1.0.20/v1.0.20.zip) = 977297
Index: filesystems/versitygw/files/versitygw.in
===================================================================
--- /dev/null
+++ filesystems/versitygw/files/versitygw.in
@@ -0,0 +1,85 @@
+#!/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".
+# versitygw_group (group): Set group to run versitygw.
+# Default is "versitygw".
+# versitygw_config (file): Set versitygw config file.
+# Default is "%%PREFIX%%/etc/versitygw.hcl".
+# versitygw_syslog_output_enable (bool): Set to enable syslog output.
+# Default is "NO". See daemon(8).
+# versitygw_syslog_output_priority (str): Set syslog priority if syslog enabled.
+# Default is "info". See daemon(8).
+# versitygw_syslog_output_facility (str): Set syslog facility if syslog enabled.
+# Default is "daemon". See daemon(8).
+# versitygw_limits_mlock (size): allowd memorylocked value in size. Default is 1024M
+
+. /etc/rc.subr
+
+name=versitygw
+rcvar=versitygw_enable
+
+load_rc_config $name
+
+: ${versitygw_enable:="NO"}
+: ${versitygw_user:="www"}
+: ${versitygw_group:="www"}
+: ${versitygw_directory:=""}
+: ${versitygw_access_key:=""}
+: ${versitygw_secret_key:=""}
+
+: ${versitygw_syslog_output_enable:="NO"}
+: ${versitygw_syslog_output_priority:="info"}
+: ${versitygw_syslog_output_facility:="daemon"}
+if checkyesno versitygw_syslog_output_enable; then
+ versitygw_syslog_output_flags="-T ${name}"
+
+ if [ -n "${versitygw_syslog_output_priority}" ]; then
+ versitygw_syslog_output_flags="${versitygw_syslog_output_flags} -s ${versitygw_syslog_output_priority}"
+ fi
+
+ if [ -n "${versitygw_syslog_output_facility}" ]; then
+ versitygw_syslog_output_flags="${versitygw_syslog_output_flags} -l ${versitygw_syslog_output_facility}"
+ fi
+fi
+else
+ versitygw_syslog_output_enable="NO"
+ versitygw_syslog_output_flags=""
+fi
+
+pidfile=/var/run/versitygw.pid
+procname="%%PREFIX%%/bin/versitygw"
+command="/usr/sbin/daemon"
+command_args="-f -t ${name} ${versitygw_syslog_output_flags} -p ${pidfile} /usr/bin/env ${versitygw_env} ${procname} server -config=${versitygw_config}"
+
+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 ${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"
Index: filesystems/versitygw/pkg-descr
===================================================================
--- /dev/null
+++ filesystems/versitygw/pkg-descr
@@ -0,0 +1,7 @@
+Versity S3 Gateway is a simple to use tool for seamless inline translation
+between AWS S3 object commands and storage systems. It supports:
+
+- Serving your local filesystem into an S3 server with a single command
+- Proxying local S3 requests to S3 storage with caching
+
+See https://github.com/versity/versitygw/wiki/Quickstart for usage.

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 8, 6:08 PM (17 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31110539
Default Alt Text
D54616.id169385.diff (4 KB)

Event Timeline