diff options
Diffstat (limited to 'sysutils/zot/files')
4 files changed, 59 insertions, 0 deletions
diff --git a/sysutils/zot/files/config-minimal.json b/sysutils/zot/files/config-minimal.json new file mode 100644 index 000000000000..6483077a542b --- /dev/null +++ b/sysutils/zot/files/config-minimal.json @@ -0,0 +1,13 @@ +{ + "distSpecVersion": "1.1.1", + "storage": { + "rootDirectory": "/var/db/zot" + }, + "http": { + "address": "127.0.0.1", + "port": "8080" + }, + "log": { + "level": "debug" + } +} diff --git a/sysutils/zot/files/patch-vendor_github.com_distribution_distribution_v3_registry_storage_driver_s3-aws_s3__32bit.go b/sysutils/zot/files/patch-vendor_github.com_distribution_distribution_v3_registry_storage_driver_s3-aws_s3__32bit.go new file mode 100644 index 000000000000..379ebf587cbb --- /dev/null +++ b/sysutils/zot/files/patch-vendor_github.com_distribution_distribution_v3_registry_storage_driver_s3-aws_s3__32bit.go @@ -0,0 +1,8 @@ +--- vendor/github.com/distribution/distribution/v3/registry/storage/driver/s3-aws/s3_32bit.go.orig 2025-09-27 12:09:03 UTC ++++ vendor/github.com/distribution/distribution/v3/registry/storage/driver/s3-aws/s3_32bit.go +@@ -1,4 +1,4 @@ +-//go:build arm ++//go:build arm || 386 + + package s3 + diff --git a/sysutils/zot/files/patch-vendor_github.com_distribution_distribution_v3_registry_storage_driver_s3-aws_s3__64bit.go b/sysutils/zot/files/patch-vendor_github.com_distribution_distribution_v3_registry_storage_driver_s3-aws_s3__64bit.go new file mode 100644 index 000000000000..b3a66059aed1 --- /dev/null +++ b/sysutils/zot/files/patch-vendor_github.com_distribution_distribution_v3_registry_storage_driver_s3-aws_s3__64bit.go @@ -0,0 +1,8 @@ +--- vendor/github.com/distribution/distribution/v3/registry/storage/driver/s3-aws/s3_64bit.go.orig 2025-09-27 12:09:03 UTC ++++ vendor/github.com/distribution/distribution/v3/registry/storage/driver/s3-aws/s3_64bit.go +@@ -1,4 +1,4 @@ +-//go:build !arm ++//go:build !arm && !386 + + package s3 + diff --git a/sysutils/zot/files/zot.in b/sysutils/zot/files/zot.in new file mode 100644 index 000000000000..9c3fddca39a5 --- /dev/null +++ b/sysutils/zot/files/zot.in @@ -0,0 +1,30 @@ +#!/bin/sh + +# PROVIDE: zot +# REQUIRE: NETWORKING +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable zot daemon: +# +# zot_enable="YES" +# zot_config="/usr/local/etc/zot/config.json" +# + +. /etc/rc.subr + +export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin + +name="zot" +rcvar=zot_enable + +load_rc_config ${name} + +: ${zot_enable:="NO"} +: ${zot_config:="/usr/local/etc/zot/config.json"} + +command="/usr/sbin/daemon" +procname="/usr/local/bin/${name}" +pidfile="/var/run/${name}.pid" +command_args="-S -p ${pidfile} ${procname} serve ${zot_config}" + +run_rc_command "$1" |