Blame SOURCES/mtx-1.3.12-destdir.patch

087210
From a5d4d1c2fbdad8b24c2938b00406bccb037e5ab4 Mon Sep 17 00:00:00 2001
087210
From: Dan Horak <dan@danny.cz>
087210
Date: Sat, 24 Jan 2009 18:06:43 +0100
087210
Subject: [PATCH 1/2] add support for DESTDIR
087210
MIME-Version: 1.0
087210
Content-Type: text/plain; charset=utf-8
087210
Content-Transfer-Encoding: 8bit
087210
087210
087210
Signed-off-by: Dan HorĂ¡k <dan@danny.cz>
087210
---
087210
 mtx/Makefile.in |    9 +++++----
087210
 1 files changed, 5 insertions(+), 4 deletions(-)
087210
087210
diff --git a/mtx/Makefile.in b/mtx/Makefile.in
087210
index 6b967cf..05894d2 100644
087210
--- a/mtx/Makefile.in
087210
+++ b/mtx/Makefile.in
087210
@@ -33,6 +33,7 @@ INSTALL_DOC = $(INSTALL) -m 644
087210
 INSTALL_BIN = $(INSTALL) -m 755
087210
 INSTALL_DIR = $(INSTALL) -m 755 -d
087210
 
087210
+DESTDIR		=
087210
 prefix		= @prefix@
087210
 exec_prefix	= @exec_prefix@
087210
 sbindir		= @sbindir@
087210
@@ -109,13 +110,13 @@ all:	$(BINS)
087210
 dbgs: $(DBGS)
087210
 
087210
 install: $(BINS)
087210
-	$(INSTALL_DIR) $(sbindir)
087210
+	$(INSTALL_DIR) $(DESTDIR)$(sbindir)
087210
 	for file in $(BINS); do \
087210
-	$(INSTALL_BIN) "$$file" $(sbindir) ; \
087210
+	$(INSTALL_BIN) "$$file" $(DESTDIR)$(sbindir) ; \
087210
 	done	
087210
-	$(INSTALL_DIR) $(mandir) $(mandir)/man1
087210
+	$(INSTALL_DIR) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1
087210
 	for file in mtx.1 tapeinfo.1 scsitape.1 scsieject.1 loaderinfo.1 ; do \
087210
-	$(INSTALL_DOC) "$$file"  $(mandir)/man1 ; \
087210
+	$(INSTALL_DOC) "$$file"  $(DESTDIR)$(mandir)/man1 ; \
087210
 	done
087210
 
087210
 clean:
087210
-- 
087210
1.6.3.3
087210