[vdr] 03/04: Added systemd support

Tobias Grimm tiber-guest at moszumanska.debian.org
Wed Mar 25 21:17:10 UTC 2015


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

tiber-guest pushed a commit to branch master
in repository vdr.

commit e4371bcc486e398938e02dcb71590964ec6381d5
Author: etobi <git at e-tobi.net>
Date:   Wed Mar 25 22:13:35 2015 +0100

    Added systemd support
---
 debian/changelog   |  1 +
 debian/control     |  4 ++--
 debian/rules       |  4 ++--
 debian/vdr.service | 11 +++++++++++
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 80f70da..91cc1d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ vdr (2.2.0-1) UNRELEASED; urgency=medium
    --chartab command line argument
   * Removed dvb-modules reloading code (Closes: #512362)
   * Added bash completion for svdrpesend (taken from yaVDR / Lars Hanisch)
+  * Added systemd support
 
  -- Tobias Grimm <etobi at debian.org>  Sat, 07 Mar 2015 13:02:02 +0100
 
diff --git a/debian/control b/debian/control
index e100136..388e8d9 100644
--- a/debian/control
+++ b/debian/control
@@ -3,9 +3,9 @@ Section: video
 Priority: extra
 Maintainer: Debian VDR Team <pkg-vdr-dvb-devel at lists.alioth.debian.org>
 Uploaders: Thomas Schmidt <tschmidt at debian.org>, Tobias Grimm <etobi at debian.org>, Thomas Günther <tom at toms-cafe.de>
-Build-Depends: debhelper (>= 9), libjpeg-dev, libcap-dev,
+Build-Depends: debhelper (>= 9), libjpeg-dev, libcap-dev, dh-systemd,
   libncursesw5-dev, libfreetype6-dev, libfontconfig-dev, gettext,
-  python, linux-libc-dev (>= 3.0), libfribidi-dev
+  python, linux-libc-dev (>= 3.0), libfribidi-dev, libsystemd-daemon-dev
 Standards-Version: 3.9.6
 Vcs-Git: git://git.debian.org/pkg-vdr-dvb/vdr.git
 Vcs-Browser: http://git.debian.org/?p=pkg-vdr-dvb/vdr.git
diff --git a/debian/rules b/debian/rules
index 38aa1f8..a4198c5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,10 +8,10 @@ CFLAGS += $(CPPFLAGS)
 PREFIX = /usr
 VIDEODIR = /var/lib/video
 LIBDIR = /usr/lib/vdr/plugins
-MAKE_OPTIONS = PREFIX=$(PREFIX) VIDEODIR=$(VIDEODIR) LIBDIR=$(LIBDIR)
+MAKE_OPTIONS = PREFIX=$(PREFIX) VIDEODIR=$(VIDEODIR) LIBDIR=$(LIBDIR) SDNOTIFY=1
 
 %:
-	dh $@
+	dh $@ --with systemd
 
 override_dh_auto_build:
 	dh_auto_build -- $(MAKE_OPTIONS)
diff --git a/debian/vdr.service b/debian/vdr.service
new file mode 100644
index 0000000..e088e80
--- /dev/null
+++ b/debian/vdr.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Video Disk Recorder
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/vdr
+Restart=on-failure
+RestartPreventExitStatus=0 2
+
+[Install]
+WantedBy=multi-user.target

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



More information about the pkg-vdr-dvb-changes mailing list