Blame SOURCES/0069-Add-missing-DESTDIR.patch

786c6d
From 9ef01a7d13358e96627ae1d263fea5537c4ed6f7 Mon Sep 17 00:00:00 2001
786c6d
From: Lee Duncan <lduncan@suse.com>
786c6d
Date: Wed, 29 Jan 2014 11:21:49 +0100
786c6d
Subject: [PATCH] Add missing DESTDIR
786c6d
786c6d
Several Makefile targets are missing DESTDIR, making it
786c6d
hard for packagers.
786c6d
786c6d
Signed-off-by: Lee Duncan <lduncan@suse.com>
786c6d
Signed-off-by: Hannes Reinecke <hare@suse.de>
786c6d
---
786c6d
 Makefile | 6 +++---
786c6d
 1 file changed, 3 insertions(+), 3 deletions(-)
786c6d
786c6d
diff --git a/Makefile b/Makefile
786c6d
index 88b3529..79bad84 100644
786c6d
--- a/Makefile
786c6d
+++ b/Makefile
786c6d
@@ -124,7 +124,7 @@ install_iface: $(IFACEFILES)
786c6d
 	$(INSTALL) -m 644 $^ $(DESTDIR)$(etcdir)/iscsi/ifaces
786c6d
 
786c6d
 install_etc: $(ETCFILES)
786c6d
-	if [ ! -f /etc/iscsi/iscsid.conf ]; then \
786c6d
+	if [ ! -f $(DESTDIR)/etc/iscsi/iscsid.conf ]; then \
786c6d
 		$(INSTALL) -d $(DESTDIR)$(etcdir)/iscsi ; \
786c6d
 		$(INSTALL) -m 644 $^ $(DESTDIR)$(etcdir)/iscsi ; \
786c6d
 	fi
786c6d
@@ -137,11 +137,11 @@ install_kernel:
786c6d
 	$(MAKE) -C kernel install_kernel
786c6d
 
786c6d
 install_iname:
786c6d
-	if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then \
786c6d
+	if [ ! -f $(DESTDIR)/etc/iscsi/initiatorname.iscsi ]; then \
786c6d
 		echo "InitiatorName=`$(DESTDIR)/sbin/iscsi-iname`" > $(DESTDIR)/etc/iscsi/initiatorname.iscsi ; \
786c6d
 		echo "***************************************************" ; \
786c6d
 		echo "Setting InitiatorName to `cat $(DESTDIR)/etc/iscsi/initiatorname.iscsi`" ; \
786c6d
-		echo "To override edit /etc/iscsi/initiatorname.iscsi" ; \
786c6d
+		echo "To override edit $(DESTDIR)/etc/iscsi/initiatorname.iscsi" ; \
786c6d
 		echo "***************************************************" ; \
786c6d
 	fi
786c6d
 
786c6d
-- 
786c6d
1.8.3.1
786c6d