Oliver Smith
897e2c4eeb
debian/changelog: add 4.10
...
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-30 12:07:46 +02:00
Oliver Smith
b29b840ade
debian/control: change priority extra -> optional
...
Fix lintian warning:
W: sispmctl: priority-extra-is-replaced-by-priority-optional
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-29 14:48:52 +02:00
Oliver Smith
2f72e1ebce
debian: install udev rule and create related group
...
postinst script based on the example here:
https://www.debian.org/doc/manuals/securing-debian-manual/bpp-lower-privs.en.html
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-29 14:48:52 +02:00
Oliver Smith
45889a8c0c
debian: split libsispmctl0 into subpackage
...
Fix lintian warnings:
W: sispmctl: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libsispmctl.so.0.2.1 usr/lib/x86_64-linux-gnu/libsispmctl.so
W: sispmctl: package-name-doesnt-match-sonames libsispmctl0
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-29 14:48:52 +02:00
Oliver Smith
0d19e1ebf7
debian/rules: use --disable-static
...
The static library causes lintian errors, remove it for now.
E: sispmctl: incorrect-libdir-in-la-file usr/lib/x86_64-linux-gnu/libsispmctl.la (line 41) usr/lib/ != usr/lib/x86_64-linux-gnu/
E: sispmctl: non-empty-dependency_libs-in-la-file usr/lib/x86_64-linux-gnu/libsispmctl.la (line 20) -lusb
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-29 14:48:52 +02:00
Oliver Smith
01e22b6a56
debian/control: update build-depends
...
* set libusb-dev min version to 0.1.11, as in configure.ac
* add pkg-config to fix:
syntax error near unexpected token `LIBUSB,'
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-29 14:47:20 +02:00
Oliver Smith
841e6e080b
gitignore: add files created during deb build
...
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-28 16:30:19 +02:00
Oliver Smith
87eab709ca
debian: bump compat level to 10
...
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-28 16:30:19 +02:00
Oliver Smith
db94e2b848
debian: remove cdbs dependency
...
Build without cdbs (Common Debian Build System) as it has been orphaned.
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-28 16:30:12 +02:00
Oliver Smith
266654ea7b
debian/source/format: set to native
...
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-28 15:53:54 +02:00
Oliver Smith
71fbe90ddf
debian/patches: remove
...
The patch in this directory was a backport, it is included in 4.10.
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
2023-06-28 15:53:54 +02:00
Oliver Smith
5b5b464063
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>
2023-06-28 15:53:54 +02:00
Oliver Smith
6d7dcb9cb4
=== Adjust README for Debian packaging ===
2023-06-28 14:45:03 +02:00
Heinrich Schuchardt
7ce5389029
Bump version number to 4.10
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2022-12-21 05:16:51 +00:00
Heinrich Schuchardt
e2d849b89b
configure.ac: allow linking sispmctl statically
...
Add configuraration option --enable-all-static.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2022-09-05 22:32:27 +02:00
Heinrich Schuchardt
a064c0f3ec
snap: add source-code and issues fields
...
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2022-04-14 23:16:10 +02:00
Heinrich Schuchardt
30b92502cb
Create folder with artwork
...
Provide the sispmctl logo as PNG and SVG files.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2022-04-05 10:02:56 +02:00
Heinrich Schuchardt
e2b3e4c84d
Provide a snapcraft.yaml file
...
Allow building a snap for sispmctl.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2022-04-03 08:49:23 +02:00
EmergReanimator
11539507a3
passwordsetup.sh: fix build issue
...
Move passwordsetup.sh to examples/passwordsetup.sh
Signed-by: Alexander Goomenuk <emerg.reanimator@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2022-03-21 09:33:30 +01:00
Heinrich Schuchardt
81ec672a6f
Add script to create password file.
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2021-10-24 10:22:53 +00:00
Heinrich Schuchardt
4924da23f5
examples: disable ProtectClock in sispmctl.service
...
The service does not run on Ubuntu 20.10 with ProtectClock=true
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2021-10-22 23:15:03 +00:00
Heinrich Schuchardt
33f1ed263c
Bump version number to 4.9
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2021-04-09 23:32:14 +02:00
Heinrich Schuchardt
140f0ba10d
src/sispm_ctl.c: correct display of serial number
...
Serial numbers with bytes >= 0x80 have been displayed incorrectly, e.g.
01:01:6b:fffff instead of 01:01:6b:b9:7f.
Suggested-by: Mark Wahl <wahlm@snafu.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2021-04-09 23:18:52 +02:00
Fabrice Fontaine
1631002edc
src/schedule.c: fix build with GCC 4.8
...
Fix the following build failure with GCC 4.8:
schedule.c:19:2:
error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^
schedule.c:19:2:
note: use option -std=c99 or -std=gnu99 to compile your code
schedule.c: In function 'pms2_read_block':
schedule.c:39:2:
error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; ++i) {
^
Fixes:
- http://autobuild.buildroot.org/results/079f1454121d38a83c49529c0f6cc8ed61fd5abb
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Add empty lines after variable declarations.
Reviewed-by: Heinrich Schuchardt
2020-10-29 14:11:17 +01:00
Heinrich Schuchardt
a71f63413a
Bump version number to 4.8
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-09-12 05:25:38 +02:00
Heinrich Schuchardt
c49a0dd6fa
process: sleep for 2 seconds on wrong password
...
To make guessing the password of the webserver more expensive wait for two
seconds before accepting the next password.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-09-12 05:06:31 +02:00
Heinrich Schuchardt
2e3320dbdd
main: alert on -b with invalid argument
...
-b can only be used with 'on' or 'off'
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-19 18:30:22 +02:00
Heinrich Schuchardt
9ccbded915
main: skin directory must be provided as an absolute path
...
Check that the skin directory provided as parameter '-u' is an absolute
path.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-14 12:25:12 +02:00
Heinrich Schuchardt
991088cfde
Install example files and README.md
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-12 11:55:42 +02:00
Heinrich Schuchardt
901cfec7a2
sispmctl.service: enhance security
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-12 11:23:05 +02:00
Heinrich Schuchardt
b835c9894c
schedule: correct copyright notice
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-09 23:56:57 +02:00
Heinrich Schuchardt
fb5d39103e
Bump version number to 4.7
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-09 23:53:30 +02:00
Heinrich Schuchardt
d8587a5d25
Implement scheduling for EG-PMS2
...
The EG-PMS has a storage format for schedules that is different to prior
versions of the hardware.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-09 23:45:55 +02:00
Heinrich Schuchardt
1c9a2a848d
man: list supported models
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 23:17:56 +02:00
Heinrich Schuchardt
c7aab72f20
doc: document schedule format of EG-PMS2
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 22:48:31 +02:00
Heinrich Schuchardt
bf6d5ac186
sispm_ctl: enlarge buffer for reading schedule
...
The EG-PMS2 requires 40 bytes for reading the schedule buffer.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 22:48:26 +02:00
Heinrich Schuchardt
bcfe7157dd
main: remove undocumented usage of 7 as 'all'
...
When specifying port 7 this was interpreted as all. As this is completely
undocumented remove this feature.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 22:48:22 +02:00
Heinrich Schuchardt
5807e488e8
main: reformat code
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 18:25:55 +02:00
Heinrich Schuchardt
bacfc8e95a
sispm_ctl: reformat code
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 18:24:06 +02:00
Heinrich Schuchardt
4961cd3828
process: reformat code
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 17:52:23 +02:00
Heinrich Schuchardt
7dbe5e47a6
socket: reformat code
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-07 17:51:42 +02:00
Heinrich Schuchardt
4a6885bddd
Bump version number to 4.6
...
Update ChangeLog and configure.ac.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-01 13:30:56 +01:00
Matthias Brugger
bfda54e8ac
Add option to access device by USB Bus:Device
...
Allow to select the device we want to talk to by providing
USB Bus:Device string.
Signed-off-by: Matthias Brugger <matthias.bgg@kernel.org>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-04-01 10:51:46 +01:00
Heinrich Schuchardt
ecf63a1367
Web server: write syslog
...
Write messages from the web server to the syslog.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-15 17:22:16 +00:00
Heinrich Schuchardt
a76a8263b4
socket: correct error handling
...
If the pipe is broken, it does not make any sense to try to send a ping.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-15 16:16:53 +00:00
Heinrich Schuchardt
29a910069e
main: write error if password cannot be read
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-15 11:04:01 +00:00
Heinrich Schuchardt
7975bae2f0
socket: log errors for accept()
...
Write an error message if accept() fails.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-15 09:09:37 +00:00
Heinrich Schuchardt
c0361ef84e
sispmctl.service: Restart=always
...
Restart the sispmctl when it is killed.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-15 08:59:01 +00:00
Heinrich Schuchardt
67ba2d916c
Update last development year displayed in CLI
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-11 21:45:53 +00:00
Heinrich Schuchardt
6e04d32cb7
README.md: mention GPLv2+
...
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-10 21:38:18 +00:00