diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-05-10 22:47:52 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-05-10 22:47:52 -0400 |
| commit | 074a3ce519ef44a2090173f463e2c94adf931e70 (patch) | |
| tree | ec10bf0d32ac3509cad3cdaa0a7bb13e0d726e6b | |
| parent | c862a9efb45302bf53736728e34a033c856f441e (diff) | |
ports: add ppucciniest-playground aport
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 |
