summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-05-15 21:08:10 +0200
committerJoey Hess <joeyh@joeyh.name>2016-05-17 10:28:56 -0400
commit56147b45320723e314f107e4c4c04ed3fcdd776b (patch)
treea652f1da382409790534d0002540981ae240a673 /Makefile
parent0508e49afbe30ecd83311fb42a8eeabb40dd27b0 (diff)
add systemd service and timer
This add systemd service file and timer. To enable the timer: $ systemctl enable etckeeper.timer When enabled the timer will auto-commit 15 minutes after system boot and every 24 hours afer that. Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 640e1e8..206e44c 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,10 @@ install: etckeeper.version
$(INSTALL_DATA) etckeeper.8 $(DESTDIR)$(mandir)/man8/etckeeper.8
mkdir -p $(DESTDIR)$(completiondir)
$(INSTALL_DATA) bash_completion $(DESTDIR)$(completiondir)/etckeeper
+ mkdir -p $(DESTDIR)$(prefix)/lib/systemd/system/ $(DESTDIR)$(prefix)/lib/systemd/scripts/
+ $(INSTALL) systemd/etckeeper $(DESTDIR)$(prefix)/lib/systemd/scripts/etckeeper
+ $(INSTALL_DATA) systemd/etckeeper.service $(DESTDIR)$(prefix)/lib/systemd/system/etckeeper.service
+ $(INSTALL_DATA) systemd/etckeeper.timer $(DESTDIR)$(prefix)/lib/systemd/system/etckeeper.timer
ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),apt)
mkdir -p $(DESTDIR)$(etcdir)/apt/apt.conf.d
$(INSTALL_DATA) apt.conf $(DESTDIR)$(etcdir)/apt/apt.conf.d/05etckeeper