mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/sish: new aport
This commit is contained in:
parent
26780d6931
commit
dbfec0415e
34
testing/sish/APKBUILD
Normal file
34
testing/sish/APKBUILD
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
|
pkgname=sish
|
||||||
|
pkgver=2.9.2
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="HTTP(S)/WS(S)/TCP Tunnels to localhost using only SSH"
|
||||||
|
url="https://github.com/antoniomika/sish"
|
||||||
|
arch="all"
|
||||||
|
license="MIT"
|
||||||
|
makedepends="go"
|
||||||
|
install="$pkgname.pre-install"
|
||||||
|
subpackages="$pkgname-openrc"
|
||||||
|
source="https://github.com/antoniomika/sish/archive/refs/tags/v$pkgver/sish-$pkgver.tar.gz
|
||||||
|
sish.initd
|
||||||
|
sish.confd
|
||||||
|
"
|
||||||
|
options="!check" # no tests provided by upstream
|
||||||
|
|
||||||
|
build() {
|
||||||
|
go build -o sish
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 sish "$pkgdir"/usr/bin/sish
|
||||||
|
install -Dm644 config.example.yml "$pkgdir"/etc/sish/config.yml
|
||||||
|
|
||||||
|
install -Dm755 "$srcdir"/sish.initd "$pkgdir"/etc/init.d/sish
|
||||||
|
install -Dm644 "$srcdir"/sish.confd "$pkgdir"/etc/conf.d/sish
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
295bc4a4b881bc096c2e719825d94677ebf4b26a69bc3e60c29feb727e2cd75d89b1496462b749a76edc1777f451c2ba062b448f06bd376ca2a4c1e63d9d504f sish-2.9.2.tar.gz
|
||||||
|
8d810e48e3106babdce734e4f83249c62de5b562c7b1c50a33914c426b5406f958d3b5868f68af1f1f766142b5cd1ef60f19457f059ff6f1985cae6001d79398 sish.initd
|
||||||
|
4b1e752dcd49ce7d8f145ad0b8bc3ea5a86dc322dc61048364a7c36386dfb21ea8b243d41bebc3db96c9c490f6b6e7e006536fe4ebfd27078f5b32181b8dd5d4 sish.confd
|
||||||
|
"
|
4
testing/sish/sish.confd
Normal file
4
testing/sish/sish.confd
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Configuration file for sish
|
||||||
|
|
||||||
|
supervisor=supervise-daemon
|
||||||
|
#config_path="/etc/sish/config.yml"
|
19
testing/sish/sish.initd
Normal file
19
testing/sish/sish.initd
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
|
command="/usr/bin/sish"
|
||||||
|
command_args="--config ${config_path:-/etc/sish/config.yml}"
|
||||||
|
command_user="sish:sish"
|
||||||
|
command_background=true
|
||||||
|
pidfile="/run/$RC_SVCNAME.pid"
|
||||||
|
|
||||||
|
output_log="/var/log/sish.log"
|
||||||
|
error_log="/var/log/sish.log"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
checkpath -d -m 0755 -o "$command_user" /var/lib/sish
|
||||||
|
checkpath -f -m 0644 -o "$command_user" "$output_log"
|
||||||
|
}
|
6
testing/sish/sish.pre-install
Normal file
6
testing/sish/sish.pre-install
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
addgroup -S sish 2>/dev/null
|
||||||
|
adduser -S -D -H -h /var/lib/sish -s /sbin/nologin -G sish -g sish sish 2>/dev/null
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user