about summary refs log tree commit diff
path: root/sv/Makefile
diff options
context:
space:
mode:
authorCameron Nemo <camerontnorman@gmail.com>2018-09-01 17:52:19 -0700
committerLeah Neukirchen <leah@vuxu.org>2018-09-03 14:23:20 +0200
commitd44fd0169fcb9ba3debcaab38b526c7c7bf96d61 (patch)
tree31b083fe6ee54f4b3d5058270b0b941e7492ef2d /sv/Makefile
parent44fa475c6d9dcb4b2f2ba89f39f5e7227fb9eec7 (diff)
downloadsnooze-d44fd0169fcb9ba3debcaab38b526c7c7bf96d61.tar.gz
snooze-d44fd0169fcb9ba3debcaab38b526c7c7bf96d61.tar.xz
snooze-d44fd0169fcb9ba3debcaab38b526c7c7bf96d61.zip
sv: include runit service files to run cron drop-in scripts
Closes: #6 [via git-merge-pr]
Diffstat (limited to 'sv/Makefile')
-rw-r--r--sv/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/sv/Makefile b/sv/Makefile
new file mode 100644
index 0000000..d97cc39
--- /dev/null
+++ b/sv/Makefile
@@ -0,0 +1,12 @@
+DESTDIR=
+SYSCONFDIR=/etc
+SVDIR=$(SYSCONFDIR)/sv
+
+install: FRC
+	for f in daily hourly weekly monthly; do \
+		mkdir -p $(DESTDIR)$(SVDIR)/snooze-$$f; \
+		install -m0755 snooze-$$f/run snooze-$$f/finish \
+			$(DESTDIR)$(SVDIR)/snooze-$$f/; \
+	done
+
+FRC: