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.

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