202-no_strip.patch 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. build: Do not strip binaries on install
  2. Strippign executables should be handled by the distro packaging, not by ppp
  3. itself. This patch removes the "-s" (strip) switch from all "install" commands
  4. in order to install unstripped binaries into the destination prefix.
  5. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  6. --- a/chat/Makefile.linux
  7. +++ b/chat/Makefile.linux
  8. @@ -25,7 +25,7 @@ chat.o: chat.c
  9. install: chat
  10. mkdir -p $(BINDIR) $(MANDIR)
  11. - $(INSTALL) -s -c chat $(BINDIR)
  12. + $(INSTALL) -c chat $(BINDIR)
  13. $(INSTALL) -c -m 644 chat.8 $(MANDIR)
  14. clean:
  15. --- a/pppd/Makefile.linux
  16. +++ b/pppd/Makefile.linux
  17. @@ -107,7 +107,7 @@ ifdef USE_SRP
  18. CFLAGS += -DUSE_SRP -DOPENSSL -I/usr/local/ssl/include
  19. LIBS += -lsrp -L/usr/local/ssl/lib -lcrypto
  20. TARGETS += srp-entry
  21. -EXTRAINSTALL = $(INSTALL) -s -c -m 555 srp-entry $(BINDIR)/srp-entry
  22. +EXTRAINSTALL = $(INSTALL) -c -m 555 srp-entry $(BINDIR)/srp-entry
  23. MANPAGES += srp-entry.8
  24. EXTRACLEAN += srp-entry.o
  25. NEEDDES=y
  26. @@ -219,7 +219,7 @@ all: $(TARGETS)
  27. install: pppd
  28. mkdir -p $(BINDIR) $(MANDIR)
  29. $(EXTRAINSTALL)
  30. - $(INSTALL) -s -c -m 555 pppd $(BINDIR)/pppd
  31. + $(INSTALL) -c -m 555 pppd $(BINDIR)/pppd
  32. if chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \
  33. chmod o-rx,u+s $(BINDIR)/pppd; fi
  34. $(INSTALL) -c -m 444 pppd.8 $(MANDIR)
  35. --- a/pppd/plugins/radius/Makefile.linux
  36. +++ b/pppd/plugins/radius/Makefile.linux
  37. @@ -36,9 +36,9 @@ all: $(PLUGIN)
  38. install: all
  39. $(INSTALL) -d -m 755 $(LIBDIR)
  40. - $(INSTALL) -s -c -m 755 radius.so $(LIBDIR)
  41. - $(INSTALL) -s -c -m 755 radattr.so $(LIBDIR)
  42. - $(INSTALL) -s -c -m 755 radrealms.so $(LIBDIR)
  43. + $(INSTALL) -c -m 755 radius.so $(LIBDIR)
  44. + $(INSTALL) -c -m 755 radattr.so $(LIBDIR)
  45. + $(INSTALL) -c -m 755 radrealms.so $(LIBDIR)
  46. $(INSTALL) -c -m 444 pppd-radius.8 $(MANDIR)
  47. $(INSTALL) -c -m 444 pppd-radattr.8 $(MANDIR)
  48. --- a/pppd/plugins/rp-pppoe/Makefile.linux
  49. +++ b/pppd/plugins/rp-pppoe/Makefile.linux
  50. @@ -43,9 +43,9 @@ rp-pppoe.so: plugin.o discovery.o if.o c
  51. install: all
  52. $(INSTALL) -d -m 755 $(LIBDIR)
  53. - $(INSTALL) -s -c -m 4550 rp-pppoe.so $(LIBDIR)
  54. + $(INSTALL) -c -m 4550 rp-pppoe.so $(LIBDIR)
  55. $(INSTALL) -d -m 755 $(BINDIR)
  56. - $(INSTALL) -s -c -m 555 pppoe-discovery $(BINDIR)
  57. + $(INSTALL) -c -m 555 pppoe-discovery $(BINDIR)
  58. clean:
  59. rm -f *.o *.so pppoe-discovery
  60. --- a/pppdump/Makefile.linux
  61. +++ b/pppdump/Makefile.linux
  62. @@ -17,5 +17,5 @@ clean:
  63. install:
  64. mkdir -p $(BINDIR) $(MANDIR)
  65. - $(INSTALL) -s -c pppdump $(BINDIR)
  66. + $(INSTALL) -c pppdump $(BINDIR)
  67. $(INSTALL) -c -m 444 pppdump.8 $(MANDIR)
  68. --- a/pppstats/Makefile.linux
  69. +++ b/pppstats/Makefile.linux
  70. @@ -22,7 +22,7 @@ all: pppstats
  71. install: pppstats
  72. -mkdir -p $(MANDIR)
  73. - $(INSTALL) -s -c pppstats $(BINDIR)
  74. + $(INSTALL) -c pppstats $(BINDIR)
  75. $(INSTALL) -c -m 444 pppstats.8 $(MANDIR)
  76. pppstats: $(PPPSTATSRCS)