2 # Copyright (C) 2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=https
://codeload.github.com
/merbanan
/rtl_433
/tar.gz
/$(PKG_VERSION
)?
15 PKG_HASH
:=61a9163d69cc4b1da46aebbcaf969bd180a055a6b90f42ad281218cc4fbefb86
17 PKG_MAINTAINER
:=Jasper Scholte
<NightNL@outlook.com
>
18 PKG_LICENSE
:=GPL-2.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
24 define Package
/rtl_433
/default
25 TITLE
:=Generic radio frequency data receiver
28 DEPENDS
:=+librtlsdr
+rtl-sdr
+libtool-bin
29 URL
:=https
://github.com
/merbanan
/rtl_433
32 define Package
/rtl_433
33 $(call Package
/rtl_433
/default
)
37 define Package
/rtl_433-ssl
38 $(call Package
/rtl_433
/default
)
39 TITLE
+= (with SSL support
)
44 define Package
/rtl_433
/description
45 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.
47 To use it with OpenWrt you need a Realtek RTL2832 based DVB USB dongle
(SoapySDR is not supported
).
50 define Package
/rtl_433-ssl
/description
51 $(call Package
/rtl_433
/description
)
53 This package includes OpenSSL support which allows you to send data to influxDB
/MQTT using TLS.
56 CMAKE_OPTIONS
+= -DENABLE_SOAPYSDR
=NO
57 ifeq ($(BUILD_VARIANT
),ssl
)
58 CMAKE_OPTIONS
+= -DENABLE_OPENSSL
=ON
60 CMAKE_OPTIONS
+= -DENABLE_OPENSSL
=OFF
63 define Build
/InstallDev
64 $(INSTALL_DIR
) $(1)/usr
/include
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/rtl_433.h
$(1)/usr
/include
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/rtl_433_devices.h
$(1)/usr
/include
69 define Package
/rtl_433
/install
70 $(INSTALL_DIR
) $(1)/etc
/rtl_433
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/etc
/rtl_433
/*.conf
$(1)/etc
/rtl_433
72 $(INSTALL_DIR
) $(1)/usr
/bin
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rtl_433
$(1)/usr
/bin
76 define Package
/rtl_433-ssl
/install
77 $(call Package
/rtl_433
/install,$(1))
80 $(eval
$(call BuildPackage
,rtl_433
))
81 $(eval
$(call BuildPackage
,rtl_433-ssl
))