From 82b85042e0719ec46b74a0840e71818d0d14da7b Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Tue, 1 Mar 2022 21:33:35 +0100 Subject: [PATCH] gaypaste: new aport --- gaypaste/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ gaypaste/gaypaste.confd | 1 + gaypaste/gaypaste.initd | 17 +++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 gaypaste/APKBUILD create mode 100644 gaypaste/gaypaste.confd create mode 100644 gaypaste/gaypaste.initd diff --git a/gaypaste/APKBUILD b/gaypaste/APKBUILD new file mode 100644 index 0000000..c2a26c8 --- /dev/null +++ b/gaypaste/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Patrycja Rosa +# Maintainer: Patrycja Rosa +pkgname=gaypaste +pkgver=1.1.0 +pkgrel=0 +pkgdesc="paste" +url="https://git.ddd.rip/ptrcnull/gaypaste" +arch="all" +license="custom" +makedepends="go" +subpackages="$pkgname-openrc" +source="$pkgname-$pkgver.tar.gz::https://git.ddd.rip/ptrcnull/gaypaste/archive/v$pkgver.tar.gz + gaypaste.initd + gaypaste.confd + " +builddir="$srcdir/gaypaste" +options="!check" # lol + +build() { + go build +} + +package() { + install -Dm755 gaypaste "$pkgdir"/usr/bin/gaypaste + + install -Dm755 "$srcdir"/gaypaste.initd "$pkgdir"/etc/init.d/gaypaste + install -Dm644 "$srcdir"/gaypaste.confd "$pkgdir"/etc/conf.d/gaypaste +} + +sha512sums=" +eae174c8d85ae7a02c08ad0b59dc5d305cfa5cfbb32be76339e94352966d9c0f538e562b66593f4141c4c3df00ada32909f250be6d43192237a3c2b9e191b717 gaypaste-1.1.0.tar.gz +1d664c9c327f4efd426fdc23674b0a00f61f2fcdbe2ac4d269abea9a893560144f97bae7c2ae989f39e8bcf36144b140c0bb1794da63191b046d1f087db62689 gaypaste.initd +4b4225cbeb60d5e2e0e222ddc0765b642f83f2043e7caff8b79298c8a2309d0315945219337b3dcb9f193e9b1ec9d5eea3bc3f5c815623218099f1bd9a0a57c7 gaypaste.confd +" diff --git a/gaypaste/gaypaste.confd b/gaypaste/gaypaste.confd new file mode 100644 index 0000000..44206d8 --- /dev/null +++ b/gaypaste/gaypaste.confd @@ -0,0 +1 @@ +#command_args="-dataDir /tmp -domain http://localhost:8085 -bind :8085" diff --git a/gaypaste/gaypaste.initd b/gaypaste/gaypaste.initd new file mode 100644 index 0000000..cb42d47 --- /dev/null +++ b/gaypaste/gaypaste.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon + +command="/usr/bin/gaypaste" + +output_log="/var/log/gaypaste.log" +error_log="/var/log/gaypaste.log" + +depend() { + need net + after firewall +} + +start_pre() { + checkpath -f -m 644 /var/log/gaypaste.log +}