Blame SOURCES/bz1349465-01-allow-to-specify-bash-completion-install-dir.patch

15f218
From 160b8c4657356725befb02212c148c58da3ce7aa Mon Sep 17 00:00:00 2001
15f218
From: Ivan Devat <idevat@redhat.com>
15f218
Date: Fri, 1 Jul 2016 07:23:37 +0200
15f218
Subject: [PATCH] allow to specify bash completion install dir
15f218
15f218
---
15f218
 Makefile | 7 ++++++-
15f218
 1 file changed, 6 insertions(+), 1 deletion(-)
15f218
15f218
diff --git a/Makefile b/Makefile
15f218
index 5c3e9d6..8e845d6 100644
15f218
--- a/Makefile
15f218
+++ b/Makefile
15f218
@@ -76,11 +76,16 @@ ifndef install_settings
15f218
   endif
15f218
 endif
15f218
 
15f218
+
15f218
+ifndef BASH_COMPLETION_DIR
15f218
+	BASH_COMPLETION_DIR=${DESTDIR}/etc/bash_completion.d
15f218
+endif
15f218
+
15f218
 install:
15f218
 	$(PYTHON) setup.py install --root=$(or ${DESTDIR}, /) ${EXTRA_SETUP_OPTS}
15f218
 	mkdir -p ${DESTDIR}${PREFIX}/sbin/
15f218
 	mv ${DESTDIR}${PREFIX}/bin/pcs ${DESTDIR}${PREFIX}/sbin/pcs
15f218
-	install -D pcs/bash_completion.sh ${DESTDIR}/etc/bash_completion.d/pcs
15f218
+	install -D pcs/bash_completion.sh ${BASH_COMPLETION_DIR}/pcs
15f218
 	install -m644 -D pcs/pcs.8 ${DESTDIR}/${MANDIR}/man8/pcs.8
15f218
 ifeq ($(IS_DEBIAN),true)
15f218
   ifeq ($(install_settings),true)
15f218
-- 
15f218
1.8.3.1
15f218