200-makefile.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. pppd: tune Linux config defaults for OpenWrt
  2. This patch adjusts a number defaults to properly match the OpenWrt environment.
  3. It is not intended for upstream.
  4. Signed-off-by: Jo-Philipp Wich <[email protected]>
  5. --- a/pppd/Makefile.linux
  6. +++ b/pppd/Makefile.linux
  7. @@ -49,7 +49,7 @@ MPPE=y
  8. # Uncomment the next line to include support for PPP packet filtering.
  9. # This requires that the libpcap library and headers be installed
  10. # and that the kernel driver support PPP packet filtering.
  11. -FILTER=y
  12. +#FILTER=y
  13. # Uncomment the next line to enable multilink PPP (enabled by default)
  14. # Linux distributions: Please leave multilink ENABLED in your builds
  15. @@ -59,7 +59,7 @@ HAVE_MULTILINK=y
  16. # Uncomment the next line to enable the TDB database (enabled by default.)
  17. # If you enable multilink, then TDB is automatically enabled also.
  18. # Linux distributions: Please leave TDB ENABLED in your builds.
  19. -USE_TDB=y
  20. +#USE_TDB=y
  21. # Uncomment the next line to enable Type=notify services in systemd
  22. # If enabled, and the user sets the up_sdnotify option, then
  23. @@ -85,13 +85,13 @@ USE_LIBUTIL=y
  24. endif
  25. # Enable EAP-TLS authentication (requires MPPE support, libssl and libcrypto)
  26. -USE_EAPTLS=y
  27. +#USE_EAPTLS=y
  28. MAXOCTETS=y
  29. INCLUDE_DIRS= -I../include
  30. -COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -pipe
  31. +COMPILE_FLAGS= -DHAVE_PATHS_H -DHAVE_MMAP -pipe
  32. CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
  33. @@ -143,10 +143,10 @@ CFLAGS += -DHAS_SHADOW
  34. #LIBS += -lshadow $(LIBS)
  35. endif
  36. -ifeq ($(shell echo '\#include <crypt.h>' | $(CC) -E - >/dev/null 2>&1 && echo yes),yes)
  37. +#ifeq ($(shell echo '\#include <crypt.h>' | $(CC) -E - >/dev/null 2>&1 && echo yes),yes)
  38. CFLAGS += -DHAVE_CRYPT_H=1
  39. LIBS += -lcrypt
  40. -endif
  41. +#endif
  42. ifdef USE_LIBUTIL
  43. CFLAGS += -DHAVE_LOGWTMP=1