bzip2-1.0.6-install_docs-1.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Submitted By: Matthew Burgess <matthew@linuxfromscratch.org>
  2. Date: 2007-01-31
  3. Initial Package Version: 1.0.4
  4. Upstream Status: Not submitted
  5. Origin: Randy McMurchy & Steve Crosby
  6. Description: Installs pre-formatted documentation
  7. diff -Naur bzip2-1.0.4.orig/Makefile bzip2-1.0.4/Makefile
  8. --- bzip2-1.0.4.orig/Makefile 2007-01-03 03:49:21.000000000 +0000
  9. +++ bzip2-1.0.4/Makefile 2007-01-26 20:00:01.000000000 +0000
  10. @@ -25,7 +25,7 @@
  11. # Where you want it installed when you do 'make install'
  12. PREFIX=/usr/local
  13. -
  14. +DOCDIR=share/doc/$(DISTNAME)
  15. OBJS= blocksort.o \
  16. huffman.o \
  17. @@ -74,6 +74,7 @@
  18. if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
  19. if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
  20. if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
  21. + if ( test ! -d $(PREFIX)/$(DOCDIR) ) ; then mkdir -p $(PREFIX)/$(DOCDIR); fi
  22. if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
  23. cp -f bzip2 $(PREFIX)/bin/bzip2
  24. cp -f bzip2 $(PREFIX)/bin/bunzip2
  25. @@ -107,6 +108,14 @@
  26. echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
  27. echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
  28. echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
  29. + cp -f manual.html $(PREFIX)/$(DOCDIR)
  30. + cp -f manual.pdf $(PREFIX)/$(DOCDIR)
  31. + cp -f manual.ps $(PREFIX)/$(DOCDIR)
  32. + cp -f bzip2.txt $(PREFIX)/$(DOCDIR)
  33. + chmod a+r $(PREFIX)/$(DOCDIR)/manual.html
  34. + chmod a+r $(PREFIX)/$(DOCDIR)/manual.pdf
  35. + chmod a+r $(PREFIX)/$(DOCDIR)/manual.ps
  36. + chmod a+r $(PREFIX)/$(DOCDIR)/bzip2.txt
  37. clean:
  38. rm -f *.o libbz2.a bzip2 bzip2recover \