-diff -urN ppp-2.4.1.org/pppd/plugins/Makefile.linux ppp-2.4.1/pppd/plugins/Makefile.linux
---- ppp-2.4.1.org/pppd/plugins/Makefile.linux Sun Jun 10 23:07:47 2001
-+++ ppp-2.4.1/pppd/plugins/Makefile.linux Sun Jun 10 23:09:13 2001
+diff -Nur ppp-2.4.1.orig/pppd/plugins/Makefile.linux ppp-2.4.1/pppd/plugins/Makefile.linux
+--- ppp-2.4.1.orig/pppd/plugins/Makefile.linux Tue Jun 12 16:58:26 2001
++++ ppp-2.4.1/pppd/plugins/Makefile.linux Tue Jun 12 16:57:49 2001
@@ -1,6 +1,6 @@
CC = gcc
-CFLAGS = -g -O2 -I.. -I../../include -fPIC
INSTALL = install
all: minconn.so passprompt.so pppoe/pppoe.so
-@@ -22,4 +22,4 @@
- $(INSTALL) $? $(LIBDIR)/$$version
+@@ -18,8 +18,8 @@
+
+ install: minconn.so passprompt.so pppoe/pppoe.so
+ version=`awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h`; \
+- $(INSTALL) -d $(LIBDIR)/$$version; \
+- $(INSTALL) $? $(LIBDIR)/$$version
++ $(INSTALL) -d $(DESTDIR)$(LIBDIR)/$$version; \
++ $(INSTALL) $? $(DESTDIR)$(LIBDIR)/$$version
clean:
-- rm -rf *.o *.so
-\ No newline at end of file
-+ rm -rf *.o *.so
-diff -urN ppp-2.4.1.org/pppd/plugins/pppoe/Makefile.linux ppp-2.4.1/pppd/plugins/pppoe/Makefile.linux
---- ppp-2.4.1.org/pppd/plugins/pppoe/Makefile.linux Sun Jun 10 23:07:47 2001
-+++ ppp-2.4.1/pppd/plugins/pppoe/Makefile.linux Sun Jun 10 23:08:06 2001
+ rm -rf *.o *.so
+diff -Nur ppp-2.4.1.orig/pppd/plugins/pppoe/Makefile.linux ppp-2.4.1/pppd/plugins/pppoe/Makefile.linux
+--- ppp-2.4.1.orig/pppd/plugins/pppoe/Makefile.linux Tue Jun 12 16:56:19 2001
++++ ppp-2.4.1/pppd/plugins/pppoe/Makefile.linux Tue Jun 12 16:57:49 2001
@@ -1,6 +1,6 @@
CC = gcc
-CFLAGS = -g -I.. -I../.. -I../../../include -D_linux_=1 -fPIC
---- ppp-2.4.0/pppd/plugins/Makefile.linux~ Sun Jan 14 17:44:33 2001
-+++ ppp-2.4.0/pppd/plugins/Makefile.linux Sun Jan 14 17:47:04 2001
+--- ppp-2.4.1/pppd/plugins/Makefile.linux.orig Wed Mar 7 05:21:18 2001
++++ ppp-2.4.1/pppd/plugins/Makefile.linux Tue Jun 12 16:24:56 2001
@@ -1,5 +1,5 @@
CC = gcc
--CFLAGS = -g -O2 -I.. -I../../include
-+CFLAGS += -I.. -I../../include
+-CFLAGS = -g -O2 -I.. -I../../include -fPIC
++CFLAGS += -I.. -I../../include -fPIC
LDFLAGS = -shared
+ INSTALL = install
- all: minconn.so passprompt.so
+@@ -15,5 +15,5 @@
+
+ install: minconn.so passprompt.so
+ version=`awk -F '"' '/VERSION/ { print $$2; }' ../patchlevel.h`; \
+- $(INSTALL) -d $(LIBDIR)/$$version; \
+- $(INSTALL) $? $(LIBDIR)/$$version
+\ No newline at end of file
++ $(INSTALL) -d $(DESTDIR)$(LIBDIR)/$$version; \
++ $(INSTALL) $? $(DESTDIR)$(LIBDIR)/$$version
#
# _without_pppoe - without PPPoE support (which requires kernel 2.4)
+# _without_cbcp - without CBCP (MS CallBack Configuration Protocol)
Summary: ppp daemon package for linux 2.2.11 and greater
Summary(de): ppp-Dämonpaket für Linux 2.2.11 und höher
Summary(fr): Paquetage du démon ppp pour Linux 2.2.11 et supérieur
%build
%configure
%{__make} OPT_FLAGS="%{rpmcflags}" \
- %{!?no_cbcp:CBCP=1}
+ %{!?_without_cbcp:CBCP=1}
%install
rm -rf $RPM_BUILD_ROOT