mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
readsb: new package
This package is based on dump1090-fa with many modifications. A big advantage over dump1090-fa is that it can connect to multiple services like adsbexchange, piaware or fr24feed. As the idea for this package is mostly to feed other services, the HTML files to serve via a webserver have not been included. The service(s) that will be fed by readsb can offer such a webpage instead. Finally, the init script does not use local variables, as local is undefined in POSIX. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
# Copyright (C) 2020 Stijn Tintel <stijn@linux-ipv6.be>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=readsb
|
||||
PKG_VERSION:=3.8.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/Mictronics/readsb/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=bf59b8ecd0ff66945b210c55a5b824aa63ff8cbb1704249528d30a4902e716b2
|
||||
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_LICENSE_FILES:=COPYING LICENSE
|
||||
|
||||
PKG_MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be>
|
||||
|
||||
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/readsb/default
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
DEPENDS:=+libncurses
|
||||
TITLE:=Mode-S/ADSB/TIS decoder for various devices
|
||||
URL:=https://github.com/Mictronic/readsb
|
||||
endef
|
||||
|
||||
define Package/readsb
|
||||
$(call Package/readsb/default)
|
||||
TITLE+= (readsb)
|
||||
DEPENDS+=+librtlsdr
|
||||
endef
|
||||
|
||||
define Package/viewadsb
|
||||
$(call Package/readsb/default)
|
||||
TITLE+= (viewadsb)
|
||||
endef
|
||||
|
||||
MAKE_FLAGS += \
|
||||
BLADERF=no \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
RTLSDR=yes \
|
||||
UNAME="Linux"
|
||||
|
||||
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
|
||||
TARGET_LDFLAGS += \
|
||||
$(if $(CONFIG_LIBC_USE_GLIBC),,-largp) \
|
||||
-Wl,--gc-sections,--as-needed
|
||||
|
||||
define Package/readsb/conffiles
|
||||
/etc/config/readsb
|
||||
endef
|
||||
|
||||
define Package/readsb/install
|
||||
$(INSTALL_DIR) $(1)/etc/{config,init.d} $(1)/usr/bin
|
||||
$(INSTALL_CONF) ./files/readsb.config $(1)/etc/config/readsb
|
||||
$(INSTALL_BIN) ./files/readsb.init $(1)/etc/init.d/readsb
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/readsb $(1)/usr/bin
|
||||
endef
|
||||
|
||||
define Package/viewadsb/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/viewadsb $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,readsb))
|
||||
$(eval $(call BuildPackage,viewadsb))
|
||||
Reference in New Issue
Block a user