summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/man-pages/files/man-pages-2.61-DESTDIR.patch')
-rw-r--r--sys-apps/man-pages/files/man-pages-2.61-DESTDIR.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-apps/man-pages/files/man-pages-2.61-DESTDIR.patch b/sys-apps/man-pages/files/man-pages-2.61-DESTDIR.patch
new file mode 100644
index 000000000000..63e5754f9ead
--- /dev/null
+++ b/sys-apps/man-pages/files/man-pages-2.61-DESTDIR.patch
@@ -0,0 +1,25 @@
+--- Makefile
++++ Makefile
+@@ -3,6 +3,7 @@
+ # Do "make install" to copy the pages to their destination.
+ # Do "make gz" or "make bz2" first if you use compressed source pages.
+
++DESTDIR=
+ prefix?=/usr
+ MANDIR=$(prefix)/share/man
+
+@@ -48,11 +49,11 @@
+ done; \
+ done; fi
+
+-README=$(MANDIR)/man1/README
++README=$(DESTDIR)$(MANDIR)/man1/README
+ install:
+ for i in man? man??; do \
+- install -d -m 755 $(MANDIR)/"$$i"; \
+- install -m 644 "$$i"/* $(MANDIR)/"$$i"; \
++ install -d -m 755 $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
++ install -m 644 "$$i"/* $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
+ done; \
+ rm -f $(README) $(README).gz $(README).bz2
+