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.

68 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=sispmctl
  9. PKG_VERSION:=4.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=bf5177e085cb0168e18e4cfb69645c3095da149ed46f5659d6e757bde3548e40
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libsispmctl
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Silver Shield PM Control for Linux library
  23. URL:=http://sispmctl.sourceforge.net
  24. DEPENDS:=+libusb-compat
  25. endef
  26. define Package/sispmctl
  27. SECTION:=utils
  28. CATEGORY:=Utilities
  29. TITLE:=Silver Shield PM Control for Linux
  30. URL:=http://sispmctl.sourceforge.net
  31. DEPENDS:=+libsispmctl
  32. endef
  33. define Package/sispmctl/description
  34. The sispmctl tool can control Gembird SIS-PM Silver Shield
  35. programmable power outlet strips (also known under the name
  36. Revolt Intelli-Plug) from the command line.
  37. .
  38. It can be used to switch on or off any of the programmable
  39. power sockets of the SIS-PM via USB. It can also show the
  40. current status of each power socket, and it can handle
  41. multiple SIS-PM devices, too.
  42. endef
  43. TARGET_CFLAGS += -D_GNU_SOURCE
  44. CONFIGURE_ARGS += \
  45. --enable-webless \
  46. --disable-dependency-tracking
  47. define Package/libsispmctl/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libsispmctl* $(1)/usr/lib/
  50. endef
  51. define Package/sispmctl/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sispmctl $(1)/usr/bin/
  54. endef
  55. $(eval $(call BuildPackage,libsispmctl))
  56. $(eval $(call BuildPackage,sispmctl))