From 749344dd57c902a23b0476c0fcc1a302f3f48004 Mon Sep 17 00:00:00 2001 From: sev Date: Thu, 5 Aug 2021 05:08:18 -0500 Subject: [PATCH] new packages: cronwrap, zap --- testing/cronwrap/APKBUILD | 19 +++++++++++++++++++ testing/cronwrap/cronwrap | 7 +++++++ testing/zap/APKBUILD | 25 +++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 testing/cronwrap/APKBUILD create mode 100644 testing/cronwrap/cronwrap create mode 100644 testing/zap/APKBUILD diff --git a/testing/cronwrap/APKBUILD b/testing/cronwrap/APKBUILD new file mode 100644 index 0000000..13b4788 --- /dev/null +++ b/testing/cronwrap/APKBUILD @@ -0,0 +1,19 @@ +# Contributor: sev +# Maintainer: sev +pkgname=cronwrap +pkgver=1.0.0 +pkgrel=0 +pkgdesc="Pipe a command's output to a logfile with datestamps" +url="https://git.sev.monster/aports.git" +arch="noarch" +license="WTFPL" +source="cronwrap" +options="!check" + +package() { + install -Dm755 cronwrap "$pkgdir"/usr/bin/cronwrap +} + +sha512sums=" +1d89508f7b1683a802e1c3c09794e22c17ab26fec2c3ec7023c588b56a7ed609f111aed917fcd81af11df6c2ec832ca3fe196436cbf9eb609746c07552d46769 cronwrap +" diff --git a/testing/cronwrap/cronwrap b/testing/cronwrap/cronwrap new file mode 100644 index 0000000..a0e501f --- /dev/null +++ b/testing/cronwrap/cronwrap @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu +set -o pipefail + +"$@" 2>&1 \ + | awk "{print strftime(\"%b %d %H:%M:%S `hostname -s` info $1[$$] \"), \$0; fflush();}" \ + | tee -a "/var/log/$1.cron.log" diff --git a/testing/zap/APKBUILD b/testing/zap/APKBUILD new file mode 100644 index 0000000..edcc736 --- /dev/null +++ b/testing/zap/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: sev +# Maintainer: sev +pkgname=zap +pkgver=0.8.3 +pkgrel=1 +pkgdesc="Maintain and replicate ZFS snapshots" +url="https://github.com/Jehops/zap" +arch="noarch" +license="BSD-2-Clause" +depends="" +subpackages="$pkgname-doc" +source="https://github.com/Jehops/zap/archive/$pkgver/zap-$pkgver.tar.gz" +builddir="$srcdir/zap-$pkgver" +options="!check" + +package() { + install -Dm755 zap "$pkgdir"/usr/bin/zap + gzip zap.1 + mkdir -p "$pkgdir"-doc/usr/share/man/man1 + mv zap.1.gz "$pkgdir"-doc/usr/share/man/man1 +} + +sha512sums=" +93b62cb4bdbe895110e2cb8cad794d825ef1663f6eb92ca5ec0b99528e8d32fdda63a0cccd5449136b35b8e9864469259755d86620b0ff85d80cf6b9e1d790b5 zap-0.8.3.tar.gz +" -- 2.46.2