diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-09-12 21:23:36 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-09-12 21:23:36 +0200 |
| commit | 8bc1940eb1c9091d1600617f7c77a63269640f67 (patch) | |
| tree | 4ef33d9c5267ed4568500ffa003843d2bd13e883 | |
| parent | 0db420a455a0ff14d737609128803912f7cb9c04 (diff) | |
| download | slackbuilds-8bc1940eb1c9091d1600617f7c77a63269640f67.tar.gz | |
zot: Added
| -rw-r--r-- | zot/README | 4 | ||||
| -rw-r--r-- | zot/doinst.sh | 17 | ||||
| -rw-r--r-- | zot/slack-desc | 19 | ||||
| -rw-r--r-- | zot/zot.SlackBuild | 96 | ||||
| -rw-r--r-- | zot/zot.info | 10 |
5 files changed, 146 insertions, 0 deletions
diff --git a/zot/README b/zot/README new file mode 100644 index 0000000..a7f902f --- /dev/null +++ b/zot/README @@ -0,0 +1,4 @@ +zot is a production-ready vendor-neutral OCI image registry - images +stored in OCI image format, distribution specification on-the-wire. + +Edit /etc/zot/config.yaml before starting. diff --git a/zot/doinst.sh b/zot/doinst.sh new file mode 100644 index 0000000..dfef45f --- /dev/null +++ b/zot/doinst.sh @@ -0,0 +1,17 @@ +############### +# Config file # +############### +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/zot/config.yaml.new diff --git a/zot/slack-desc b/zot/slack-desc new file mode 100644 index 0000000..3477405 --- /dev/null +++ b/zot/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +zot: zot (OCI-native container image registry) +zot: +zot: zot is a production-ready vendor-neutral OCI image registry - images +zot: stored in OCI image format, distribution specification on-the-wire. +zot: +zot: Homepage: https://zotregistry.dev/ +zot: +zot: +zot: +zot: +zot: diff --git a/zot/zot.SlackBuild b/zot/zot.SlackBuild new file mode 100644 index 0000000..8d50ade --- /dev/null +++ b/zot/zot.SlackBuild @@ -0,0 +1,96 @@ +#!/bin/bash + +# Slackware build script for zot + +# Copyright 2026 Eugene Wissner, Mannheim, Germany +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=zot +VERSION=${VERSION:-2.1.21} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "x86_64" ]; then + BINARY_SUFFIX="amd64" +elif [ "$ARCH" = "arm" ]; then + BINARY_SUFFIX="arm64" +else + BINARY_SUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +GOTOOLCHAIN=go1.26.3 make binary + +mkdir -p $PKG/usr/bin +strip bin/zot-linux-${BINARY_SUFFIX} +mv bin/zot-linux-${BINARY_SUFFIX} $PKG/usr/bin/zot + +mkdir -p $PKG/etc/zot +cp -a examples/config-example.yaml $PKG/etc/zot/config.yaml.new + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README.md NOTICE COMPARISON.md SECURITY.md \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/zot/zot.info b/zot/zot.info new file mode 100644 index 0000000..10b2ed3 --- /dev/null +++ b/zot/zot.info @@ -0,0 +1,10 @@ +PRGNAM="zot" +VERSION="2.1.21" +HOMEPAGE="https://zotregistry.dev/" +DOWNLOAD="https://github.com/project-zot/zot/archive/v2.1.21/zot-2.1.21.tar.gz" +MD5SUM="b971bd4d47b7447c52575c9c15a1dd26" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Eugene Wissner" +EMAIL="belka@caraus.de" |
