From ae0651cf9769fda90c38f57c9efd11316f913fdb Mon Sep 17 00:00:00 2001
From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Sun, 14 Feb 2021 13:36:54 +1300
Subject: [PATCH] Add patch to set man page directory

---
 .gitignore                        |  1 +
 debian/.gitignore                 |  9 ++++-----
 debian/patches/man_page_dir.patch | 17 +++++++++++++++++
 debian/patches/series             |  1 +
 4 files changed, 23 insertions(+), 5 deletions(-)
 create mode 100644 debian/patches/man_page_dir.patch
 create mode 100644 debian/patches/series

diff --git a/.gitignore b/.gitignore
index b38dbbc..e2e2998 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 build-stamp
 build
 debian/mythtv-status.debhelper.log
+.pc
diff --git a/debian/.gitignore b/debian/.gitignore
index f45710b..441369f 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -1,7 +1,6 @@
 files
-mythtv-status.1
-mythtv-status.postinst.debhelper
-mythtv-status.postrm.debhelper
-mythtv-status.prerm.debhelper
-mythtv-status.substvars
+*.debhelper
+*.substvars
 mythtv-status
+*.log
+*stamp
diff --git a/debian/patches/man_page_dir.patch b/debian/patches/man_page_dir.patch
new file mode 100644
index 0000000..24df578
--- /dev/null
+++ b/debian/patches/man_page_dir.patch
@@ -0,0 +1,17 @@
+Description: Set manpage directory for Debian
+Author: Andrew Ruthven
+Forwarded: not-needed
+Last-Update: 2021-02-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,7 @@
+ #!/usr/bin/make -f
+ 
+ BINDIR=$(DESTDIR)/usr/bin
+-MANDIR=$(DESTDIR)/usr/man
++MANDIR=$(DESTDIR)/usr/share/man
+ 
+ package=mythtv-status
+ releases=sid
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e07f850
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+man_page_dir.patch
-- 
2.30.2