debian: import 3.1-3 packaging

Import packaging that is currently in debian:
https://deb.debian.org/debian/pool/main/s/sispmctl/sispmctl_3.1-3.debian.tar.xz

Signed-off-by: Oliver Smith <osmith@sysmocom.de>
This commit is contained in:
Oliver Smith 2023-06-28 14:48:34 +02:00
parent 6d7dcb9cb4
commit 5b5b464063
10 changed files with 187 additions and 0 deletions

49
debian/changelog vendored Normal file
View File

@ -0,0 +1,49 @@
sispmctl (3.1-3) unstable; urgency=medium
* QA upload.
* Add support for EnerGenie EG-PMS2 (Closes: #929612).
-- Cyril Brulebois <kibi@debian.org> Mon, 06 Feb 2023 04:11:25 +0100
sispmctl (3.1-2) unstable; urgency=medium
* QA upload.
* Set maintainer to Debian QA Group <packages@qa.debian.org>. (see: #986708)
-- Marcos Talau <talau@debian.org> Sat, 12 Nov 2022 14:22:42 -0300
sispmctl (3.1-1) unstable; urgency=low
* New upstream release.
* Standards-Version: 3.9.2 (no changes required).
* Use latest debhelper >= 8 and new '3.0 (quilt)' source format.
* debian/watch: Add file.
-- Uwe Hermann <uwe@debian.org> Tue, 27 Dec 2011 03:32:20 +0100
sispmctl (2.7-1) unstable; urgency=low
* New upstream release.
+ Support for msis-pm (single socket) and sis-pm (device ID 0xfd13).
+ Add -m switch for power status.
* debian/copyright: Switch to machine-readable format as specified at
http://wiki.debian.org/Proposals/CopyrightFormat.
-- Uwe Hermann <uwe@debian.org> Sun, 18 May 2008 02:18:09 +0200
sispmctl (2.5-1) unstable; urgency=low
* New upstream release.
+ This fixes a segfault when using the -b option.
* Standards-Version: 3.7.3 (no changes required).
* debian/control: Add Homepage field.
* Versioned build-dependency on libusb-dev (>= 0.1.8) as per README.
-- Uwe Hermann <uwe@debian.org> Wed, 12 Dec 2007 00:16:45 +0100
sispmctl (2.4b-1) unstable; urgency=low
* Initial release (Closes: #415633).
-- Uwe Hermann <uwe@debian.org> Sun, 8 Apr 2007 03:16:25 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
8

20
debian/control vendored Normal file
View File

@ -0,0 +1,20 @@
Source: sispmctl
Section: admin
Priority: extra
Maintainer: Debian QA Group <packages@qa.debian.org>
Build-Depends: cdbs, debhelper (>= 8.0.0), autotools-dev, libusb-dev (>= 0.1.8)
Standards-Version: 3.9.2
Homepage: http://sispmctl.sourceforge.net/
Package: sispmctl
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Control Gembird SIS-PM programmable power outlet strips
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.

51
debian/copyright vendored Normal file
View File

@ -0,0 +1,51 @@
This package was debianized by Uwe Hermann <uwe@debian.org> on
Sun, 8 Apr 2007 03:16:25 +0200.
The current Debian maintainer is Uwe Hermann <uwe@debian.org>.
It was downloaded from:
http://sispmctl.sourceforge.net
Upstream Authors:
Mondrian Nuessle <nuessle@uni-mannheim.de>
Andreas Neuper <aneuper@web.de>
-------------------------------------------------------------------------------
Files: *
Copyright: © 2004-2006 Mondrian Nuessle <nuessle@uni-mannheim.de>
© 2005 Andreas Neuper <aneuper@web.de>
License: GPL-2+
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
-------------------------------------------------------------------------------
Files: src/nethelp.c
Copyright: © 2003 Evan Buswell
© 1999 Jack Moffitt, Barath Raghavan, and Alexander Haväng
License: GPL-2+
-------------------------------------------------------------------------------
Files: src/socket.c
Copyright: © 2003 Evan Buswell
License: GPL-2+
-------------------------------------------------------------------------------
Files: extras/sispmapplet.py:
Copyright: © 2006 Mondrian Nuessle <nuessle@uni-mannheim.de>
License: GPL-2+
-------------------------------------------------------------------------------
Files: debian/*
Copyright: © 2007 - 2011 Uwe Hermann <uwe@debian.org>
License: PD
The packaging done by Uwe Hermann <uwe@debian.org> is hereby
released as public domain.

2
debian/docs vendored Normal file
View File

@ -0,0 +1,2 @@
AUTHORS
README

View File

@ -0,0 +1,52 @@
From: Cyril Brulebois <kibi@debian.org>
Date: Mon, 06 Feb 2023 04:06:22 +0100
Subject: Add new device idVendor=04b4, idProduct=fd15
Backport commit bdd3c5006c07a801dd2e29162368ac407ac756b4 from upstream,
picking only the required bits.
--- a/src/sispm_ctl.c
+++ b/src/sispm_ctl.c
@@ -164,7 +164,9 @@ int check_outlet_number(int id, int outl
fprintf(stderr,"mSIS-PM devices only feature one outlet. Number changed from %d to 1\n", outlet);
outlet = 1;
}
- if (id == PRODUCT_ID_SISPM || id == PRODUCT_ID_SISPM_FLASH_NEW) {
+ if ((id == PRODUCT_ID_SISPM) ||
+ (id == PRODUCT_ID_SISPM_FLASH_NEW) ||
+ (id == PRODUCT_ID_SISPM_EG_PMS2)) {
if (outlet < 1 || outlet > 4) {
if (verbose == 1)
fprintf(stderr,"SIS-PM devices only feature 4 outlets. Number changed from %d to 1\n", outlet);
--- a/src/main.c
+++ b/src/main.c
@@ -490,7 +490,9 @@ void parse_command_line(int argc, char*
printf("%d %s %s\n", status,
dev[status]->bus->dirname, dev[status]->filename);
id = get_id(dev[status]);
- if ((id == PRODUCT_ID_SISPM) || (id == PRODUCT_ID_SISPM_FLASH_NEW))
+ if ((id == PRODUCT_ID_SISPM) ||
+ (id == PRODUCT_ID_SISPM_FLASH_NEW) ||
+ (id == PRODUCT_ID_SISPM_EG_PMS2))
if (numeric == 0)
printf("device type: 4-socket SiS-PM\n");
else
@@ -789,7 +791,8 @@ int main(int argc, char** argv)
if ((dev->descriptor.idVendor == VENDOR_ID) && ((dev->descriptor.idProduct == PRODUCT_ID_SISPM) ||
(dev->descriptor.idProduct == PRODUCT_ID_MSISPM_OLD) ||
(dev->descriptor.idProduct == PRODUCT_ID_MSISPM_FLASH) ||
- (dev->descriptor.idProduct == PRODUCT_ID_SISPM_FLASH_NEW))) {
+ (dev->descriptor.idProduct == PRODUCT_ID_SISPM_FLASH_NEW) ||
+ (dev->descriptor.idProduct == PRODUCT_ID_SISPM_EG_PMS2))) {
usbdev[count++] = dev;
}
if (count == MAXGEMBIRD) {
--- a/src/sispm_ctl.h
+++ b/src/sispm_ctl.h
@@ -39,6 +39,7 @@
#define PRODUCT_ID_MSISPM_OLD 0xFD10
#define PRODUCT_ID_MSISPM_FLASH 0xFD12
#define PRODUCT_ID_SISPM_FLASH_NEW 0xFD13
+#define PRODUCT_ID_SISPM_EG_PMS2 0xFD15

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
0001-Add-new-device-idVendor-04b4-idProduct-fd15.patch

8
debian/rules vendored Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
# We don't install the webserver at the moment.
DEB_CONFIGURE_EXTRA_FLAGS := --enable-webless

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
version=3
http://sf.net/sispmctl/sispmctl-(.*)\.tar\.gz