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