~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] testing/pazted: new port

Nick Bors <nick@nickbors.cc>
Details
Message ID
<20260805030012.5226-1-nick@nickbors.cc>
DKIM signature
missing
Download raw message
Patch: +65 -0
https://git.nickbors.cc/pazte
A lightweight, minimalist paste service designed to be easily deployable.
---
 testing/pazted/APKBUILD           | 56 +++++++++++++++++++++++++++++++
 testing/pazted/pazted.pre-install |  9 +++++
 2 files changed, 65 insertions(+)
 create mode 100644 testing/pazted/APKBUILD
 create mode 100644 testing/pazted/pazted.pre-install

diff --git a/testing/pazted/APKBUILD b/testing/pazted/APKBUILD
new file mode 100644
index 00000000000..f37305ea75b
--- /dev/null
+++ b/testing/pazted/APKBUILD
@@ -0,0 +1,56 @@
# Contributor: Nick Bors <nick@nickbors.cc>
# Maintainer: Nick Bors <nick@nickbors.cc>
pkgname=pazted
pkgver=0.1.0
pkgrel=0
pkgdesc="A lightweight, minimalist paste service designed to be easily deployable."
url="https://git.nickbors.cc/pazte"
arch="all"
license="MIT"
depends=""
makedepends="zig"
install="$pkgname.pre-install"
conffiles="/etc/pazted.conf"
subpackages="$pkgname-doc $pkgname-openrc $pkgname-client:pazte"
source="${pkgname}-${pkgver}.tar.gz::https://git.nickbors.cc/pazte-v${pkgver}.tar.gz"
builddir="$srcdir/pazte-v${pkgver}"

build() {
	DESTDIR="$builddir" zig build \
		-Doptimize=ReleaseSafe \
		-Dcpu=baseline \
		-Dsysconfdir=/etc \
		--prefix /usr
}

check() {
	zig build test
}

package() {
	DESTDIR="$pkgdir" zig build install \
		-Doptimize=ReleaseSafe \
		-Dcpu=baseline \
		-Dsysconfdir=/etc \
		--prefix /usr

	install -Dm644 "$builddir"/"$pkgname".conf.example \
		"$pkgdir"/etc/"$pkgname".conf
	install -Dm755 "$builddir"/contrib/openrc/"$pkgname" \
		"$pkgdir"/etc/init.d/"$pkgname"
	install -Dm644 "$builddir"/LICENSE \
		"$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}

pazte() {
	pkgdesc="Command line client for pazte"
	arch="noarch"
	depends="curl"

	install -Dm755 "$srcdir"/pazte-v$pkgver/scripts/pazte \
		"$subpkgdir"/usr/bin/pazte
}

sha512sums="
5444f1153cd3620349ccc588f2d48a9bb750caf7f8dbb5064cb257a769c5ebc6b0778861e97de1e3bf6b17160df6eef039aed4ea6a629ec500fe772b4ee75599  pazted-0.1.0.tar.gz
"
diff --git a/testing/pazted/pazted.pre-install b/testing/pazted/pazted.pre-install
new file mode 100644
index 00000000000..0330534589a
--- /dev/null
+++ b/testing/pazted/pazted.pre-install
@@ -0,0 +1,9 @@
#!/bin/sh

user=pazted
group=pazted

addgroup -S $group 2>/dev/null
adduser -S -D -h /var/lib/$user -s /sbin/nologin -G $group -g $user $user 2>/dev/null

exit 0
-- 
2.54.0
Reply to thread Export thread (mbox)