summaryrefslogtreecommitdiff
path: root/sys-block/mtx/files/mtx-1.3.12-fix-buildsystem.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/mtx/files/mtx-1.3.12-fix-buildsystem.patch')
-rw-r--r--sys-block/mtx/files/mtx-1.3.12-fix-buildsystem.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-block/mtx/files/mtx-1.3.12-fix-buildsystem.patch b/sys-block/mtx/files/mtx-1.3.12-fix-buildsystem.patch
new file mode 100644
index 000000000000..6627bfac0504
--- /dev/null
+++ b/sys-block/mtx/files/mtx-1.3.12-fix-buildsystem.patch
@@ -0,0 +1,20 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -109,13 +109,13 @@
+ dbgs: $(DBGS)
+
+ install: $(BINS)
+- $(INSTALL_DIR) $(sbindir)
++ $(INSTALL_DIR) $(DESTDIR)$(sbindir)
+ for file in $(BINS); do \
+- $(INSTALL_BIN) "$$file" $(sbindir) ; \
++ $(INSTALL_BIN) "$$file" $(DESTDIR)$(sbindir) ; \
+ done
+- $(INSTALL_DIR) $(mandir) $(mandir)/man1
++ $(INSTALL_DIR) $(mandir) $(DESTDIR)$(mandir)/man1
+ for file in mtx.1 tapeinfo.1 scsitape.1 scsieject.1 loaderinfo.1 ; do \
+- $(INSTALL_DOC) "$$file" $(mandir)/man1 ; \
++ $(INSTALL_DOC) "$$file" $(DESTDIR)$(mandir)/man1 ; \
+ done
+
+ clean: