summaryrefslogtreecommitdiff
path: root/localports
diff options
context:
space:
mode:
Diffstat (limited to 'localports')
-rw-r--r--localports/ppucciniest-playground/APKBUILD29
-rwxr-xr-xlocalports/ppucciniest-playground/ppucciniest-playground.initd11
-rw-r--r--localports/ppucciniest-playground/ppucciniest-playground.post-deinstall6
-rwxr-xr-xlocalports/ppucciniest-playground/ppucciniest-playground.pre-install7
4 files changed, 53 insertions, 0 deletions
diff --git a/localports/ppucciniest-playground/APKBUILD b/localports/ppucciniest-playground/APKBUILD
new file mode 100644
index 0000000..526728a
--- /dev/null
+++ b/localports/ppucciniest-playground/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Sam Nystrom <sam@samnystrom.dev>
+# Maintainer: Sam Nystrom <sam@samnystrom.dev>
+pkgname=ppucciniest-playground
+pkgver=0.1.0
+pkgrel=0
+pkgdesc="An online playground for ppucciniest"
+url="https://git.sr.ht/~stonks3141/ppucciniest-playground"
+arch="all"
+license="AGPL-3.0-or-later"
+depends="ppucciniest"
+makedepends="go"
+options="!check" # no tests
+install="$pkgname.pre-install $pkgname.post-deinstall"
+subpackages="$pkgname-openrc"
+source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~stonks3141/ppucciniest-playground/archive/$pkgver.tar.gz
+ $pkgname.initd"
+
+build() {
+ go build
+}
+
+package() {
+ install -Dm755 ./ppucciniest-playground "$pkgdir"/usr/bin/ppucciniest-playground
+ install -Dm755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+}
+sha512sums="
+fde9d38730f42a11900542830fb29afe8adb36b2a5b50dec347e34371dbea1b0ff93d7bcb6939def814a8a597d8bd7467e952d3bf86e0ceb418e564296bae80e ppucciniest-playground-0.1.0.tar.gz
+af60e6980ce7e44ae5a716ed19e84c3ddcc7e401b7b9c50e4f4093e69ad91bdfb249cbcca1be0813cf6b5e15a35219ab468326fae13b480272a9cecfd679f7cd ppucciniest-playground.initd
+"
diff --git a/localports/ppucciniest-playground/ppucciniest-playground.initd b/localports/ppucciniest-playground/ppucciniest-playground.initd
new file mode 100755
index 0000000..f9f31e3
--- /dev/null
+++ b/localports/ppucciniest-playground/ppucciniest-playground.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+
+name="ppucciniest-playground"
+description="An online playground for ppucciniest"
+supervisor=supervise-daemon
+command="/usr/bin/$name"
+command_user="ppucciniest_playground:ppucciniest_playground"
+
+depend() {
+ need net
+}
diff --git a/localports/ppucciniest-playground/ppucciniest-playground.post-deinstall b/localports/ppucciniest-playground/ppucciniest-playground.post-deinstall
new file mode 100644
index 0000000..8b13986
--- /dev/null
+++ b/localports/ppucciniest-playground/ppucciniest-playground.post-deinstall
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+delgroup ppucciniest_playground 2>/dev/null
+deluser ppucciniest_playground 2>/dev/null
+
+exit 0
diff --git a/localports/ppucciniest-playground/ppucciniest-playground.pre-install b/localports/ppucciniest-playground/ppucciniest-playground.pre-install
new file mode 100755
index 0000000..29b6997
--- /dev/null
+++ b/localports/ppucciniest-playground/ppucciniest-playground.pre-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+addgroup -S ppucciniest_playground 2>/dev/null
+adduser -SDs/sbin/nologin -Gppucciniest_playground -gppucciniest_playground \
+ ppucciniest_playground ppucciniest_playground 2>/dev/null
+
+exit 0