Install the systemd files into the UsrMerge location so we'll work with
more distributions, thanks to Göran Uddeborgfor pointing this out.
+ If molly-guard or the Ubuntu/Debian style update-motd is present, install
+ our hooks for those.
+
2023-07-27 Göran Uddebor
Install update-update-motd
#!/usr/bin/make -f
BINDIR=$(DESTDIR)/usr/bin
-SBINDIR=$(DESTDIR)/usr/sbin
LIBEXECDIR=$(DESTDIR)/usr/libexec/mythtv-status
MANDIR=$(DESTDIR)/usr/man
+MOLLY_GUARDDIR=$(DESTDIR)/etc/molly-guard/run.d
+SBINDIR=$(DESTDIR)/usr/sbin
SYSTEMDDIR=$(DESTDIR)/usr/lib/systemd/system
+UPDATE_MOTDDIR=$(DESTDIR)/etc/update-motd.d
package=mythtv-status
releases=sid
install -m 644 man/mythtv_recording_soon.1 $(MANDIR)/man1
install -m 644 systemd/* $(SYSTEMDDIR)
+ # Only install these files if the directories already exist.
+ [ -d $(MOLLY_GUARDDIR) ] && \
+ install -m 775 molly-guard/* $(MOLLY_GUARDDIR)
+ [ -d $(UPDATE_MOTDDIR) ] && \
+ install -m 775 update-motd.d/* $(UPDATE_MOTDDIR)
+
test:
PERL_DL_NONLAZY=1 perl "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES)
var/lib/mythtv-status
+etc/molly-guard/run.d
+etc/update-motd.d
debian/lintian/overrides/mythtv-status usr/share/lintian/overrides
-molly-guard/40-mythtv-recording-soon etc/molly-guard/run.d
-update-motd.d/50-mythtv-status etc/update-motd.d
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
-@@ -3,8 +3,8 @@
+@@ -2,10 +2,10 @@
+
BINDIR=$(DESTDIR)/usr/bin
- SBINDIR=$(DESTDIR)/usr/sbin
LIBEXECDIR=$(DESTDIR)/usr/libexec/mythtv-status
-MANDIR=$(DESTDIR)/usr/man
--SYSTEMDDIR=$(DESTDIR)/usr/lib/systemd/system
+MANDIR=$(DESTDIR)/usr/share/man
+ MOLLY_GUARDDIR=$(DESTDIR)/etc/molly-guard/run.d
+ SBINDIR=$(DESTDIR)/usr/sbin
+-SYSTEMDDIR=$(DESTDIR)/usr/lib/systemd/system
+SYSTEMDDIR=$(DESTDIR)/lib/systemd/system
+ UPDATE_MOTDDIR=$(DESTDIR)/etc/update-motd.d
package=mythtv-status
- releases=sid