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.

69 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.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=0f8391f7e95cbf1fb96a68686a1dcf1e16747b050ae1b8ff90653c99976068db
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libsispmctl
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Silver Shield PM Control for Linux library
  24. URL:=http://sispmctl.sourceforge.net
  25. DEPENDS:=+libusb-compat
  26. endef
  27. define Package/sispmctl
  28. SECTION:=utils
  29. CATEGORY:=Utilities
  30. TITLE:=Silver Shield PM Control for Linux
  31. URL:=http://sispmctl.sourceforge.net
  32. DEPENDS:=+libsispmctl
  33. endef
  34. define Package/sispmctl/description
  35. The sispmctl tool can control Gembird SIS-PM Silver Shield
  36. programmable power outlet strips (also known under the name
  37. Revolt Intelli-Plug) from the command line.
  38. .
  39. It can be used to switch on or off any of the programmable
  40. power sockets of the SIS-PM via USB. It can also show the
  41. current status of each power socket, and it can handle
  42. multiple SIS-PM devices, too.
  43. endef
  44. CONFIGURE_ARGS += \
  45. --enable-webless \
  46. --disable-dependency-tracking
  47. define Package/libsispmctl/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsispmctl.so* $(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))