|
|
@ -1,5 +1,5 @@ |
|
|
|
#
|
|
|
|
# Copyright (C) 2013-2014 OpenWrt.org
|
|
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
@ -8,63 +8,65 @@ |
|
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
PKG_NAME:=dump1090 |
|
|
|
PKG_VERSION:=2014-11-09 |
|
|
|
PKG_VERSION:=2015-09-28 |
|
|
|
PKG_RELEASE:=$(PKG_SOURCE_VERSION) |
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git |
|
|
|
PKG_SOURCE_URL:=git://github.com/MalcolmRobb/dump1090.git |
|
|
|
PKG_SOURCE_URL:=git://github.com/mutability/dump1090.git |
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
PKG_SOURCE_VERSION:=bff92c4ad772a0a8d433f788d39dae97e00e4dbe |
|
|
|
PKG_SOURCE_VERSION:=3b4c872ea67118de1399ba9979e71b504a36aca8 |
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com> |
|
|
|
|
|
|
|
PKG_LICENSE:=BSD-3c |
|
|
|
|
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
|
|
CONFIG_DUMP1090_DUMP \
|
|
|
|
CONFIG_DUMP1090_WWW \
|
|
|
|
CONFIG_DUMP1090_VIEW |
|
|
|
PKG_LICENSE:=GPL-2.0 |
|
|
|
PKG_LICENSE_FILES:=COPYING,LICENSE |
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
define Package/dump1090 |
|
|
|
define Package/dump1090/Default |
|
|
|
SECTION:=utils |
|
|
|
CATEGORY:=Utilities |
|
|
|
TITLE:=Mode S decoder for the Realtek RTL2832U |
|
|
|
URL:=https://github.com/MalcolmRobb/dump1090 |
|
|
|
URL:=https://github.com/mutability/dump1090 |
|
|
|
DEPENDS:=+libpthread +librtlsdr |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/dump1090/config |
|
|
|
source "$(SOURCE)/Config.in" |
|
|
|
define Package/dump1090 |
|
|
|
$(call Package/dump1090/Default) |
|
|
|
TITLE+= (dump1090) |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/view1090 |
|
|
|
$(call Package/dump1090/Default) |
|
|
|
TITLE+= (view1090) |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/dump1090/description |
|
|
|
Dump1090 is a Mode S decoder specifically designed for RTLSDR devices. |
|
|
|
Embedded HTTP server that displays the currently detected aircrafts on |
|
|
|
Google Maps. Network output in Basestation and AVR formats. |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/view1090/description |
|
|
|
View1090 is a Mode S messages viewer for dump1090 devices. |
|
|
|
endef |
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" |
|
|
|
|
|
|
|
define Package/dump1090/install |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
|
|
|
|
ifneq ($(CONFIG_DUMP1090_DUMP),) |
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
|
$(INSTALL_BIN) files/dump1090.init $(1)/etc/init.d/dump1090 |
|
|
|
$(INSTALL_DIR) $(1)/etc/config |
|
|
|
$(INSTALL_CONF) files/dump1090.config $(1)/etc/config/dump1090 |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dump1090 $(1)/usr/bin |
|
|
|
ifneq ($(CONFIG_DUMP1090_WWW),) |
|
|
|
$(INSTALL_DIR) $(1)/usr/share/dump1090 |
|
|
|
$(CP) $(PKG_BUILD_DIR)/public_html/* $(1)/usr/share/dump1090 |
|
|
|
endif |
|
|
|
endif |
|
|
|
ifneq ($(CONFIG_DUMP1090_VIEW),) |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dump1090 $(1)/usr/bin |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/view1090/install |
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/view1090 $(1)/usr/bin |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
$(eval $(call BuildPackage,dump1090)) |
|
|
|
$(eval $(call BuildPackage,view1090)) |