pinepgp-0.18.0-makefile-sed-fix.patch 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. diff -Naur pinepgp-0.18.0-orig/Makefile.in pinepgp-0.18.0/Makefile.in
  2. --- pinepgp-0.18.0-orig/Makefile.in 2002-05-03 15:30:07.000000000 +0200
  3. +++ pinepgp-0.18.0/Makefile.in 2006-11-16 00:30:27.000000000 +0100
  4. @@ -44,52 +44,52 @@
  5. all: $(SOURCES) $(BUILD_FILTERS)
  6. $(SOURCES): $(SOURCES:%=%.in)
  7. - $(CAT) $(@).in | $(SED) -e 's%\@SED\@%$(SED)%;\
  8. - s%\@CAT\@%$(CAT)%;\
  9. - s%\@RM\@%$(RM)%;\
  10. - s%\@MKTEMP\@%$(MKTEMP)%;\
  11. - s%\@BASH\@%$(BASH)%;\
  12. - s%\@bindir\@%$(bindir)%;\
  13. - s%\@tmpdir\@%$(tmpdir)%' > $(@)
  14. + $(CAT) $(@).in | $(SED) -e 's%\@SED\@%$(SED)%'\
  15. + -e 's%\@CAT\@%$(CAT)%'\
  16. + -e 's%\@RM\@%$(RM)%'\
  17. + -e 's%\@MKTEMP\@%$(MKTEMP)%'\
  18. + -e 's%\@BASH\@%$(BASH)%'\
  19. + -e 's%\@bindir\@%$(bindir)%'\
  20. + -e 's%\@tmpdir\@%$(tmpdir)%' > $(@)
  21. chmod 755 $(@)
  22. pinegpg: pinegpgp
  23. - $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename=GnuPG%;\
  24. - s%^ces=.*%ces="$(GPG) -at -s"%;\
  25. - s%^cee=.*%cee="$(GPG) -at -e"%;\
  26. - s%^cese=.*%cese="$(GPG) -at -se"%;\
  27. - s%^cec=.*%cec="\$(GPG)"%;\
  28. - s%^cefp=.*%cefp=gpg%' > $(@).c
  29. + $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename=GnuPG%'\
  30. + -e 's%^ces=.*%ces="$(GPG) -at -s"%'\
  31. + -e 's%^cee=.*%cee="$(GPG) -at -e"%'\
  32. + -e 's%^cese=.*%cese="$(GPG) -at -se"%'\
  33. + -e 's%^cec=.*%cec="\$(GPG)"%'\
  34. + -e 's%^cefp=.*%cefp=gpg%' > $(@).c
  35. $(CPP) -DGPG $(BUILD_FLAGS) $(@).c | $(GREP) -v "^# .* .*" > $(@)
  36. chmod 755 $(@)
  37. pinepgp26x: pinegpgp
  38. - $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename="PGP 2.6.x"%;\
  39. - s%^ces=.*%ces="\$(PGP) -fat -s"%;\
  40. - s%^cee=.*%cee="\$(PGP) -fat -e"%;\
  41. - s%^cese=.*%cese="\$(PGP) -fat -se"%;\
  42. - s%^cec=.*%cec="\$(PGP) -f"%;\
  43. - s%^cefp=.*%cefp=pgp26x%' > $(@).c
  44. + $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename="PGP 2.6.x"%'\
  45. + -e 's%^ces=.*%ces="\$(PGP) -fat -s"%'\
  46. + -e 's%^cee=.*%cee="\$(PGP) -fat -e"%'\
  47. + -e 's%^cese=.*%cese="\$(PGP) -fat -se"%'\
  48. + -e 's%^cec=.*%cec="\$(PGP) -f"%'\
  49. + -e 's%^cefp=.*%cefp=pgp26x%' > $(@).c
  50. $(CPP) -DPGP26X $(BUILD_FLAGS) $(@).c | $(GREP) -v "^# .* .*" > $(@)
  51. chmod 755 $(@)
  52. pinepgp5x: pinegpgp
  53. - $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename="PGP 5.x"%;\
  54. - s%^ces=.*%ces="$(PGP5S) -fat"%;\
  55. - s%^cee=.*%cee="$(PGP5E) -fat"%;\
  56. - s%^cese=.*%cese="$(PGP5E) -fat -s"%;\
  57. - s%^cec=.*%cec="$(PGP5V) -f"%;\
  58. - s%^cefp=.*%cefp=pgp26x%' > $(@).c
  59. + $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename="PGP 5.x"%'\
  60. + -e 's%^ces=.*%ces="$(PGP5S) -fat"%'\
  61. + -e 's%^cee=.*%cee="$(PGP5E) -fat"%'\
  62. + -e 's%^cese=.*%cese="$(PGP5E) -fat -s"%'\
  63. + -e 's%^cec=.*%cec="$(PGP5V) -f"%'\
  64. + -e 's%^cefp=.*%cefp=pgp26x%' > $(@).c
  65. $(CPP) -DPGP5X $(BUILD_FLAGS) $(@).c | $(GREP) -v "^# .* .*" > $(@)
  66. chmod 755 $(@)
  67. pinepgp65x: pinegpgp
  68. - $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename="PGP 6.5.x"%;\
  69. - s%^ces=.*%ces="\$(PGP6) -fat -s -u $$USER"%;\
  70. - s%^cee=.*%cee="\$(PGP6) -fat -e -u $$USER"%;\
  71. - s%^cese=.*%cese="\$(PGP6) -fat -se -u $$USER"%;\
  72. - s%^cec=.*%cec="\$(PGP6) -f -u $$USER"%;\
  73. - s%^cefp=.*%cefp=pgp65x%' > $(@).c
  74. + $(CAT) pinegpgp | $(SED) -e 's%^cename=.*%cename="PGP 6.5.x"%'\
  75. + -e 's%^ces=.*%ces="\$(PGP6) -fat -s -u $$USER"%'\
  76. + -e 's%^cee=.*%cee="\$(PGP6) -fat -e -u $$USER"%'\
  77. + -e 's%^cese=.*%cese="\$(PGP6) -fat -se -u $$USER"%'\
  78. + -e 's%^cec=.*%cec="\$(PGP6) -f -u $$USER"%'\
  79. + -e 's%^cefp=.*%cefp=pgp65x%' > $(@).c
  80. $(CPP) -DPGP65X $(BUILD_FLAGS) $(@).c | $(GREP) -v "^# .* .*" > $(@)
  81. chmod 755 $(@)