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.

46 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:=1
  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_MD5SUM:=24c848e0d705421dcd6accfffa31f704
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/relayctl
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Simple command-line control of SainSmart USB relay boards
  22. URL:=https://github.com/darryln/relayctl
  23. DEPENDS:= +libftdi1 +udev
  24. endef
  25. define Package/relayctl/description
  26. Simple command-line control of SainSmart USB relay boards based on
  27. FTDI chips using bitbang mode.
  28. endef
  29. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libftdi1
  30. define Package/relayctl/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/bin/
  33. $(INSTALL_DIR) $(1)/lib/udev/rules.d/
  34. $(CP) $(PKG_BUILD_DIR)/examples/60-relayctl.rules $(1)/lib/udev/rules.d/
  35. endef
  36. $(eval $(call BuildPackage,relayctl))