mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-04 11:03:06 +02:00
New package: readsb-3.14.1691
This commit is contained in:
parent
72c689afae
commit
d508b374be
2 changed files with 55 additions and 0 deletions
12
srcpkgs/readsb/files/readsb/run
Normal file
12
srcpkgs/readsb/files/readsb/run
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -r /etc/default/readsb ] && . /etc/default/readsb
|
||||
[ -r ./conf ] && . ./conf
|
||||
|
||||
install -d -m 0755 -o _readsb -g _readsb /run/readsb
|
||||
exec setpriv --reuid _readsb --regid _readsb --init-groups \
|
||||
--ambient-caps -all,+sys_nice \
|
||||
--inh-caps -all,+sys_nice \
|
||||
--bounding-set -all,+sys_nice \
|
||||
--no-new-privs -- \
|
||||
readsb ${OPTS:- ${RECEIVER_OPTIONS} ${DECODER_OPTIONS} ${NET_OPTIONS} ${JSON_OPTIONS} --write-json /run/readsb --quiet}
|
43
srcpkgs/readsb/template
Normal file
43
srcpkgs/readsb/template
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Template file for 'readsb'
|
||||
pkgname=readsb
|
||||
version=3.14.1691
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
make_use_env=yes
|
||||
make_build_args="
|
||||
RTLSDR=yes
|
||||
BLADERF=no
|
||||
HACKRF=yes
|
||||
PLUTOSDR=no
|
||||
SOAPYSDR=yes
|
||||
HISTORY=yes"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="SoapySDR-devel libhackrf-devel librtlsdr-devel libusb-devel
|
||||
libzstd-devel ncurses-devel zlib-devel"
|
||||
short_desc="ADS-B decoder swiss knife"
|
||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||
license="GPL-3.0-or-later AND BSD-2-Clause"
|
||||
homepage="https://github.com/wiedehopf/readsb"
|
||||
distfiles="https://github.com/wiedehopf/readsb/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=bcef677e51ed4547eb41a50dd011acd9dad0b3965914cbba886fa60a059988f7
|
||||
|
||||
system_accounts="_readsb"
|
||||
_readsb_groups="plugdev"
|
||||
|
||||
conf_files="/etc/default/readsb"
|
||||
|
||||
post_patch() {
|
||||
vsed -e 's/\bgit\b/false/g' -e 's/\bncurses\b/ncursesw/g' -i Makefile
|
||||
vsed -e 's/User=readsb/User=_readsb/' -i debian/readsb.service
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin readsb
|
||||
vbin viewadsb
|
||||
vman debian/readsb.1
|
||||
vman debian/viewadsb.1
|
||||
vinstall debian/readsb.service 644 usr/lib/systemd/system
|
||||
vinstall debian/readsb.default 644 etc/default readsb
|
||||
vsv readsb
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
Add table
Reference in a new issue