901-file-localmagic.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Author: Michael Piefel <piefel@debian.org>
  2. Description: No longer includes Localstuff in /usr/share/misc/magic. Local definitions should go to /etc/magic.
  3. diff -Naurp file.orig/magic/Header file/magic/Header
  4. --- file.orig/magic/Header 2000-08-05 17:36:46.000000000 +0000
  5. +++ file/magic/Header 2008-09-08 11:53:44.000000000 +0000
  6. @@ -1,5 +1,5 @@
  7. -# Magic
  8. # Magic data for file(1) command.
  9. -# Machine-generated from src/cmd/file/magdir/*; edit there only!
  10. -# Format is described in magic(files), where:
  11. -# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID.
  12. +# Format is described in magic(5).
  13. +# Don't edit this file, edit /etc/magic or send your suggested inclusions to
  14. +# this file as a wishlist bug against file (using the reportbug utility).
  15. +
  16. diff -Naurp file.orig/magic/magic.local file/magic/magic.local
  17. --- file.orig/magic/magic.local 1970-01-01 00:00:00.000000000 +0000
  18. +++ file/magic/magic.local 2008-09-08 11:53:44.000000000 +0000
  19. @@ -0,0 +1,3 @@
  20. +# Magic local data for file(1) command.
  21. +# Insert here your local magic data. Format is described in magic(5).
  22. +
  23. diff -Naurp file.orig/src/Makefile.am file/src/Makefile.am
  24. --- file.orig/src/Makefile.am 2008-07-15 17:10:47.000000000 +0000
  25. +++ file/src/Makefile.am 2008-09-08 11:52:51.000000000 +0000
  26. @@ -4,7 +4,7 @@ include_HEADERS = magic.h
  27. bin_PROGRAMS = file
  28. -AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
  29. +AM_CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"'
  30. AM_CFLAGS = @WARNINGS@
  31. libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
  32. diff -Naurp file.orig/src/Makefile.in file/src/Makefile.in
  33. --- file.orig/src/Makefile.in 2008-08-30 10:01:42.000000000 +0000
  34. +++ file/src/Makefile.in 2008-09-08 11:53:21.000000000 +0000
  35. @@ -198,7 +198,7 @@ top_srcdir = @top_srcdir@
  36. MAGIC = $(pkgdatadir)/magic
  37. lib_LTLIBRARIES = libmagic.la
  38. include_HEADERS = magic.h
  39. -AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
  40. +AM_CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"'
  41. AM_CFLAGS = @WARNINGS@
  42. libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
  43. compress.c is_tar.c readelf.c print.c fsmagic.c \