]> git.pld-linux.org Git - packages/ppp.git/blame - ppp-make.patch
- updated make patch, use %%configure in radiusclient to use proper optflags
[packages/ppp.git] / ppp-make.patch
CommitLineData
7d3cd975
AM
1diff -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
e619c42e 4@@ -6,7 +6,7 @@
9113567e 5 CDEF4= -DFNDELAY=O_NDELAY # Old name value
6 CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) $(CDEF4)
7
e619c42e 8-CFLAGS= -O2 -g -pipe $(CDEFS)
7d3cd975 9+CFLAGS= $(OPT_FLAGS) -pipe $(CDEFS)
9113567e 10
e619c42e 11 INSTALL= install
9113567e 12
7d3cd975
AM
13diff -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 @@
9113567e 17
ed283b80 18 BINDIR = $(DESTDIR)/usr/sbin
7d3cd975 19 INCDIR = $(DESTDIR)/usr/include
ed283b80 20-MANDIR = $(DESTDIR)/usr/man
21+MANDIR = $(DESTDIR)/usr/share/man
22 ETCDIR = $(DESTDIR)/etc/ppp
9113567e 23
24 # uid 0 = root
7d3cd975 25diff -urN ppp-2.4.2-20020809.org/pppd/Makefile.linux ppp-2.4.2-20020809/pppd/Makefile.linux
d26023db 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 @@
0d24a27d 29
30 # CC = gcc
31 #
32-COPTS = -O2 -pipe -Wall -g
7d3cd975 33+COPTS = $(OPT_FLAGS) -pipe -Wall -g
0d24a27d 34 LIBS =
35
d26023db 36 # Uncomment the next 2 lines to include support for Microsoft's
37@@ -62,13 +62,13 @@
c94df5ad
AM
38
39 HAS_SHADOW=y
40 #USE_PAM=y
41-#HAVE_INET6=y
42+HAVE_INET6=y
43
d26023db 44 # Enable plugins
c94df5ad
AM
45 PLUGIN=y
46
d26023db 47 # Enable Microsoft proprietary Callback Control Protocol
7d3cd975
AM
48-#CBCP=y
49+CBCP=y
e619c42e 50
d26023db 51 # Enable EAP SRP-SHA1 authentication (requires libsrp)
52 #USE_SRP=y
53@@ -193,16 +193,14 @@
7d3cd975
AM
54 CFLAGS += -DMAXOCTETS
55 endif
587d7d9f 56
e619c42e
AM
57-INSTALL= install -o root
58+INSTALL= install
9113567e 59
d26023db 60 all: $(TARGETS)
61
9113567e 62 install: pppd
63 mkdir -p $(BINDIR) $(MANDIR)
d26023db 64- $(EXTRAINSTALL)
c94df5ad
AM
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
d26023db 68+# $(EXTRAINSTALL)
7d3cd975
AM
69+ $(INSTALL) -c -m 555 pppd $(BINDIR)/pppd
70 $(INSTALL) -c -m 444 pppd.8 $(MANDIR)/man8
9113567e 71
72 pppd: $(PPPDOBJS)
7d3cd975
AM
73diff -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
d26023db 76@@ -1,11 +1,11 @@
7d3cd975 77 CC = gcc
d26023db 78-CFLAGS = -g -O2 -I.. -I../../include -fPIC
7d3cd975
AM
79+CFLAGS = -g $(OPT_FLAGS) -I.. -I../../include -D_linux_=1 -fPIC
80 LDFLAGS = -shared
81-INSTALL = install -o root
82+INSTALL = install
83
d26023db 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
7d3cd975
AM
91diff -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
101diff -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 @@
9113567e 105 PPPSTATOBJS = pppstats.o
106
7d3cd975 107 #CC = gcc
9113567e 108-COPTS = -O
7d3cd975 109+COPTS = $(OPT_FLAGS)
d26023db 110 COMPILE_FLAGS = -I../include
9113567e 111 LIBS =
112
113-INSTALL= install -o root -g daemon
d26023db 114+INSTALL= install
9113567e 115
116 CFLAGS = $(COPTS) $(COMPILE_FLAGS)
117
7d3cd975
AM
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)
865a1093
JB
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.101821 seconds and 4 git commands to generate.