[hamradio-commits] [direwolf] 01/01: Adds a service file for direwolf and instructions in README.Debian.
Ana Custura
ana.c-guest at moszumanska.debian.org
Thu Sep 15 09:07:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
ana.c-guest pushed a commit to branch master
in repository direwolf.
commit 0fa4f72e924473511b9d56b38406356c482b343c
Author: Ana C. Custura <ana at netstat.org.uk>
Date: Mon Sep 12 14:18:49 2016 +0100
Adds a service file for direwolf and instructions in README.Debian.
---
debian/README.Debian | 5 +++++
debian/changelog | 7 +++++++
debian/control | 3 ++-
debian/direwolf.service | 12 ++++++++++++
debian/rules | 6 ++++--
5 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..853f55f
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,5 @@
+In order to start direwolf as a service the configuration file
+/etc/direwolf.conf needs to exist. Otherwise attempting to start the service
+returns an 'Assertion failed' error. An example configuration file which may be
+used as a model can be found in
+/usr/share/doc/direwolf/examples/direwolf.conf.gz
diff --git a/debian/changelog b/debian/changelog
index b089266..7ea169c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+direwolf (1.3-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Service file added (Closes: #808827)
+
+ -- Ana Custura <ana at netstat.org.uk> Mon, 12 Sep 2016 18:06:43 +0100
+
direwolf (1.3-1) unstable; urgency=medium
* New upstream version
diff --git a/debian/control b/debian/control
index b96ab68..3def562 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Section: hamradio
Priority: optional
Build-Depends: debhelper (>= 9),
libasound2-dev,
- libgps-dev
+ libgps-dev,
+ dh-systemd
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-hamradio/direwolf.git/
Vcs-Git: https://anonscm.debian.org/git/pkg-hamradio/direwolf.git
diff --git a/debian/direwolf.service b/debian/direwolf.service
new file mode 100644
index 0000000..6c15bd4
--- /dev/null
+++ b/debian/direwolf.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=DireWolf is a software "soundcard" modem/TNC and APRS decoder
+Documentation=man:direwolf
+AssertPathExists=/etc/direwolf.conf
+
+[Service]
+User=direwolf
+SupplementaryGroups=dialout
+ExecStart=/usr/bin/direwolf -c /etc/direwolf.conf
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index f4a1212..dea6bb7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
- dh $@
+ dh $@ --with=systemd
override_dh_auto_build:
make -f Makefile.linux
@@ -19,4 +19,6 @@ override_dh_auto_clean:
override_dh_fixperms-arch:
dh_fixperms
chmod 644 debian/direwolf/usr/share/direwolf/dw-icon.png
-
+override_dh_systemd_enable:
+ dh_systemd_enable \
+ --no-enable
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/direwolf.git
More information about the pkg-hamradio-commits
mailing list