You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

  1. # Copyright (C) 2016 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=relayctl
  8. PKG_VERSION:=0.1
  9. PKG_RELEASE:=3
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/relayctl/relayctl-$(PKG_VERSION)
  12. PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
  13. PKG_HASH:=74ce41ebd5d18816d52b5f9b1071f658f5a814b8194257f20700214bbee9de1e
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_INSTALL:=1
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/relayctl
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Simple command-line control of SainSmart USB relay boards
  23. URL:=https://github.com/darryln/relayctl
  24. DEPENDS:= +libftdi1
  25. endef
  26. define Package/relayctl/description
  27. Simple command-line control of SainSmart USB relay boards based on
  28. FTDI chips using bitbang mode.
  29. endef
  30. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libftdi1
  31. define Package/relayctl/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
  34. $(INSTALL_DIR) $(1)/lib/udev/rules.d/
  35. $(CP) $(PKG_BUILD_DIR)/examples/60-relayctl.rules $(1)/lib/udev/rules.d/
  36. endef
  37. $(eval $(call BuildPackage,relayctl))