Actually install the mythtv-update-motd man page!
+ Provide systemd service and timer files in tarball, hopefully useful as a
+ starting point for distros other than Debian.
+
2001-02-14 Andrew Ruthven
Release version 1.0.2.
#!/usr/bin/make -f
BINDIR=$(DESTDIR)/usr/bin
+LIBEXECDIR=$(DESTDIR)/usr/libexec/mythtv-status
MANDIR=$(DESTDIR)/usr/man
+SYSTEMDDIR=$(DESTDIR)/lib/systemd/system
package=mythtv-status
releases=sid
install:
install -d $(BINDIR)
+ install -d $(LIBEXECDIR)
install -d $(MANDIR)/man1
install -d $(MANDIR)/man8
+ install -d $(SYSTEMDDIR)
install -m 775 bin/mythtv-status $(BINDIR)
install -m 775 bin/mythtv_recording_now $(BINDIR)
install -m 775 bin/mythtv_recording_soon $(BINDIR)
+ install -m 775 bin/health-check $(LIBEXECDIR)
pod2man bin/mythtv-status > $(MANDIR)/man1/mythtv-status.1
install -m 644 man/mythtv-update-motd.8 $(MANDIR)/man8
install -m 644 man/mythtv_recording_now.1 $(MANDIR)/man1
install -m 644 man/mythtv_recording_soon.1 $(MANDIR)/man1
+ install -m 644 systemd/* $(SYSTEMDDIR)
test:
PERL_DL_NONLAZY=1 perl "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES)
#
# Regular cron jobs for the mythtv-status package
#
-*/10 * * * * root [ -x /usr/sbin/mythtv-update-motd ] && /usr/sbin/mythtv-update-motd > /dev/null
+*/10 * * * * root [ -x /usr/sbin/mythtv-update-motd ] && [ ! -d /run/systemd/system ] && /usr/sbin/mythtv-update-motd > /dev/null
#!/bin/sh
+# Skip in favour of systemd timer
+[ -d /run/systemd/system ] && exit 0
+
+# Common script shared with the systemd service to perform a health
+# check of the MythTV system..
[ -x /usr/lib/mythtv-status/health-check ] \
&& /usr/local/mythtv-status/health-check
bin/mythtv-update-motd /usr/sbin
-debian/health-check usr/libexec/mythtv-status
debian/lintian/overrides/mythtv-status usr/share/lintian/overrides
-debian/mythtv-status_health-check.service lib/systemd/system
-debian/mythtv-status_health-check.timer lib/systemd/system
-debian/mythtv-status_update-motd.service lib/systemd/system
-debian/mythtv-status_update-motd.timer lib/systemd/system
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
-@@ -1,7 +1,7 @@
- #!/usr/bin/make -f
+@@ -2,7 +2,7 @@
BINDIR=$(DESTDIR)/usr/bin
+ LIBEXECDIR=$(DESTDIR)/usr/libexec/mythtv-status
-MANDIR=$(DESTDIR)/usr/man
+MANDIR=$(DESTDIR)/usr/share/man
+ SYSTEMDDIR=$(DESTDIR)/lib/systemd/system
package=mythtv-status
- releases=sid
[Service]
Type=oneshot
-ExecStart=/usr/lib/mythtv-status/health-check
+ExecStart=/usr/libexec/mythtv-status/health-check
[Unit]
Description=mythtv-status MOTD update
-Documentation=man:mythtv-update-motd(1)
+Documentation=man:mythtv-update-motd(8)
[Service]
Type=oneshot
[Unit]
Description=mythtv-status MOTD update
-Documentation=man:mythtv-update-motd(1)
+Documentation=man:mythtv-update-motd(8)
[Timer]
OnCalendar=*-*-* *:00,15,30,45