From: Ralf Jung Date: Thu, 12 Sep 2013 12:43:17 +0000 (+0200) Subject: add a systemd service file (taken from Arch) X-Git-Tag: debian/1.3.2-4~5 X-Git-Url: https://git.ralfj.de/osspd.git/commitdiff_plain/d25822e9f255d68003d9b30cebd0f42234bb3816?hp=2f43083e03c5948ae6246d1cf446c47eaca0b61c add a systemd service file (taken from Arch) --- diff --git a/debian/changelog b/debian/changelog index b0cb468..fb667af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ osspd (1.3.2-4) UNRELEASED; urgency=low * No longer symlink docs from dbg package (this simplifies packaging). * Manage the ossp slave via update-alternatives. + * Add a systemd service file (taken from Arch). -- Ralf Jung Mon, 09 Sep 2013 18:29:12 +0200 diff --git a/debian/control b/debian/control index 3bfc326..1f1f266 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,11 @@ Source: osspd Section: sound Priority: optional Maintainer: Ralf Jung -Build-Depends: debhelper (>= 9), libasound2-dev, libfuse-dev, libpulse-dev +Build-Depends: debhelper (>= 9), + dh-systemd, + libasound2-dev, + libfuse-dev, + libpulse-dev Standards-Version: 3.9.4 Homepage: http://sourceforge.net/projects/osspd/ Vcs-Browser: http://www.ralfj.de/git/osspd.git diff --git a/debian/copyright b/debian/copyright index 8f61f7c..9ec2486 100644 --- a/debian/copyright +++ b/debian/copyright @@ -9,9 +9,14 @@ Copyright: 2008-2010 SUSE Linux Products GmbH License: GPL-2 Files: debian/* -Copyright: 2012 Ralf Jung +Copyright: 2012-2013 Ralf Jung License: GPL-2+ +Files: debian/osspd.service +Copyright: 2013 Jan Alexander Steffens (heftig) + 2013 Ralf Jung +License: GPL-2 + License: GPL-2 This package is free software; you can redistribute it and/or modify diff --git a/debian/osspd.install b/debian/osspd.install index 788b876..ff410bf 100644 --- a/debian/osspd.install +++ b/debian/osspd.install @@ -1,2 +1,2 @@ -usr/sbin/osspd lib/udev/rules.d/98-osscuse.rules +usr/sbin/osspd diff --git a/debian/osspd.service b/debian/osspd.service new file mode 100644 index 0000000..2b5b7bf --- /dev/null +++ b/debian/osspd.service @@ -0,0 +1,8 @@ +[Unit] +Description=OSS Proxy Daemon + +[Service] +ExecStart=/usr/bin/osspd -f --dsp-slave=/usr/lib/osspd/ossp-slave + +[Install] +WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules index 5bb1cf5..bbbb745 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,7 @@ SLAVESDIR=/usr/lib/osspd UDEVDIR=/lib/udev/rules.d %: - dh $@ --parallel + dh $@ --parallel --with=systemd override_dh_auto_build: dh_auto_build -- SLAVESDIR=$(SLAVESDIR) UDEVDIR=$(UDEVDIR)