package/rtl_433: new package
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 25 Jul 2021 12:58:31 +0000 (14:58 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 1 Aug 2021 14:20:51 +0000 (16:20 +0200)
rtl_433 (despite the name) is a generic data receiver, mainly for the
433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915 MHz ISM bands.

https://github.com/merbanan/rtl_433

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr: forcibly disable building docs and tests]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
DEVELOPERS
package/Config.in
package/rtl_433/Config.in [new file with mode: 0644]
package/rtl_433/rtl_433.hash [new file with mode: 0644]
package/rtl_433/rtl_433.mk [new file with mode: 0644]

index e73f2dfd7af27e4a1b66e3b599b33cda407709fc..1547ff123b49841d3b7ef3f54a53f72d1bbed906 100644 (file)
@@ -912,6 +912,7 @@ F:  package/python-jedi/
 F:     package/python-parso/
 F:     package/python-yatl/
 F:     package/rocksdb/
+F:     package/rtl_433/
 F:     package/rygel/
 F:     package/safeclib/
 F:     package/snort3/
index 2598565234d61a13768bd60252512e2f10796c89..046c04e99484ba882bf5396b41bd7f1f2f3606bf 100644 (file)
@@ -2071,6 +2071,7 @@ menu "Miscellaneous"
        source "package/proj/Config.in"
        source "package/qemu/Config.in"
        source "package/qpdf/Config.in"
+       source "package/rtl_433/Config.in"
        source "package/shared-mime-info/Config.in"
        source "package/sunwait/Config.in"
        source "package/taskd/Config.in"
diff --git a/package/rtl_433/Config.in b/package/rtl_433/Config.in
new file mode 100644 (file)
index 0000000..5664227
--- /dev/null
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_RTL_433
+       bool "rtl_433"
+       depends on BR2_USE_MMU # fork()
+       depends on !BR2_STATIC_LIBS
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       select BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK if BR2_PACKAGE_LIBOPENSSL
+       help
+         rtl_433 (despite the name) is a generic data receiver, mainly
+         for the 433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915
+         MHz ISM bands.
+
+         https://github.com/merbanan/rtl_433
+
+comment "rtl_433 needs a toolchain w/ dynamic library, threads"
+       depends on BR2_USE_MMU
+       depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/rtl_433/rtl_433.hash b/package/rtl_433/rtl_433.hash
new file mode 100644 (file)
index 0000000..9ace444
--- /dev/null
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  d8b87535b4e65264018771b6b288259d81137482fc938d01e0c03ac071c03bd5  rtl_433-21.05.tar.gz
+# License file, locally calculated
+sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  COPYING
diff --git a/package/rtl_433/rtl_433.mk b/package/rtl_433/rtl_433.mk
new file mode 100644 (file)
index 0000000..e6d2872
--- /dev/null
@@ -0,0 +1,32 @@
+################################################################################
+#
+# rtl_433
+#
+################################################################################
+
+RTL_433_VERSION = 21.05
+RTL_433_SITE = $(call github,merbanan,rtl_433,$(RTL_433_VERSION))
+RTL_433_LICENSE = GPL-2.0+
+RTL_433_LICENSE_FILES = COPYING
+
+RTL_433_CONF_OPTS = \
+       -DBUILD_DOCUMENTATION=OFF \
+       -DBUILD_TESTING=OFF \
+       -DBUILD_TESTING_ANALYZER=OFF \
+       -DENABLE_SOAPYSDR=OFF
+
+ifeq ($(BR2_PACKAGE_LIBRTLSDR),y)
+RTL_433_DEPENDENCIES += librtlsdr
+RTL_433_CONF_OPTS += -DENABLE_RTLSDR=ON
+else
+RTL_433_CONF_OPTS += -DENABLE_RTLSDR=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+RTL_433_DEPENDENCIES += openssl
+RTL_433_CONF_OPTS += -DENABLE_OPENSSL=ON
+else
+RTL_433_CONF_OPTS += -DENABLE_OPENSSL=OFF
+endif
+
+$(eval $(cmake-package))