1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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:=3.1+20120206
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_VERSION:=5ff4a05a5bcb6a64a9d6f77fed47014512f66b11
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_MIRROR_HASH:=d09782160dbcc1ba3bd6a38941f38e130049d8383843f6f292409909678aed82
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_URL:=git://git.code.sf.net/p/sispmctl/git
  17. PKG_MAINTAINER:=Richard Kunze <richard.kunze@web.de>
  18. PKG_LICENSE:=GPL-2.0+
  19. PKG_INSTALL:=1
  20. PKG_FIXUP:=autoreconf
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/sispmctl
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Silver Shield PM Control for Linux
  26. URL:=http://sispmctl.sourceforge.net/
  27. DEPENDS:=+libusb-compat
  28. endef
  29. define Package/sispmctl/description
  30. The sispmctl tool can control Gembird SIS-PM Silver Shield
  31. programmable power outlet strips (also known under the name
  32. Revolt Intelli-Plug) from the command line.
  33. .
  34. It can be used to switch on or off any of the programmable
  35. power sockets of the SIS-PM via USB. It can also show the
  36. current status of each power socket, and it can handle
  37. multiple SIS-PM devices, too.
  38. endef
  39. TARGET_CFLAGS += -D_GNU_SOURCE
  40. CONFIGURE_ARGS += \
  41. --enable-webless \
  42. --disable-dependency-tracking
  43. define Package/sispmctl/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,sispmctl))