From 8771b7b33e79c41ead92bdc0fb6ad6e7e5214620 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 3 Jul 2016 16:14:07 +0200 Subject: packages/utils: new package relayctl Package relayctl provides a command-line tool to control SainSmart USB relay boards based on FTDI chips using bitbang mode. Signed-off-by: Heinrich Schuchardt --- utils/relayctl/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 utils/relayctl/Makefile (limited to 'utils/relayctl/Makefile') diff --git a/utils/relayctl/Makefile b/utils/relayctl/Makefile new file mode 100644 index 000000000..3680e5093 --- /dev/null +++ b/utils/relayctl/Makefile @@ -0,0 +1,45 @@ +# Copyright (C) 2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=relayctl +PKG_VERSION:=0.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://download.sourceforge.net/project/relayctl/relayctl-$(PKG_VERSION) +PKG_MAINTAINER:=Heinrich Schuchardt +PKG_MD5SUM:=24c848e0d705421dcd6accfffa31f704 +PKG_LICENSE:=BSD + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/relayctl + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Simple command-line control of SainSmart USB relay boards + URL:=https://github.com/darryln/relayctl + DEPENDS:= +libftdi1 +udev +endef + +define Package/relayctl/description + Simple command-line control of SainSmart USB relay boards based on + FTDI chips using bitbang mode. +endef + +TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libftdi1 + +define Package/relayctl/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/lib/udev/rules.d/ + $(CP) $(PKG_BUILD_DIR)/examples/60-relayctl.rules $(1)/lib/udev/rules.d/ +endef + +$(eval $(call BuildPackage,relayctl)) -- cgit v1.2.3