tapws: new ptrcport
This commit is contained in:
parent
ada06c0cfe
commit
212f029cda
3 changed files with 43 additions and 0 deletions
33
tapws/APKBUILD
Normal file
33
tapws/APKBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
pkgname=tapws
|
||||
pkgver=1.1.0
|
||||
pkgrel=0
|
||||
pkgdesc="Ethernet switch for WebSockets"
|
||||
url="https://github.com/ptrcnull/tapws"
|
||||
arch="all"
|
||||
license="BSD-2-Clause"
|
||||
makedepends="go"
|
||||
subpackages="$pkgname-openrc"
|
||||
source="https://github.com/ptrcnull/tapws/archive/refs/tags/v$pkgver/tapws-$pkgver.tar.gz
|
||||
tapws.initd
|
||||
tapws.confd
|
||||
"
|
||||
options="!check"
|
||||
|
||||
build() {
|
||||
go build -o tapws
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 tapws -t "$pkgdir"/usr/bin
|
||||
|
||||
install -Dm755 "$srcdir"/tapws.initd "$pkgdir"/etc/init.d/tapws
|
||||
install -Dm644 "$srcdir"/tapws.confd "$pkgdir"/etc/conf.d/tapws
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4eb4129e60b0ded1fc417148800ee39094ef5a40074d8fa710dda28c5bc0dc94bf232afe4e4f46ac24ed30381414ddf412512b3245b82ca2deb5653a34869e64 tapws-1.1.0.tar.gz
|
||||
1c5e8037b2e69096505eed5024f0229767036d1f6656ca65c6a4fdfda89b6895095b182860f9f6f2956852ee3bf59bf72487ee8541f541449431f6cdf3ffffc3 tapws.initd
|
||||
64e0f0de31571108c6d92b90e81ac04a187114a39b9dd68378ee91d7c00dd8f44c829a52c0dd19be2d7c792619022eacccbf47cb40a7f2114da81646a25937e6 tapws.confd
|
||||
"
|
3
tapws/tapws.confd
Normal file
3
tapws/tapws.confd
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Configuration file for tapws
|
||||
bind_address="127.0.0.1:8080"
|
||||
network_host="10.5.0.1/16"
|
7
tapws/tapws.initd
Normal file
7
tapws/tapws.initd
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
supervisor=supervise-daemon
|
||||
|
||||
name="tapws"
|
||||
command="/usr/bin/tapws"
|
||||
command_args="-bind $bind_address -host $network_host"
|
Loading…
Reference in a new issue