commit 97d33f10279a726d99c6133ec4c2e52e1879a472
parent 9b729ef61b632d55a15534eafc5f4689094acc7f
Author: Linux User <leah@foo-nuc.localdomain>
Date: Thu, 3 Dec 2020 17:38:34 +0100
parent 9b729ef61b632d55a15534eafc5f4689094acc7f
Author: Linux User <leah@foo-nuc.localdomain>
Date: Thu, 3 Dec 2020 17:38:34 +0100
update stuff
17 files changed, 162 insertions(+), 26 deletions(-)
diff --git a/alps/APKBUILD b/alps/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: +# Maintainer: +pkgname=alps +pkgver=0.0.1 +pkgrel=1 +pkgdesc="A simple and extensible webmail" +url="https://git.sr.ht/~migadu/alps" +arch="all" +license="MIT" +depends="" +makedepends="go" +install="$pkgname.pre-install $pkgname.post-deinstall" +subpackages="" +source="$pkgname.tar.gz::https://git.sr.ht/~migadu/alps/archive/master.tar.gz + $pkgname.initd + $pkgname.confd" +builddir="$srcdir/$pkgname-master/" + +build() { + cd $builddir + go build -o alps ./cmd/alps +} + +check() { + : +} + +package() { + install -Dm755 "$builddir"/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + cd ${builddir}/themes; + find . -type f -exec install -Dm 755 "{}" "${pkgdir}/usr/share/alps/themes/{}" \; +} + +sha512sums="349f8ca215f15a7453c8ea26bea04f3c7124077540c47b44c379c7fc53ba8222c8a3e3dc627a054a2fd7ce0fbe636af5e61133fc88d2ecd7cb6ae2202030d801 alps.tar.gz +eaa40ace4ca554d015939da4a2fce8c12260d5a4d6741494766bbfc59ba3ccbd2acccfe1097ff4ac07f116758ba3ddd9899960572196513ea4641706cd45608c alps.initd +81d514b4f3773d4a28808cd72f32a8a080be388086919e718bff9128b40c2e491973e9d6cc2d94f2b45a64966cbdcc92a3945556b31904937c443f73a2e1a347 alps.confd"
diff --git a/alps/alps.post-deinstall b/alps/alps.post-deinstall @@ -0,0 +1,5 @@ +#!/bin/sh + +deluser alps; + +exit 0
diff --git a/alps/alps.pre-install b/alps/alps.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S alps 2>/dev/null +adduser -S -D -h /usr/share/alps -s /sbin/nologin -G alps -g alps alps 2>/dev/null + +exit 0
diff --git a/chartsrv/APKBUILD b/chartsrv/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: pkgname=chartsrv pkgver=0.0.1 -pkgrel=0 +pkgrel=1 pkgdesc="Daemon which renders SVG plots from Prometheus data" url="https://git.sr.ht/~sircmpwn/chartsrv" arch="all" license="MIT" depends="" makedepends="go" -install="$pkgname.pre-install" +install="$pkgname.pre-install chartsrv.post-deinstall" subpackages="" source="$pkgname.tar.gz::https://git.sr.ht/~sircmpwn/chartsrv/archive/master.tar.gz $pkgname.initd
diff --git a/chartsrv/chartsrv.post-deinstall b/chartsrv/chartsrv.post-deinstall @@ -0,0 +1,5 @@ +#!/bin/sh + +deluser chartsrv; + +exit 0
diff --git a/frp/APKBUILD b/frp/APKBUILD @@ -1,24 +1,25 @@ # Contributor: # Maintainer: -pkgname=chartsrv -pkgver=0.0.1 +pkgname=frp +pkgver=0.34.2 pkgrel=0 pkgdesc="Daemon which renders SVG plots from Prometheus data" -url="https://git.sr.ht/~sircmpwn/chartsrv" +url="https://github.com/fatedier/frp" arch="all" -license="MIT" +license="Apache License 2.0" depends="" makedepends="go" install="$pkgname.pre-install" subpackages="" -source="$pkgname.tar.gz::https://git.sr.ht/~sircmpwn/chartsrv/archive/master.tar.gz - $pkgname.initd - $pkgname.confd" -builddir="$srcdir/$pkgname-master/" +source="$pkgname.tar.gz::https://github.com/fatedier/frp/archive/v${pkgver}.tar.gz + frps.initd + frps.confd" + +builddir="$srcdir/${pkgname}-${pkgver}/" build() { cd $builddir - go build -o chartsrv main.go + make } check() { @@ -26,11 +27,12 @@ check() { } package() { - install -Dm755 "$builddir"/$pkgname "$pkgdir"/usr/bin/$pkgname - install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + install -Dm755 "${builddir}/bin/frps" "${pkgdir}/usr/bin/frps" + install -Dm755 "${builddir}/bin/frpc" "${pkgdir}/usr/bin/frpc" + install -Dm755 "${srcdir}/frps.initd" "${pkgdir}/etc/init.d/frps" + install -Dm644 "${srcdir}/frps.confd" "${pkgdir}/etc/conf.d/frps" } -sha512sums="afaf5b6d49cf7df9c771b7da671c2b783b8b2b0c8ad10c59fc722b3835a33a60a5a4f58c246b8935a7fcafbfcba7b37b04354eb66118f4a384aba1635e9eb1b0 chartsrv.tar.gz -eaa40ace4ca554d015939da4a2fce8c12260d5a4d6741494766bbfc59ba3ccbd2acccfe1097ff4ac07f116758ba3ddd9899960572196513ea4641706cd45608c chartsrv.initd -81d514b4f3773d4a28808cd72f32a8a080be388086919e718bff9128b40c2e491973e9d6cc2d94f2b45a64966cbdcc92a3945556b31904937c443f73a2e1a347 chartsrv.confd" +sha512sums="a2b663849bb44e804a08e84847ed690efda8d33794c73c0bc181409655fd94fe2b7089a24d606a2d819f749e0880b9d5df6727b7923fd25781981bbfcf5857f2 frp.tar.gz +9e5e90d2e8ddc6d2eb4dea4d1803750aac403f5bb71d79c7d733307f4e9ad66e8ce88d938d6cbf32954cddd5671b32685b5be4259dace89c5a8befea5a5faabe frps.initd +ead4abcedc42214c83f2e07a920ac2e09b4a39cf4b5e6ccf2cacb89d542801afe1043b109eced4fb2a3c8df6eec44595cfe89f387543c0c7d3cb50a829447b99 frps.confd"
diff --git a/frp/chartsrv.pre-install b/frp/chartsrv.pre-install @@ -1,6 +0,0 @@ -#!/bin/sh - -addgroup -S chartsrv 2>/dev/null -adduser -S -D -h /var/lib/chartsrv -s /sbin/nologin -G chartsrv -g chartsrv chartsrv 2>/dev/null - -exit 0
diff --git a/frp/frp.pre-install b/frp/frp.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S frps 2>/dev/null +adduser -S -D -h /var/lib/frps -s /sbin/nologin -G frps -g frps frps 2>/dev/null + +exit 0
diff --git a/frp/frps.confd b/frp/frps.confd @@ -0,0 +1,3 @@ +# Configuration for /etc/init.d/frps + +frps_opts=""
diff --git a/frp/frps.initd b/frp/frps.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon + +name="frps" +description="A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet." + +command="/usr/bin/frps" +command_args="$frps_opts" +command_user=frps:frps +directory="/var/lib/$RC_SVCNAME" + +depend() { + need net localmount + after firewall +}
diff --git a/oeffi-web/APKBUILD b/oeffi-web/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: +# Maintainer: +pkgname=oeffi-web +pkgver=0.0.1 +pkgrel=11 +pkgdesc="fast and simple tripplanner for the web" +url="https://cgit.ctu.cx/oeffi-web" +arch="all" +license="MIT" +depends="openssl" +makedepends="nim" +install="$pkgname.pre-install" +subpackages="" +source="$pkgname.tar.gz::https://cgit.ctu.cx/oeffi-web/snapshot/oeffi-web-master.tar.gz + $pkgname.initd" +builddir="$srcdir/$pkgname-master/" + +build() { + cd $builddir + nim c -d:release --nimcache:$PWD src/oeffi_nojs.nim +} + +check() { + : +} + +package() { + install -Dm755 src/oeffi_nojs $pkgdir/usr/bin/$pkgname + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + mkdir -p $pkgdir/usr/share/oeffi-web + cp -r assets ${pkgdir}/usr/share/oeffi-web + cp -r templates ${pkgdir}/usr/share/oeffi-web +} + +sha512sums="7518c604539699149ca71c3af7002eb6f8384c921222917a2937239ce36d713667c8b9d039c002c843938d9e583ec79692bbe94b5ba5eead160748acbff65641 oeffi-web.tar.gz +a7c5f4509c3fcf52ff514604a42030fbab230db6ca7903e3f74b523331489dfa5401631952bb8705aa281e084bcd61f6cc5fc79b82bc422ebdc487901d44e426 oeffi-web.initd"
diff --git a/oeffi-web/oeffi-web.initd b/oeffi-web/oeffi-web.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +supervisor=supervise-daemon + +name="oeffi-web" +description="fast and simple tripplanner for the web" + +PORT=5000 +CACHE_PATH=/var/lib/oeffisearch + +export PORT +export CACHE_PATH + +command="/usr/bin/oeffi-web" +command_user=oeffisearch:oeffisearch +directory="/usr/share/oeffi-web" + +depend() { + need net localmount + after firewall +}
diff --git a/oeffi-web/oeffi-web.pre-install b/oeffi-web/oeffi-web.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S oeffisearch 2>/dev/null +adduser -S -D -h /var/lib/oeffisearch -s /sbin/nologin -G oeffisearch -g oeffisearch oeffisearch 2>/dev/null + +exit 0
diff --git a/oeffisearch/APKBUILD b/oeffisearch/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: pkgname=oeffisearch pkgver=0.0.1 -pkgrel=9 +pkgrel=10 pkgdesc="fast and simple tripplanner for the web" url="https://cgit.ctu.cx/fritzbox-exporter" arch="all" @@ -31,5 +31,5 @@ package() { cp -r client $pkgdir/usr/share/oeffisearch } -sha512sums="d4a3b3243f6de3d9afe301459b2ca4b8c6392e35608fee9511657327f5bb67a17f8708b3f1f4c8c35fb157b01a9a6a1fd1ed9f3e61aec12cc23e6eeb63c6ebc0 oeffisearch.tar.gz +sha512sums="e444696913bbddfaeaefbb19307a1009514d164de5e488c39daa6535ba552f004d53d574f6e8a3f07e3d4361a39febd67e15121ebb7810c3b5b3f7f77ce1bf4a oeffisearch.tar.gz 65dd12c9edb74505a9b9b48ddc91da6a62372d81b6729cd38984bcc39935a34caa790cfdfb2e56a1bee19daa57a76c979ee4e675702d881fa30c20d40579a3ef oeffisearch.initd"
diff --git a/pleroma/initd.patch b/pleroma/initd.patch @@ -7,7 +7,7 @@ -directory=/opt/pleroma +directory=/usr/lib/pleroma --command=/usr/lib/pleroma/bin/pleroma +-command=/opt/pleroma/bin/pleroma +command="RELEASE_TMP=/tmp/pleroma /usr/lib/pleroma/bin/pleroma" command_args="start" command_user=pleroma