2015-08-03 00:08:34 +00:00
|
|
|
#
|
2016-04-17 17:21:44 +00:00
|
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
2015-08-03 00:08:34 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=crelay
|
2022-07-19 08:26:38 +00:00
|
|
|
PKG_VERSION:=0.14.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2015-08-03 00:08:34 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-08-01 21:14:37 +00:00
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/ondrej1024/crelay/tar.gz/V$(PKG_VERSION)?
|
2022-07-19 08:26:38 +00:00
|
|
|
PKG_HASH:=291f51d60c3003ad594ac2c10f75b0c5d0b40e49b298f73caf6a47afe3279fde
|
2015-08-03 00:08:34 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
2020-02-14 23:38:21 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2015-08-03 00:08:34 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2015-08-25 20:10:52 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2022-07-19 08:26:38 +00:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2015-08-03 00:08:34 +00:00
|
|
|
|
|
|
|
define Package/crelay
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=USB relay remote control daemon
|
2018-08-01 21:14:37 +00:00
|
|
|
URL:=https://github.com/ondrej1024/crelay
|
2015-08-03 00:08:34 +00:00
|
|
|
DEPENDS:=+libftdi1 +hidapi +libusb-1.0
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/crelay/description
|
|
|
|
crelay is used to control different relay cards in a unified manner. It provides
|
|
|
|
several interfaces for controlling the relays locally or remotely by a web browser
|
|
|
|
or a smartphone. The card which is detected first will be used. A WebUI control is
|
2016-03-26 08:53:01 +00:00
|
|
|
available on port 8000 (default)
|
2015-08-03 00:08:34 +00:00
|
|
|
.
|
|
|
|
Currently supported relay cards:
|
|
|
|
- Conrad USB 4-channel relay card
|
2016-04-17 17:21:44 +00:00
|
|
|
- Sainsmart USB 4/8-channel relay board
|
|
|
|
- Sainsmart USB 16-channel relay control module
|
2015-08-03 00:08:34 +00:00
|
|
|
- Generic GPIO relays
|
|
|
|
- HID API compatible relay card
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/crelay/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2022-07-19 08:26:38 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/crelay $(1)/usr/bin/
|
2015-08-03 00:08:34 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/crelay.init $(1)/etc/init.d/crelay
|
2015-08-21 18:40:30 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/crelay.conf $(1)/etc
|
2015-08-03 00:08:34 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,crelay))
|