dump1090: new package
authorPeter Korsgaard <peter@korsgaard.com>
Sat, 30 Sep 2017 20:07:43 +0000 (22:07 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Oct 2017 21:15:52 +0000 (23:15 +0200)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/dump1090/Config.in [new file with mode: 0644]
package/dump1090/dump1090.hash [new file with mode: 0644]
package/dump1090/dump1090.mk [new file with mode: 0644]

index cedf5a6f848f451f0d239a4572cc773d0bbfe7e0..43ad9e5f8a6374c4a15d2884b28229a141437194 100644 (file)
@@ -1332,6 +1332,7 @@ F:        package/libunistring/
 N:     Peter Korsgaard <peter@korsgaard.com>
 F:     board/orangepi/
 F:     configs/orangepi_pc_defconfig
+F:     package/dump1090/
 F:     package/flickcurl/
 F:     package/fscryptctl/
 F:     package/jo/
index 1580a9e3d66ecc96fbf25fd1fb0a57afc182a55a..0dfe086eadc9e1a5ea7e46e93e2278b29ceefe91 100644 (file)
@@ -396,6 +396,7 @@ endmenu
        source "package/dmraid/Config.in"
        source "package/dt-utils/Config.in"
        source "package/dtv-scan-tables/Config.in"
+       source "package/dump1090/Config.in"
        source "package/dvb-apps/Config.in"
        source "package/dvbsnoop/Config.in"
        source "package/edid-decode/Config.in"
diff --git a/package/dump1090/Config.in b/package/dump1090/Config.in
new file mode 100644 (file)
index 0000000..81fd3f2
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_DUMP1090
+       bool "dump1090"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # librtlsdr
+       select BR2_PACKAGE_LIBSRTLSDR
+       help
+         Dump1090 is a simple Mode S decoder for RTLSDR devices
+
+         https://github.com/MalcolmRobb/dump1090
+
+comment "dump1090 needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/dump1090/dump1090.hash b/package/dump1090/dump1090.hash
new file mode 100644 (file)
index 0000000..fbbf21a
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 72c1a94f3e6788af1e72b8cac13bb53e0989fe02cd13e191133f5519d2a2fefb  dump1090-bff92c4ad772a0a8d433f788d39dae97e00e4dbe.tar.gz
+sha256 29046ef7ee0b7b127bcc64faf135035820906dea2b379b2efcfc119131a39f7a  anet.h
diff --git a/package/dump1090/dump1090.mk b/package/dump1090/dump1090.mk
new file mode 100644 (file)
index 0000000..69fd679
--- /dev/null
@@ -0,0 +1,25 @@
+################################################################################
+#
+# dump1090
+#
+################################################################################
+
+DUMP1090_VERSION = bff92c4ad772a0a8d433f788d39dae97e00e4dbe
+DUMP1090_SITE = $(call github,MalcolmRobb,dump1090,$(DUMP1090_VERSION))
+DUMP1090_LICENSE = BSD-3-Clause
+# no real license file
+DUMP1090_LICENSE_FILES = anet.h
+DUMP1090_DEPENDENCIES = host-pkgconf librtlsdr
+
+define DUMP1090_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr -C $(@D)
+endef
+
+define DUMP1090_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0755 -D $(@D)/dump1090 $(TARGET_DIR)/usr/bin/dump1090
+       $(INSTALL) -m 0755 -D $(@D)/view1090 $(TARGET_DIR)/usr/bin/view1090
+       $(INSTALL) -d $(TARGET_DIR)/usr/share/dump1090
+       cp -r $(@D)/public_html/* $(TARGET_DIR)/usr/share/dump1090
+endef
+
+$(eval $(generic-package))