3 # - check if %{_libdir}/pppd/%{version} path is needed, if not drop the symlink
6 %bcond_without mppc # without MPPC support
7 %bcond_without pppoatm # without PPPoATM plugin (which requires kernel 2.4 and atm-devel)
8 %bcond_with srp # without SRP support
10 Summary: ppp daemon package for Linux
11 Summary(de.UTF-8): ppp-Dämonpaket für Linux
12 Summary(es.UTF-8): Servidor ppp para Linux
13 Summary(fr.UTF-8): Paquetage du démon ppp pour Linux
14 Summary(pl.UTF-8): Demon PPP dla Linuksa
15 Summary(pt_BR.UTF-8): Servidor ppp para Linux
16 Summary(ru.UTF-8): Демон ppp
17 Summary(tr.UTF-8): PPP sunucu süreci
18 Summary(zh_CN.UTF-8): PPP 配置和管理软件包
23 License: distributable
24 Group: Networking/Daemons
25 Source0: ftp://ftp.samba.org/pub/ppp/%{name}-%{version}.tar.gz
26 # Source0-md5: 78818f40e6d33a1d1de68a1551f6595a
30 Source4: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
31 # Source4-md5: 3801b59005bef8f52856300fe3167a64
32 Source5: %{name}.logrotate
33 Patch0: %{name}-make.patch
34 Patch1: %{name}-expect.patch
35 Patch2: %{name}-debian_scripts.patch
36 Patch3: %{name}-static.patch
37 Patch4: %{name}-pidfile-owner.patch
38 Patch6: %{name}-rp-pppoe-macaddr.patch
39 #Patch7: http://public.planetmirror.com/pub/mppe/pppd-2.4.2-chapms-strip-domain.patch.gz
40 Patch7: pppd-2.4.2-chapms-strip-domain.patch
41 Patch8: %{name}-openssl.patch
42 Patch9: %{name}-lib64.patch
43 #Patch10: http://mppe-mppc.alphacron.de/%{name}-2.4.3-mppe-mppc-1.1.patch.gz
44 Patch10: %{name}-2.4.3-mppe-mppc-1.1.patch
45 Patch11: %{name}-ifpppstatsreq.patch
46 Patch12: %{name}-libx32.patch
47 Patch13: ppp-2.4.7-DES-openssl.patch
48 Patch14: ppp-linux48.patch
49 URL: http://ppp.samba.org/
50 BuildRequires: libpcap-devel >= 2:0.8.1
51 %{?with_pppoatm:BuildRequires: linux-atm-devel}
52 # <linux/if_pppol2tp.h>
53 BuildRequires: linux-libc-headers >= 7:2.6.23
54 BuildRequires: openssl-devel
55 BuildRequires: pam-devel
56 %{?with_srp:BuildRequires: srp-devel}
57 Requires: pam >= 0.77.3
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 This is the daemon and documentation for PPP support. It requires a
62 kernel greater than 2.2.11 which is built with PPP support. The
63 default kernels include PPP support as a module. This version supports
66 %description -l de.UTF-8
67 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
68 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
69 Standard-Kernel schließen PPP-Support als Modul ein. (IPv6)
71 %description -l es.UTF-8
72 Este es el servidor y la documentación para soporte PPP. Requiere un
73 kernel superior al 2.0.
75 %description -l fr.UTF-8
76 Ceci est le démon et la documentation pour le support PPP. Cela
77 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
79 %description -l pl.UTF-8
80 Pakiet zawiera demona i dokumentację umożliwiającą korzystanie z
81 protokołu PPP. Wymaga jądra 2.2.11 - lub późniejszego - z wkompilowaną
82 obsługą protokołu PPP. Standardowe jądro z dystrybucji zawiera
83 wsparcie dla PPP skompilowane jako moduł. (IPv6)
85 %description -l pt_BR.UTF-8
86 Este é o servidor e a documentação para suporte PPP. Ele requer um
87 kernel superior ao 2.0.
89 %description -l ru.UTF-8
90 Демон, конфигурационные файлы и документация для поддержки PPP.
92 %description -l tr.UTF-8
93 Bu paket PPP desteği için belgeler ve sunucu sürecini içerir. Çekirdek
94 sürümünun 2.2.11'dan daha yüksek olmasını gerektirir.
97 Summary: Stuff needed to build plugins for pppd
98 Summary(pl.UTF-8): Rzeczy potrzebne do budowania wtyczek dla pppd
99 Group: Development/Libraries
100 # doesn't require base but enforce new version
101 Conflicts: %{name} < %{epoch}:%{version}-%{release}
103 %description plugin-devel
104 Development files needed to build plugins for pppd.
106 %description plugin-devel -l pl.UTF-8
107 Pliki nagłówkowe potrzebne do budowania wtyczek dla pppd.
109 %package plugin-pppoatm
110 Summary: PPPoATM plugin for pppd
111 Summary(pl.UTF-8): Wtyczka PPPoATM dla pppd
113 Requires: %{name} = %{epoch}:%{version}-%{release}
115 %description plugin-pppoatm
116 PPPoATM plugin for pppd.
118 %description plugin-pppoatm -l pl.UTF-8
119 Wtyczka PPPoATM dla pppd.
131 %if "%{_lib}" == "lib64"
138 %if "%{_lib}" == "libx32"
144 # use headers from llh instead of older supplied by ppp, incompatible with current llh
145 %{__rm} include/linux/*.h
148 # note: not autoconf configure
151 %{?with_pppoatm:HAVE_LIBATM=y} \
153 %{?with_srp:USE_SRP=y} \
154 OPT_FLAGS="%{rpmcflags} %{rpmcppflags}" \
155 COPTS="%{rpmcflags} %{rpmcppflags}" \
156 OPTLDFLAGS="%{rpmldflags}" \
160 rm -rf $RPM_BUILD_ROOT
161 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/ppp/peers,/var/log} \
162 $RPM_BUILD_ROOT/etc/{pam.d,logrotate.d}
165 %{?with_pppoatm:HAVE_LIBATM=y} \
166 %{?with_srp:USE_SRP=y} \
167 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
169 install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
170 install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
171 install -p debian/plog $RPM_BUILD_ROOT%{_bindir}
173 cp -p etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
174 cp -p debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
175 cp -p debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
176 cp -p debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
178 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
179 %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.ppp-non-english-man-pages
181 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
182 > $RPM_BUILD_ROOT/var/log/ppp.log
186 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
188 cd $RPM_BUILD_ROOT%{_libdir}/pppd
189 v=$(echo %{version}*)
191 # not sure which path used, keep the old path for compat
195 rm -rf $RPM_BUILD_ROOT
198 # %{version} used to be directory
199 if [ -d %{_libdir}/pppd/%{version} -a ! -L %{_libdir}/pppd/%{version} ]; then
201 rm -f %{_libdir}/pppd/plugins
202 mv %{_libdir}/pppd/{%{version},plugins}
203 ln -sn plugins %{_libdir}/pppd/%{version}
207 %defattr(644,root,root,755)
208 %doc README.linux debian/README.debian scripts
209 %doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
210 %doc README.MPPE README.pppoe README.cbcp README.pwfd
211 %attr(755,root,root) %{_bindir}/plog
212 %attr(755,root,root) %{_bindir}/poff
213 %attr(755,root,root) %{_bindir}/pon
214 %attr(755,root,root) %{_sbindir}/chat
215 %attr(755,root,root) %{_sbindir}/pppd
216 %attr(755,root,root) %{_sbindir}/pppdump
217 %attr(755,root,root) %{_sbindir}/pppoe-discovery
218 %attr(755,root,root) %{_sbindir}/pppstats
219 %{?with_srp:%attr(755,root,root) %{_sbindir}/srp-entry}
221 %dir %{_libdir}/pppd/plugins
222 %attr(755,root,root) %{_libdir}/pppd/plugins/minconn.so
223 %attr(755,root,root) %{_libdir}/pppd/plugins/openl2tp.so
224 %attr(755,root,root) %{_libdir}/pppd/plugins/pppol2tp.so
225 %attr(755,root,root) %{_libdir}/pppd/plugins/passprompt.so
226 %attr(755,root,root) %{_libdir}/pppd/plugins/passwordfd.so
227 %attr(755,root,root) %{_libdir}/pppd/plugins/rp-pppoe.so
228 %attr(755,root,root) %{_libdir}/pppd/plugins/radattr.so
229 %attr(755,root,root) %{_libdir}/pppd/plugins/radius.so
230 %attr(755,root,root) %{_libdir}/pppd/plugins/radrealms.so
231 %attr(755,root,root) %{_libdir}/pppd/plugins/winbind.so
233 # TODO: legacy, try to drop
234 %{_libdir}/pppd/%{version}
236 %{_mandir}/man8/chat.8*
237 %{_mandir}/man8/pppd.8*
238 %{_mandir}/man8/pppd-radattr.8*
239 %{_mandir}/man8/pppd-radius.8*
240 %{_mandir}/man8/pppdump.8*
241 %{_mandir}/man8/pppstats.8*
242 %lang(fr) %{_mandir}/fr/man8/*
243 %lang(ja) %{_mandir}/ja/man8/*
244 %lang(ko) %{_mandir}/ko/man8/*
245 %lang(pl) %{_mandir}/pl/man8/*
247 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/chap-secrets
248 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/pap-secrets
249 %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options
250 %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options.ttyXX
251 %dir %{_sysconfdir}/ppp/peers
252 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ppp
253 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ppp
254 %attr(640,root,root) %ghost /var/log/ppp.log
257 %defattr(644,root,root,755)
261 %files plugin-pppoatm
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/pppd/plugins/pppoatm.so