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