summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--debian/maintscript1
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0ff9a05..70bddfa 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ bindir=${prefix}/bin
etcdir=/etc
mandir=${prefix}/share/man
vardir=/var
+completiondir=${prefix}/share/bash-completion/completions
CP=cp -R
INSTALL=install
INSTALL_EXE=${INSTALL}
@@ -27,8 +28,8 @@ install: etckeeper.version
$(INSTALL_EXE) etckeeper $(DESTDIR)$(bindir)/etckeeper
mkdir -p $(DESTDIR)$(mandir)/man8
$(INSTALL_DATA) etckeeper.8 $(DESTDIR)$(mandir)/man8/etckeeper.8
- mkdir -p $(DESTDIR)$(etcdir)/bash_completion.d
- $(INSTALL_DATA) bash_completion $(DESTDIR)$(etcdir)/bash_completion.d/etckeeper
+ mkdir -p $(DESTDIR)$(completiondir)
+ $(INSTALL_DATA) bash_completion $(DESTDIR)$(completiondir)/etckeeper
ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),apt)
mkdir -p $(DESTDIR)$(etcdir)/apt/apt.conf.d
$(INSTALL_DATA) apt.conf $(DESTDIR)$(etcdir)/apt/apt.conf.d/05etckeeper
diff --git a/debian/maintscript b/debian/maintscript
new file mode 100644
index 0000000..eae1b88
--- /dev/null
+++ b/debian/maintscript
@@ -0,0 +1 @@
+rm_conffile /etc/bash_completion.d/etckeeper 1.18.3-1~ etckeeper