From 41847facc81168bcd7dcb2cf3ceb572975a2921f Mon Sep 17 00:00:00 2001
From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Sat, 10 Apr 2021 15:13:10 +1200
Subject: [PATCH] Ensure that the systemd service file is installed

No longer installed with the newe compat level.
---
 debian/changelog | 1 +
 debian/rules     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 46cb37a..cb600d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ mythtv-status (1.0.1-5) unstable; urgency=medium
     may not be a MythTV backend reachable at installation time.
   * Add Pre-Depends: ${misc:Pre-Depends} to d/control to ensure that
     init-system-helpers is available.
+  * Install the systemd service file is installed and enabled.
 
  -- Andrew Ruthven <andrew@etc.gen.nz>  Sat, 10 Apr 2021 15:00:41 +1200
 
diff --git a/debian/rules b/debian/rules
index a374e0e..3fc3fb0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,6 +42,7 @@ binary-indep: install
 # Set --error-handler so that a failing init script (for example, no MythTV
 # backend reachable) won't cause the installation to abort.
 	DH_OPTIONS="--error-handler=true" dh_installinit -- defaults 51
+	dh_installsystemd
 	dh_installcron
 	dh_installman debian/mythtv-status.1 man/*
 	dh_compress
-- 
2.30.2