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