200-makefile.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. @@ -48,7 +48,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. @@ -58,11 +58,11 @@ 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. -HAS_SHADOW=y
  22. +#HAS_SHADOW=y
  23. #USE_PAM=y
  24. -#HAVE_INET6=y
  25. +HAVE_INET6=y
  26. # Enable plugins
  27. PLUGIN=y
  28. @@ -77,7 +77,7 @@ MAXOCTETS=y
  29. INCLUDE_DIRS= -I../include
  30. -COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
  31. +COMPILE_FLAGS= -DHAVE_PATHS_H -DHAVE_MMAP
  32. CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
  33. @@ -117,10 +117,10 @@ CFLAGS += -DHAS_SHADOW
  34. #LIBS += -lshadow $(LIBS)
  35. endif
  36. -ifneq ($(wildcard /usr/include/crypt.h),)
  37. +#ifneq ($(wildcard /usr/include/crypt.h),)
  38. CFLAGS += -DHAVE_CRYPT_H=1
  39. LIBS += -lcrypt
  40. -endif
  41. +#endif
  42. ifdef NEEDDES
  43. ifndef USE_CRYPT