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