3 %bcond_without pppoatm # without PPPoATM plugin (which requires kernel 2.4 and atm-devel)
6 Summary: ppp daemon package for Linux
7 Summary(de): ppp-Dämonpaket für Linux
8 Summary(es): Servidor ppp para Linux
9 Summary(fr): Paquetage du démon ppp pour Linux
10 Summary(pl): Demon PPP dla Linuksa
11 Summary(pt_BR): Servidor ppp para Linux
12 Summary(ru): äÅÍÏÎ ppp
13 Summary(tr): PPP sunucu süreci
14 Summary(zh_CN): PPP ÅäÖú͹ÜÀíÈí¼þ°ü.
19 License: distributable
20 Group: Networking/Daemons
21 Source0: cvs://pserver.samba.org/ppp/%{name}-%{version}-%{snap}.tar.bz2
22 # Source0-md5: cd1aeae556f6c2d61cb99d219eb32eac
26 Source4: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
27 # Source4-md5: 3801b59005bef8f52856300fe3167a64
28 Source5: %{name}.logrotate
29 Patch0: %{name}-make.patch
30 Patch1: %{name}-expect.patch
31 Patch2: %{name}-debian_scripts.patch
32 Patch3: %{name}-static.patch
33 #http://www.sfgoth.com/~mitch/linux/atm/pppoatm/pppoatm-pppd-vs-2.4.0b2+240600.diff.gz
34 Patch4: %{name}-pppoatm.patch
35 Patch5: %{name}-pidfile-owner.patch
36 Patch6: %{name}-rp-pppoe-update.patch
37 Patch7: %{name}-rp-pppoe-macaddr.patch
38 Patch8: %{name}-radius.patch
39 URL: http://www.samba.org/ppp/
40 BuildRequires: autoconf
41 BuildRequires: automake
42 BuildRequires: libtool
43 %{?with_pppoatm:BuildRequires: linux-atm-devel}
44 BuildRequires: pam-devel
45 Requires: pam >= 0.77.3
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 This is the daemon and documentation for PPP support. It requires a
50 kernel greater than 2.2.11 which is built with PPP support. The
51 default kernels include PPP support as a module. This version supports
55 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
56 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
57 Standard- Red-Hat-Kernel schließen PPP-Support als Modul ein. (IPv6)
60 Este es el servidor y la documentación para soporte PPP. Requiere un
61 kernel superior al 2.0. Los kernels padrón de la Conectiva incluyen
62 soporte PPP como módulo.
65 Ceci est le démon et la documentation pour le support PPP. Cela
66 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
67 Le noyau par défaut de Red Hat contient le support PPP sous forme de
71 Pakiet zawiera demona i dokumentacjê umo¿liwiaj±c± korzystanie z
72 protoko³u PPP. Wymaga j±dra 2.2.11 - lub pó¼niejszego - z wkompilowan±
73 obs³ug± protoko³u PPP. Standardowe j±dro z dystrybucji zawiera
74 wsparcie dla PPP skompilowane jako modu³. (IPv6)
77 Este é o servidor e a documentação para suporte PPP. Ele requer um
78 kernel superior ao 2.0. Os kernels-padrão da Conectiva incluem suporte
82 äÅÍÏÎ, ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÐÏÄÄÅÒÖËÉ PPP.
85 Bu paket PPP desteði için belgeler ve sunucu sürecini içerir. Çekirdek
86 sürümünun 2.2.11'dan daha yüksek olmasýný gerektirir. Öntanýmlý Red
87 Hat çekirdeði PPP desteðini bir modül olarak içerir. (IPv6)
90 Summary: Stuff needed to build plugins for pppd
91 Summary(pl): Rzeczy potrzebne do budowania wtyczek dla pppd
92 Group: Development/Libraries
93 Requires: %{name} = %{epoch}:%{version}
95 %description plugin-devel
96 Development files needed to build plugins for pppd.
98 %description plugin-devel -l pl
99 Pliki nag³ówkowe potrzebne do budowania wtyczek dla pppd.
101 %package plugin-pppoatm
102 Summary: PPPoATM plugin for pppd
103 Summary(pl): Wtyczka PPPoATM dla pppd
105 Requires: %{name} = %{epoch}:%{version}
107 %description plugin-pppoatm
108 PPPoATM plugin for pppd.
110 %description plugin-pppoatm -l pl
111 Wtyczka PPPoATM dla pppd.
114 %setup -q -n %{name}-%{version}-%{snap}
119 %{?with_pppoatm:%patch4 -p1}
126 cd pppd/plugins/radius/radiusclient
127 # cannot use system radiusclient 0.3.2 - this version is modified
128 # (contains some extensions which made it incompatible with original)
129 # lt must be rebuilt (old libtool didn't use PIC on ppc-linux)
137 # note: not autoconf configure
140 OPT_FLAGS="%{rpmcflags}" \
144 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,8}} \
146 $RPM_BUILD_ROOT{%{_sysconfdir}/{pam.d,ppp/peers},/var/log} \
147 $RPM_BUILD_ROOT/etc/logrotate.d
150 DESTDIR=$RPM_BUILD_ROOT
152 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
153 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
154 install debian/plog $RPM_BUILD_ROOT%{_bindir}
156 install etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
157 install debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
158 install debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
159 install debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
161 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
163 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
164 > $RPM_BUILD_ROOT/var/log/ppp.log
168 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
170 cd $RPM_BUILD_ROOT%{_libdir}/pppd
171 ln -s %{version}* plugins
174 rm -rf $RPM_BUILD_ROOT
176 %post -p /sbin/ldconfig
177 %postun -p /sbin/ldconfig
180 %defattr(644,root,root,755)
181 %doc README.linux debian/README.debian scripts
182 %doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
183 %doc README.MPPE README.pppoe README.cbcp README.pwfd TODO
184 %attr(755,root,root) %{_bindir}/*
185 %attr(755,root,root) %{_sbindir}/chat
186 %attr(755,root,root) %{_sbindir}/ppp*
188 %dir %{_libdir}/pppd/*.*
189 %{_libdir}/pppd/plugins
190 %attr(755,root,root) %{_libdir}/pppd/*.*/minconn.so
191 %attr(755,root,root) %{_libdir}/pppd/*.*/pass*.so
192 %attr(755,root,root) %{_libdir}/pppd/*.*/rp-pppoe.so
193 %attr(755,root,root) %{_libdir}/pppd/*.*/rad*.so
196 %lang(fr) %{_mandir}/fr/man8/*
197 %lang(ja) %{_mandir}/ja/man8/*
198 %lang(ko) %{_mandir}/ko/man8/*
199 %lang(pl) %{_mandir}/pl/man8/*
201 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/*-secrets
202 %attr(644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/options*
203 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/ppp
204 %attr(640,root,root) /etc/logrotate.d/ppp
205 %attr(640,root,root) %ghost /var/log/ppp.log
207 %dir %{_sysconfdir}/ppp/peers
210 %defattr(644,root,root,755)
211 %dir %{_includedir}/pppd
212 %{_includedir}/pppd/pppd.h
213 %{_includedir}/pppd/patchlevel.h
216 %files plugin-pppoatm
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/pppd/*.*/pppoatm.so