Commit 12794e4c authored by Michał Polański's avatar Michał Polański Committed by Leo
Browse files

testing/piping-server: new aport

Infinitely transfer data between devices over HTTP
https://github.com/nwtgck/piping-server-rust
parent e6b7c9e3
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=piping-server
pkgver=0.8.2
pkgrel=0
pkgdesc="Infinitely transfer data between devices over HTTP"
url="https://github.com/nwtgck/piping-server-rust"
license="MIT"
arch="all !s390x !mips64" # limited by cargo
arch="$arch !ppc64le" # FTBFS
makedepends="cargo"
subpackages="$pkgname-openrc"
source="https://github.com/nwtgck/piping-server-rust/archive/v$pkgver/piping-server-rust-$pkgver.tar.gz
piping-server.initd
piping-server.confd
"
builddir="$srcdir/piping-server-rust-$pkgver"
build() {
cargo build --release --locked
}
check() {
cargo test --release --locked
}
package() {
install -Dm755 target/release/piping-server "$pkgdir"/usr/bin/piping-server
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="cb7065060aa8a61152dc2f1de10547ec4b17bc9d0ccf2f661b2342aabf21f71ad092cdf0fa1050d853a1f4470e4c0255b3c4594c70c48074b453d7e2c5083a7e piping-server-rust-0.8.2.tar.gz
4f928fd0a0160cd3770f9c0cda5b52a3d2feb3ae2919a252d9b8e618eaf375905779853725130868b24afcb2421c5ecc894be19ce353469f696968f1a1f1ec65 piping-server.initd
250716bb0da8e61538812e233dc49d1f4a781f04ff7326475705a5c82a8df1207db8c062d4e6e9501f5cc716a4935f173e6212edfa7eddb7b02c8f26e52a5e09 piping-server.confd"
# Configuration for /etc/init.d/piping-server
# Additional arguments to pass to the server
#piping_server_opts=""
#!/sbin/openrc-run
supervisor=supervise-daemon
name="Piping Server"
description="Infinitely transfer data between devices over HTTP"
command="/usr/bin/piping-server"
command_args="$piping_server_opts"
command_user="nobody:nobody"
directory="/var/empty"
logdir="/var/log/piping-server"
logfile="$logdir/piping-server.log"
supervise_daemon_args="--stdout $logfile --stderr $logfile"
depend() {
need net
after firewall
}
start_pre() {
checkpath -d -o "$command_user" "$logdir"
checkpath -f -o "$command_user" "$logfile"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment