5 %bcond_without pppoatm # without PPPoATM plugin (which requires kernel 2.4 and atm-devel)
6 %bcond_without srp # without SRP support
8 Summary: ppp daemon package for Linux
9 Summary(de): ppp-Dämonpaket für Linux
10 Summary(es): Servidor ppp para Linux
11 Summary(fr): Paquetage du démon ppp pour Linux
12 Summary(pl): Demon PPP dla Linuksa
13 Summary(pt_BR): Servidor ppp para Linux
14 Summary(ru): äÅÍÏÎ ppp
15 Summary(tr): PPP sunucu süreci
16 Summary(zh_CN): PPP ÅäÖú͹ÜÀíÈí¼þ°ü.
21 License: distributable
22 Group: Networking/Daemons
23 Source0: ftp://ftp.samba.org/pub/ppp/%{name}-%{version}.tar.gz
24 # Source0-md5: 183800762e266132218b204dfb428d29
28 Source4: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
29 # Source4-md5: 3801b59005bef8f52856300fe3167a64
30 Source5: %{name}.logrotate
31 Patch0: %{name}-make.patch
32 Patch1: %{name}-expect.patch
33 Patch2: %{name}-debian_scripts.patch
34 Patch3: %{name}-static.patch
35 Patch4: %{name}-pidfile-owner.patch
36 Patch5: %{name}-rp-pppoe-update.patch
37 Patch6: %{name}-rp-pppoe-macaddr.patch
38 #Patch7: http://public.planetmirror.com/pub/mppe/pppd-2.4.2-chapms-strip-domain.patch.gz
39 Patch7: pppd-2.4.2-chapms-strip-domain.patch
40 Patch8: %{name}-openssl.patch
41 Patch9: %{name}-lib64.patch
42 #Patch10: http://mppe-mppc.alphacron.de/%{name}-2.4.3-mppe-mppc-1.1.patch.gz
43 Patch10: %{name}-2.4.3-mppe-mppc-1.1.patch
44 URL: http://www.samba.org/ppp/
45 BuildRequires: autoconf
46 BuildRequires: automake
47 BuildRequires: libpcap-devel >= 2:0.8.1
48 BuildRequires: libtool
49 %{?with_pppoatm:BuildRequires: linux-atm-devel}
50 BuildRequires: openssl-devel
51 BuildRequires: pam-devel
52 %{?with_srp:BuildRequires: srp-devel}
53 Requires: pam >= 0.77.3
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 This is the daemon and documentation for PPP support. It requires a
58 kernel greater than 2.2.11 which is built with PPP support. The
59 default kernels include PPP support as a module. This version supports
63 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
64 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
65 Standard-Kernel schließen PPP-Support als Modul ein. (IPv6)
68 Este es el servidor y la documentación para soporte PPP. Requiere un
69 kernel superior al 2.0.
72 Ceci est le démon et la documentation pour le support PPP. Cela
73 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
76 Pakiet zawiera demona i dokumentacjê umo¿liwiaj±c± korzystanie z
77 protoko³u PPP. Wymaga j±dra 2.2.11 - lub pó¼niejszego - z wkompilowan±
78 obs³ug± protoko³u PPP. Standardowe j±dro z dystrybucji zawiera
79 wsparcie dla PPP skompilowane jako modu³. (IPv6)
82 Este é o servidor e a documentação para suporte PPP. Ele requer um
83 kernel superior ao 2.0.
86 äÅÍÏÎ, ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÐÏÄÄÅÒÖËÉ PPP.
89 Bu paket PPP desteði için belgeler ve sunucu sürecini içerir. Çekirdek
90 sürümünun 2.2.11'dan daha yüksek olmasýný gerektirir.
93 Summary: Stuff needed to build plugins for pppd
94 Summary(pl): Rzeczy potrzebne do budowania wtyczek dla pppd
95 Group: Development/Libraries
96 # doesn't require base but enforce new version
97 Conflicts: %{name} < %{epoch}:%{version}-%{release}
99 %description plugin-devel
100 Development files needed to build plugins for pppd.
102 %description plugin-devel -l pl
103 Pliki nag³ówkowe potrzebne do budowania wtyczek dla pppd.
105 %package plugin-pppoatm
106 Summary: PPPoATM plugin for pppd
107 Summary(pl): Wtyczka PPPoATM dla pppd
109 Requires: %{name} = %{epoch}:%{version}-%{release}
111 %description plugin-pppoatm
112 PPPoATM plugin for pppd.
114 %description plugin-pppoatm -l pl
115 Wtyczka PPPoATM dla pppd.
128 %if "%{_lib}" == "lib64"
134 # note: not autoconf configure
137 %{?with_pppoatm:HAVE_LIBATM=y} \
138 %{?with_srp:USE_SRP=y} \
139 OPT_FLAGS="%{rpmcflags}" \
140 COPTS="%{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 %{?with_pppoatm:HAVE_LIBATM=y} \
151 %{?with_srp:USE_SRP=y} \
152 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
154 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
155 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
156 install debian/plog $RPM_BUILD_ROOT%{_bindir}
158 install etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
159 install debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
160 install debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
161 install debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
163 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
165 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
166 > $RPM_BUILD_ROOT/var/log/ppp.log
170 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
172 cd $RPM_BUILD_ROOT%{_libdir}/pppd
173 ln -s %{version}* plugins
176 rm -rf $RPM_BUILD_ROOT
178 %post -p /sbin/ldconfig
179 %postun -p /sbin/ldconfig
182 %defattr(644,root,root,755)
183 %doc README.linux debian/README.debian scripts
184 %doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
185 %doc README.MPPE README.pppoe README.cbcp README.pwfd
186 %attr(755,root,root) %{_bindir}/*
187 %attr(755,root,root) %{_sbindir}/chat
188 %attr(755,root,root) %{_sbindir}/ppp*
189 %{?with_srp:%attr(755,root,root) %{_sbindir}/srp-entry}
191 %dir %{_libdir}/pppd/*.*
192 %{_libdir}/pppd/plugins
193 %attr(755,root,root) %{_libdir}/pppd/*.*/minconn.so
194 %attr(755,root,root) %{_libdir}/pppd/*.*/pass*.so
195 %attr(755,root,root) %{_libdir}/pppd/*.*/rp-pppoe.so
196 %attr(755,root,root) %{_libdir}/pppd/*.*/rad*.so
197 %attr(755,root,root) %{_libdir}/pppd/*.*/winbind.so
200 %lang(fr) %{_mandir}/fr/man8/*
201 %lang(ja) %{_mandir}/ja/man8/*
202 %lang(ko) %{_mandir}/ko/man8/*
203 %lang(pl) %{_mandir}/pl/man8/*
205 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/*-secrets
206 %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options*
207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ppp
208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ppp
209 %attr(640,root,root) %ghost /var/log/ppp.log
211 %dir %{_sysconfdir}/ppp/peers
214 %defattr(644,root,root,755)
215 %dir %{_includedir}/pppd
216 %{_includedir}/pppd/pppd.h
217 %{_includedir}/pppd/patchlevel.h
220 %files plugin-pppoatm
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/pppd/*.*/pppoatm.so