Root/package/network/services/ppp/patches/200-makefile.patch

1pppd: tune Linux config defaults for OpenWrt
2
3This patch adjusts a number defaults to properly match the OpenWrt environment.
4It is not intended for upstream.
5
6Signed-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,11 +58,11 @@ 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+#HAS_SHADOW=y
28 #USE_PAM=y
29-#HAVE_INET6=y
30+HAVE_INET6=y
31 
32 # Enable plugins
33 PLUGIN=y
34@@ -77,7 +77,7 @@ MAXOCTETS=y
35 
36 INCLUDE_DIRS= -I../include
37 
38-COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
39+COMPILE_FLAGS= -DHAVE_PATHS_H -DHAVE_MMAP
40 
41 CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
42 
43@@ -117,10 +117,10 @@ CFLAGS += -DHAS_SHADOW
44 #LIBS += -lshadow $(LIBS)
45 endif
46 
47-ifneq ($(wildcard /usr/include/crypt.h),)
48+#ifneq ($(wildcard /usr/include/crypt.h),)
49 CFLAGS += -DHAVE_CRYPT_H=1
50 LIBS += -lcrypt
51-endif
52+#endif
53 
54 ifdef NEEDDES
55 ifndef USE_CRYPT
56

Archive Download this file



interactive