ppp: bump to 2.4.6
[openwrt.git] / package / network / services / ppp / patches / 200-makefile.patch
1 pppd: tune Linux config defaults for OpenWrt
2
3 This patch adjusts a number defaults to properly match the OpenWrt environment.
4 It is not intended for upstream.
5
6 Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
7
8 --- a/pppd/Makefile.linux
9 +++ b/pppd/Makefile.linux
10 @@ -48,7 +48,7 @@ MPPE=y
11  # Uncomment the next line to include support for PPP packet filtering.
12  # This requires that the libpcap library and headers be installed
13  # and that the kernel driver support PPP packet filtering.
14 -FILTER=y
15 +#FILTER=y
16  
17  # Uncomment the next line to enable multilink PPP (enabled by default)
18  # Linux distributions: Please leave multilink ENABLED in your builds
19 @@ -58,7 +58,7 @@ HAVE_MULTILINK=y
20  # Uncomment the next line to enable the TDB database (enabled by default.)
21  # If you enable multilink, then TDB is automatically enabled also.
22  # Linux distributions: Please leave TDB ENABLED in your builds.
23 -USE_TDB=y
24 +#USE_TDB=y
25  
26  HAS_SHADOW=y
27  #USE_PAM=y
28 @@ -80,7 +80,7 @@ MAXOCTETS=y
29  
30  INCLUDE_DIRS= -I../include
31  
32 -COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
33 +COMPILE_FLAGS= -DHAVE_PATHS_H -DHAVE_MMAP
34  
35  CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
36  
37 @@ -120,10 +120,10 @@ CFLAGS   += -DHAS_SHADOW
38  #LIBS     += -lshadow $(LIBS)
39  endif
40  
41 -ifneq ($(wildcard /usr/include/crypt.h),)
42 +#ifneq ($(wildcard /usr/include/crypt.h),)
43  CFLAGS  += -DHAVE_CRYPT_H=1
44  LIBS   += -lcrypt
45 -endif
46 +#endif
47  
48  ifdef USE_LIBUTIL
49  CFLAGS += -DHAVE_LOGWTMP=1