[hamradio-commits] [soundmodem] 01/01: Fix to make the spawned device group accessible, added systemd service

Dave Hibberd hibby-guest at moszumanska.debian.org
Tue Jan 24 21:47:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

hibby-guest pushed a commit to branch master
in repository soundmodem.

commit c11a877ec31a440e097fc0e7e15c6997fec5cd54
Author: Hibby <d at vehibberd.com>
Date:   Tue Jan 24 21:10:05 2017 +0000

    Fix to make the spawned device group accessible, added systemd service
---
 debian/changelog                       | 12 ++++++++++++
 debian/patches/group-permissions.patch | 15 +++++++++++++++
 debian/patches/series                  |  1 +
 debian/soundmodem.service              | 11 +++++++++++
 4 files changed, 39 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 134ad50..7b0c6d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+soundmodem (0.20-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/patches/group-permissions.patch
+    - Added
+    - Enable group read/write on modem pty
+  * debian/soundmodem.service
+    - Added
+    - Allows systemctl control of soundmodem
+
+ -- Dave Hibberd <d at vehibberd.com>  Tue, 24 Jan 2017 21:09:35 +0000
+
 soundmodem (0.20-5) unstable; urgency=high
 
   * d/patches/fix-ftbfs-i386-multiple-def-mac.patch
diff --git a/debian/patches/group-permissions.patch b/debian/patches/group-permissions.patch
new file mode 100644
index 0000000..3153efc
--- /dev/null
+++ b/debian/patches/group-permissions.patch
@@ -0,0 +1,15 @@
+Descriptions: Allow group to read/write the created pty
+Author: Dave Hibberd <d at vehibberd.com>
+Last-Updated: 2017-02-24
+
+--- a/soundcard/kisspkt.c
++++ b/soundcard/kisspkt.c
+@@ -758,7 +758,7 @@
+         tm.c_cflag = CS8 | CREAD | CLOCAL;
+         if (tcsetattr(slave, TCSANOW, &tm))
+                 logerr(MLOG_FATAL, "slave: tcsetattr");
+-	//fchmod(slave, 0600);
++	fchmod(slave, 0660);
+ 	if (dounlink)
+ 		unlink(file);
+ 	if (symlink(ttyname, file))
diff --git a/debian/patches/series b/debian/patches/series
index 3c42d96..517b2db 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+group-permissions.patch
 drop-unnecessary-libdl-linkage
 fix-gcc5-errors.patch
 add-alsa-m4.patch
diff --git a/debian/soundmodem.service b/debian/soundmodem.service
new file mode 100644
index 0000000..4313e52
--- /dev/null
+++ b/debian/soundmodem.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Soundmodem systemD service file to fix device permissions
+After=sound.target network.target multi-user.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/soundmodem --daemonize -s
+Group=tty
+
+[Install]
+WantedBy=multi-user.target

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/soundmodem.git



More information about the pkg-hamradio-commits mailing list