]> git.pld-linux.org Git - packages/ppp.git/blob - ppp-make.patch
- updated make patch, use %%configure in radiusclient to use proper optflags
[packages/ppp.git] / ppp-make.patch
1 diff -urN ppp-2.4.2-20020809.org/chat/Makefile.linux ppp-2.4.2-20020809/chat/Makefile.linux
2 --- ppp-2.4.2-20020809.org/chat/Makefile.linux  Fri Aug  9 22:14:40 2002
3 +++ ppp-2.4.2-20020809/chat/Makefile.linux      Sat Aug 10 00:31:18 2002
4 @@ -6,7 +6,7 @@
5  CDEF4= -DFNDELAY=O_NDELAY              # Old name value
6  CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
7  
8 -CFLAGS=        -O2 -g -pipe $(CDEFS)
9 +CFLAGS=        $(OPT_FLAGS) -pipe $(CDEFS)
10  
11  INSTALL= install
12  
13 diff -urN ppp-2.4.2-20020809.org/linux/Makefile.top ppp-2.4.2-20020809/linux/Makefile.top
14 --- ppp-2.4.2-20020809.org/linux/Makefile.top   Fri Aug  9 22:14:40 2002
15 +++ ppp-2.4.2-20020809/linux/Makefile.top       Sat Aug 10 00:31:18 2002
16 @@ -3,7 +3,7 @@
17  
18  BINDIR = $(DESTDIR)/usr/sbin
19  INCDIR = $(DESTDIR)/usr/include
20 -MANDIR = $(DESTDIR)/usr/man
21 +MANDIR = $(DESTDIR)/usr/share/man
22  ETCDIR = $(DESTDIR)/etc/ppp
23  
24  # uid 0 = root
25 diff -urN ppp-2.4.2-20020809.org/pppd/Makefile.linux ppp-2.4.2-20020809/pppd/Makefile.linux
26 --- ppp-2.4.2-20020809.org/pppd/Makefile.linux  Fri Aug  9 22:14:40 2002
27 +++ ppp-2.4.2-20020809/pppd/Makefile.linux      Sat Aug 10 00:34:02 2002
28 @@ -31,7 +31,7 @@
29  
30  # CC = gcc
31  #
32 -COPTS = -O2 -pipe -Wall -g
33 +COPTS = $(OPT_FLAGS) -pipe -Wall -g
34  LIBS =
35  
36  # Uncomment the next 2 lines to include support for Microsoft's
37 @@ -62,13 +62,13 @@
38  
39  HAS_SHADOW=y
40  #USE_PAM=y
41 -#HAVE_INET6=y
42 +HAVE_INET6=y
43  
44  # Enable plugins
45  PLUGIN=y
46  
47  # Enable Microsoft proprietary Callback Control Protocol
48 -#CBCP=y
49 +CBCP=y
50  
51  # Enable EAP SRP-SHA1 authentication (requires libsrp)
52  #USE_SRP=y
53 @@ -193,16 +193,14 @@
54       CFLAGS += -DMAXOCTETS
55  endif
56  
57 -INSTALL= install -o root
58 +INSTALL= install
59  
60  all: $(TARGETS)
61  
62  install: pppd
63         mkdir -p $(BINDIR) $(MANDIR)
64 -       $(EXTRAINSTALL)
65 -       $(INSTALL) -s -c -m 555 pppd $(BINDIR)/pppd
66 -       if chgrp pppusers $(BINDIR)/pppd 2>/dev/null; then \
67 -         chmod o-rx,u+s $(BINDIR)/pppd; fi
68 +#      $(EXTRAINSTALL)
69 +       $(INSTALL) -c -m 555 pppd $(BINDIR)/pppd
70         $(INSTALL) -c -m 444 pppd.8 $(MANDIR)/man8
71  
72  pppd: $(PPPDOBJS)
73 diff -urN ppp-2.4.2-20020809.org/pppd/plugins/Makefile.linux ppp-2.4.2-20020809/pppd/plugins/Makefile.linux
74 --- ppp-2.4.2-20020809.org/pppd/plugins/Makefile.linux  Fri Aug  9 22:14:40 2002
75 +++ ppp-2.4.2-20020809/pppd/plugins/Makefile.linux      Sat Aug 10 00:31:52 2002
76 @@ -1,11 +1,11 @@
77  CC     = gcc
78 -CFLAGS = -g -O2 -I.. -I../../include -fPIC
79 +CFLAGS = -g $(OPT_FLAGS) -I.. -I../../include -D_linux_=1 -fPIC
80  LDFLAGS        = -shared
81 -INSTALL        = install -o root
82 +INSTALL        = install
83  
84  SUBDIRS := rp-pppoe
85  # Uncomment the next line to include the radius authentication plugin
86 -# SUBDIRS += radius
87 +SUBDIRS += radius
88  PLUGINS := minconn.so passprompt.so passwordfd.so
89  
90  # include dependencies if present
91 diff -urN ppp-2.4.2-20020809.org/pppdump/Makefile.linux ppp-2.4.2-20020809/pppdump/Makefile.linux
92 --- ppp-2.4.2-20020809.org/pppdump/Makefile.linux       Fri Aug  9 22:14:40 2002
93 +++ ppp-2.4.2-20020809/pppdump/Makefile.linux   Sat Aug 10 00:31:18 2002
94 @@ -13,5 +13,5 @@
95  
96  install:
97         mkdir -p $(BINDIR) $(MANDIR)/man8
98 -       $(INSTALL) -s -c pppdump $(BINDIR)
99 +       $(INSTALL) -c pppdump $(BINDIR)
100         $(INSTALL) -c -m 444 pppdump.8 $(MANDIR)/man8
101 diff -urN ppp-2.4.2-20020809.org/pppstats/Makefile.linux ppp-2.4.2-20020809/pppstats/Makefile.linux
102 --- ppp-2.4.2-20020809.org/pppstats/Makefile.linux      Fri Aug  9 22:14:40 2002
103 +++ ppp-2.4.2-20020809/pppstats/Makefile.linux  Sat Aug 10 00:31:18 2002
104 @@ -7,11 +7,11 @@
105  PPPSTATOBJS = pppstats.o
106  
107  #CC = gcc
108 -COPTS = -O
109 +COPTS = $(OPT_FLAGS)
110  COMPILE_FLAGS = -I../include
111  LIBS =
112  
113 -INSTALL= install -o root -g daemon
114 +INSTALL= install
115  
116  CFLAGS = $(COPTS) $(COMPILE_FLAGS)
117  
118 @@ -19,7 +19,7 @@
119  
120  install: pppstats
121         -mkdir -p $(MANDIR)/man8
122 -       $(INSTALL) -s -c pppstats $(BINDIR)/pppstats
123 +       $(INSTALL) -c pppstats $(BINDIR)/pppstats
124         $(INSTALL) -c -m 444 pppstats.8 $(MANDIR)/man8/pppstats.8
125  
126  pppstats: $(PPPSTATSRCS)
127 --- ppp-2.4.2-20030613/pppd/plugins/rp-pppoe/Makefile.linux.orig        2003-06-17 00:58:36.000000000 +0200
128 +++ ppp-2.4.2-20030613/pppd/plugins/rp-pppoe/Makefile.linux     2003-06-17 08:04:52.000000000 +0200
129 @@ -16,7 +16,7 @@
130  # Version is set ONLY IN THE MAKEFILE!  Don't delete this!
131  VERSION=3.5
132  
133 -CFLAGS+=-I../../../include/linux
134 +CFLAGS+=-I../../../include/linux $(OPT_FLAGS)
135  all: rp-pppoe.so
136  
137  rp-pppoe.so: libplugin.a plugin.o
138 --- ppp-2.4.2-20030613/pppd/plugins/radius/Makefile.linux.orig  2002-10-05 06:35:24.000000000 +0200
139 +++ ppp-2.4.2-20030613/pppd/plugins/radius/Makefile.linux       2003-06-17 08:02:16.000000000 +0200
140 @@ -5,7 +5,7 @@
141  
142  MANDIR=/usr/man
143  PLUGIN=radius.so radattr.so radrealms.so
144 -CFLAGS=-I../.. -I../../../include -Iradiusclient/include -O2
145 +CFLAGS=-I../.. -I../../../include -Iradiusclient/include $(OPT_FLAGS)
146  
147  # Uncomment the next line to include support for Microsoft's
148  # MS-CHAP authentication protocol.
This page took 0.038384 seconds and 3 git commands to generate.