summaryrefslogtreecommitdiffhomepage
path: root/patches/tree-2.1.1_pre.local.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/tree-2.1.1_pre.local.patch')
-rw-r--r--patches/tree-2.1.1_pre.local.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/tree-2.1.1_pre.local.patch b/patches/tree-2.1.1_pre.local.patch
new file mode 100644
index 00000000..2c868850
--- /dev/null
+++ b/patches/tree-2.1.1_pre.local.patch
@@ -0,0 +1,21 @@
+diff -ru tree-2.0.4.orig/Makefile tree-2.0.4/Makefile
+--- tree-2.0.4.orig/Makefile 2022-09-06 15:31:53.000000000 +0200
++++ tree-2.0.4/Makefile 2022-09-10 22:06:29.081774574 +0200
+@@ -26,7 +26,7 @@
+ DESTDIR=${PREFIX}/bin
+ MAN=tree.1
+ # Probably needs to be ${PREFIX}/share/man for most systems now
+-MANDIR=${PREFIX}/man
++MANDIR=${DESTDIR}${PREFIX}/man
+ OBJS=tree.o list.o hash.o color.o file.o filter.o info.o unix.o xml.o json.o html.o strverscmp.o
+
+ # Uncomment options below for your particular OS:
+@@ -105,7 +105,7 @@
+ install: tree
+ $(INSTALL) -d $(DESTDIR)
+ $(INSTALL) -d $(MANDIR)/man1
+- $(INSTALL) $(TREE_DEST) $(DESTDIR)/$(TREE_DEST); \
++ $(INSTALL) $(TREE_DEST) $(DESTDIR)/bin/$(TREE_DEST); \
+ $(INSTALL) -m 644 doc/$(MAN) $(MANDIR)/man1/$(MAN)
+
+ distclean: