PageRenderTime 46ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/ppp/100-generic.patch

http://wl500g.googlecode.com/
Patch | 207 lines | 176 code | 31 blank | 0 comment | 0 complexity | 64c68e9e144e3f25914ffee18204bfc1 MD5 | raw file
Possible License(s): GPL-2.0
  1. diff -urB ppp.orig/chat/Makefile.linux ppp/chat/Makefile.linux
  2. --- ppp.orig/chat/Makefile.linux 2008-11-26 13:02:29.000000000 +0300
  3. +++ ppp/chat/Makefile.linux 2009-02-09 18:08:34.000000000 +0300
  4. @@ -11,7 +11,7 @@
  5. CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
  6. COPTS= -O2 -g -pipe
  7. -CFLAGS= $(COPTS) $(CDEFS)
  8. +CFLAGS= $(COPTS) $(CDEFS) $(EXTRACFLAGS)
  9. INSTALL= install
  10. diff -urB ppp.orig/pppd/Makefile.linux ppp/pppd/Makefile.linux
  11. --- ppp.orig/pppd/Makefile.linux 2008-11-26 13:02:29.000000000 +0300
  12. +++ ppp/pppd/Makefile.linux 2009-02-09 18:10:19.000000000 +0300
  13. @@ -48,19 +48,19 @@
  14. # Uncomment the next line to include support for PPP packet filtering.
  15. # This requires that the libpcap library and headers be installed
  16. # and that the kernel driver support PPP packet filtering.
  17. -FILTER=y
  18. +#FILTER=y
  19. # Uncomment the next line to enable multilink PPP (enabled by default)
  20. # Linux distributions: Please leave multilink ENABLED in your builds
  21. # of pppd!
  22. -HAVE_MULTILINK=y
  23. +#HAVE_MULTILINK=y
  24. # Uncomment the next line to enable the TDB database (enabled by default.)
  25. # If you enable multilink, then TDB is automatically enabled also.
  26. # Linux distributions: Please leave TDB ENABLED in your builds.
  27. -USE_TDB=y
  28. +#USE_TDB=y
  29. -HAS_SHADOW=y
  30. +#HAS_SHADOW=y
  31. #USE_PAM=y
  32. #HAVE_INET6=y
  33. @@ -73,13 +73,14 @@
  34. # Enable EAP SRP-SHA1 authentication (requires libsrp)
  35. #USE_SRP=y
  36. -MAXOCTETS=y
  37. +#MAXOCTETS=y
  38. INCLUDE_DIRS= -I../include
  39. -COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
  40. +COMPILE_FLAGS= #-DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
  41. -CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
  42. +CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(EXTRACFLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
  43. +LDFLAGS += $(EXTRA_LDFLAGS)
  44. ifdef CHAPMS
  45. CFLAGS += -DCHAPMS=1
  46. @@ -117,10 +117,10 @@
  47. #LIBS += -lshadow $(LIBS)
  48. endif
  49. -ifneq ($(wildcard /usr/include/crypt.h),)
  50. +#ifneq ($(wildcard /usr/include/crypt.h),)
  51. CFLAGS += -DHAVE_CRYPT_H=1
  52. LIBS += -lcrypt
  53. -endif
  54. +#endif
  55. ifdef NEEDDES
  56. ifndef USE_CRYPT
  57. diff -urB ppp.orig/pppd/pathnames.h ppp/pppd/pathnames.h
  58. --- ppp.orig/pppd/pathnames.h 2008-11-26 13:02:29.000000000 +0300
  59. +++ ppp/pppd/pathnames.h 2009-02-09 18:08:09.000000000 +0300
  60. @@ -9,40 +9,40 @@
  61. #else /* HAVE_PATHS_H */
  62. #ifndef _PATH_VARRUN
  63. -#define _PATH_VARRUN "/etc/ppp/"
  64. +#define _PATH_VARRUN "/var/run/"
  65. #endif
  66. #define _PATH_DEVNULL "/dev/null"
  67. #endif /* HAVE_PATHS_H */
  68. #ifndef _ROOT_PATH
  69. -#define _ROOT_PATH
  70. +#define _ROOT_PATH "/tmp"
  71. #endif
  72. -#define _PATH_UPAPFILE _ROOT_PATH "/etc/ppp/pap-secrets"
  73. -#define _PATH_CHAPFILE _ROOT_PATH "/etc/ppp/chap-secrets"
  74. -#define _PATH_SRPFILE _ROOT_PATH "/etc/ppp/srp-secrets"
  75. -#define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options"
  76. -#define _PATH_IPUP _ROOT_PATH "/etc/ppp/ip-up"
  77. -#define _PATH_IPDOWN _ROOT_PATH "/etc/ppp/ip-down"
  78. -#define _PATH_IPPREUP _ROOT_PATH "/etc/ppp/ip-pre-up"
  79. -#define _PATH_AUTHUP _ROOT_PATH "/etc/ppp/auth-up"
  80. -#define _PATH_AUTHDOWN _ROOT_PATH "/etc/ppp/auth-down"
  81. -#define _PATH_TTYOPT _ROOT_PATH "/etc/ppp/options."
  82. -#define _PATH_CONNERRS _ROOT_PATH "/etc/ppp/connect-errors"
  83. -#define _PATH_PEERFILES _ROOT_PATH "/etc/ppp/peers/"
  84. -#define _PATH_RESOLV _ROOT_PATH "/etc/ppp/resolv.conf"
  85. +#define _PATH_UPAPFILE _ROOT_PATH "/ppp/pap-secrets"
  86. +#define _PATH_CHAPFILE _ROOT_PATH "/ppp/chap-secrets"
  87. +#define _PATH_SRPFILE _ROOT_PATH "/ppp/srp-secrets"
  88. +#define _PATH_SYSOPTIONS _ROOT_PATH "/ppp/options"
  89. +#define _PATH_IPUP _ROOT_PATH "/ppp/ip-up"
  90. +#define _PATH_IPDOWN _ROOT_PATH "/ppp/ip-down"
  91. +#define _PATH_IPPREUP _ROOT_PATH "/ppp/ip-pre-up"
  92. +#define _PATH_AUTHUP _ROOT_PATH "/ppp/auth-up"
  93. +#define _PATH_AUTHDOWN _ROOT_PATH "/ppp/auth-down"
  94. +#define _PATH_TTYOPT _ROOT_PATH "/ppp/options."
  95. +#define _PATH_CONNERRS _ROOT_PATH "/var/log/ppp-connect-errors"
  96. +#define _PATH_PEERFILES _ROOT_PATH "/ppp/peers/"
  97. +#define _PATH_RESOLV _ROOT_PATH "/ppp/resolv.conf"
  98. #define _PATH_USEROPT ".ppprc"
  99. #define _PATH_PSEUDONYM ".ppp_pseudonym"
  100. #ifdef INET6
  101. -#define _PATH_IPV6UP _ROOT_PATH "/etc/ppp/ipv6-up"
  102. -#define _PATH_IPV6DOWN _ROOT_PATH "/etc/ppp/ipv6-down"
  103. +#define _PATH_IPV6UP _ROOT_PATH "/ppp/ipv6-up"
  104. +#define _PATH_IPV6DOWN _ROOT_PATH "/ppp/ipv6-down"
  105. #endif
  106. #ifdef IPX_CHANGE
  107. -#define _PATH_IPXUP _ROOT_PATH "/etc/ppp/ipx-up"
  108. -#define _PATH_IPXDOWN _ROOT_PATH "/etc/ppp/ipx-down"
  109. +#define _PATH_IPXUP _ROOT_PATH "/ppp/ipx-up"
  110. +#define _PATH_IPXDOWN _ROOT_PATH "/ppp/ipx-down"
  111. #endif /* IPX_CHANGE */
  112. #ifdef __STDC__
  113. @@ -51,13 +51,13 @@
  114. #ifdef HAVE_PATHS_H
  115. #define _PATH_PPPDB "/var/run/pppd2.tdb"
  116. #else
  117. -#define _PATH_PPPDB "/etc/ppp/pppd2.tdb"
  118. +#define _PATH_PPPDB "/var/run/pppd2.tdb"
  119. #endif
  120. #endif /* __STDC__ */
  121. #ifdef PLUGIN
  122. #ifdef __STDC__
  123. -#define _PATH_PLUGIN DESTDIR "/lib/pppd/" VERSION
  124. +#define _PATH_PLUGIN "/usr/lib/pppd/"
  125. #else /* __STDC__ */
  126. #define _PATH_PLUGIN "/usr/lib/pppd"
  127. #endif /* __STDC__ */
  128. diff -urB ppp.orig/pppd/plugins/Makefile.linux ppp/pppd/plugins/Makefile.linux
  129. --- ppp.orig/pppd/plugins/Makefile.linux 2008-11-26 13:02:29.000000000 +0300
  130. +++ ppp/pppd/plugins/Makefile.linux 2009-02-09 18:10:50.000000000 +0300
  131. @@ -1,6 +1,6 @@
  132. #CC = gcc
  133. COPTS = -O2 -g
  134. -CFLAGS = $(COPTS) -I.. -I../../include -fPIC
  135. +CFLAGS = $(COPTS) -I.. -I../../include -fPIC $(EXTRACFLAGS)
  136. LDFLAGS = -shared
  137. INSTALL = install
  138. diff -uBp a/pppd/plugins/pppol2tp/Makefile.linux b/pppd/plugins/pppol2tp/Makefile.linux
  139. --- a/pppd/plugins/pppol2tp/Makefile.linux 2009-10-08 10:00:57.000000000 +0400
  140. +++ b/pppd/plugins/pppol2tp/Makefile.linux 2010-11-22 21:56:19.000000000 +0300
  141. @@ -1,6 +1,6 @@
  142. #CC = gcc
  143. COPTS = -O2 -g
  144. -CFLAGS = $(COPTS) -I. -I../.. -I../../../include -fPIC
  145. +CFLAGS = $(COPTS) -I. -I../.. -I$(LINUXDIR)/include -fPIC $(EXTRACFLAGS)
  146. LDFLAGS = -shared
  147. INSTALL = install
  148. diff -uBp a/pppd/plugins/radius/Makefile.linux b/pppd/plugins/radius/Makefile.linux
  149. --- a/pppd/plugins/radius/Makefile.linux 2009-11-17 01:26:07.000000000 +0300
  150. +++ b/pppd/plugins/radius/Makefile.linux 2010-11-22 21:54:24.000000000 +0300
  151. @@ -12,7 +12,7 @@ VERSION = $(shell awk -F '"' '/VERSION/
  152. INSTALL = install
  153. PLUGIN=radius.so radattr.so radrealms.so
  154. -CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON
  155. +CFLAGS=-I. -I../.. -I../../../include -O2 -fPIC -DRC_LOG_FACILITY=LOG_DAEMON $(EXTRACFLAGS)
  156. # Uncomment the next line to include support for Microsoft's
  157. # MS-CHAP authentication protocol.
  158. diff -urBp a/pppd/plugins/rp-pppoe/Makefile.linux b/pppd/plugins/rp-pppoe/Makefile.linux
  159. --- a/pppd/plugins/rp-pppoe/Makefile.linux 2009-02-09 17:22:47.000000000 +0300
  160. +++ b/pppd/plugins/rp-pppoe/Makefile.linux 2010-11-22 21:53:54.000000000 +0300
  161. @@ -26,7 +26,7 @@ INSTALL = install
  162. RP_VERSION=3.10p
  163. COPTS=-O2 -g
  164. -CFLAGS=$(COPTS) -I../../../include '-DRP_VERSION="$(RP_VERSION)"'
  165. +CFLAGS=$(COPTS) -I../../../include '-DRP_VERSION="$(RP_VERSION)"' $(EXTRACFLAGS)
  166. all: rp-pppoe.so pppoe-discovery
  167. pppoe-discovery: pppoe-discovery.o debug.o
  168. diff -urB ppp.orig/pppd/plugins/rp-pppoe/plugin.c ppp/pppd/plugins/rp-pppoe/plugin.c
  169. --- ppp.orig/pppd/plugins/rp-pppoe/plugin.c 2009-02-09 17:16:52.000000000 +0300
  170. +++ ppp/pppd/plugins/rp-pppoe/plugin.c 2009-02-09 18:04:49.000000000 +0300
  171. @@ -55,7 +55,7 @@
  172. #define _ROOT_PATH ""
  173. #endif
  174. -#define _PATH_ETHOPT _ROOT_PATH "/etc/ppp/options."
  175. +#define _PATH_ETHOPT _ROOT_PATH "/ppp/options."
  176. char pppd_version[] = VERSION;