2 # Copyright (C) 2008-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=3.1+20120206
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
>
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/sispmctl
31 TITLE
:=Silver Shield PM Control for Linux
32 URL
:=http
://sispmctl.sourceforge.net
/
33 DEPENDS
:=+libusb-compat
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.
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.
47 TARGET_CFLAGS
+= -D_GNU_SOURCE
50 --disable-dependency-tracking
52 define Package
/sispmctl
/install
53 $(INSTALL_DIR
) $(1)/usr
/bin
54 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
57 $(eval
$(call BuildPackage
,sispmctl
))