File openvas-manual-0.9.0-destdir_support-Makefile.patch of Package openvas-manual

diff -dNaur openvas-manual-0.9.0.original/Makefile openvas-manual-0.9.0/Makefile
--- openvas-manual-0.9.0.original/Makefile	2008-05-29 21:38:50.000000000 +0200
+++ openvas-manual-0.9.0/Makefile	2008-05-29 22:34:39.000000000 +0200
@@ -1,4 +1,4 @@
-DOC_DIR=/usr/local/share/doc/OpenVAS
+DOC_DIR=/usr/share/doc/packages/openvas-manual
 INSTALL_DIR=/usr/bin/install -c -d
 INSTALL=/usr/bin/install -c
 
@@ -28,10 +28,10 @@
 	latex2rtf -C latin1 -l $<
 
 install: all
-	test -d ${DOC_DIR} || $(INSTALL_DIR) -m 755 ${DOC_DIR}
+	test -d ${DOC_DIR} || $(INSTALL_DIR) -m 755 $(DESTDIR)${DOC_DIR}
 	# test -d ${DOC_DIR}/html/ || $(INSTALL_DIR) -m 755 ${DOC_DIR}/html
-	$(INSTALL) -m 644 users-manual.pdf ${DOC_DIR}/
-	$(INSTALL) -m 644 users-manual-de.pdf ${DOC_DIR}/
+	$(INSTALL) -m 644 users-manual.pdf ${DESTDIR}${DOC_DIR}/
+	$(INSTALL) -m 644 users-manual-de.pdf ${DESTDIR}${DOC_DIR}/
 	# The following makes only sense if it is solved to have
 	# the html with images there as well.
 	# $(INSTALL) -m 644 users-manual.html ${DOC_DIR}/html
openSUSE Build Service is sponsored by