]> git.pld-linux.org Git - packages/ppp.git/blame - ppp.spec
- updated to 2.4.6
[packages/ppp.git] / ppp.spec
CommitLineData
a5ff8619 1# TODO:
853c48a4 2# - check mppc patch
143250a8 3# - check if %{_libdir}/pppd/%{version} path is needed, if not drop the symlink
a5ff8619 4
865a1093 5# Conditional build:
11154cc6 6%bcond_without pppoatm # without PPPoATM plugin (which requires kernel 2.4 and atm-devel)
4166dd42 7%bcond_without srp # without SRP support
865a1093 8#
e3509462 9Summary: ppp daemon package for Linux
f4287ca3
ER
10Summary(de.UTF-8): ppp-Dämonpaket für Linux
11Summary(es.UTF-8): Servidor ppp para Linux
12Summary(fr.UTF-8): Paquetage du démon ppp pour Linux
13Summary(pl.UTF-8): Demon PPP dla Linuksa
14Summary(pt_BR.UTF-8): Servidor ppp para Linux
15Summary(ru.UTF-8): Демон ppp
16Summary(tr.UTF-8): PPP sunucu süreci
624ed3e4 17Summary(zh_CN.UTF-8): PPP 配置和管理软件包
4db00ee0 18Name: ppp
624ed3e4
JB
19Version: 2.4.6
20Release: 1
f2081694 21Epoch: 3
b2b4ae38 22License: distributable
4db00ee0 23Group: Networking/Daemons
ac029005 24Source0: ftp://ftp.samba.org/pub/ppp/%{name}-%{version}.tar.gz
624ed3e4 25# Source0-md5: 3434d2cc9327167a0723aaaa8670083b
ba116af8 26Source1: %{name}.pamd
27Source2: %{name}.pon
28Source3: %{name}.poff
6efcd9a5 29Source4: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
3aad2db1 30# Source4-md5: 3801b59005bef8f52856300fe3167a64
c0d4b0ea 31Source5: %{name}.logrotate
ba116af8 32Patch0: %{name}-make.patch
33Patch1: %{name}-expect.patch
34Patch2: %{name}-debian_scripts.patch
35Patch3: %{name}-static.patch
85480b72 36Patch4: %{name}-pidfile-owner.patch
85480b72 37Patch6: %{name}-rp-pppoe-macaddr.patch
e4c28727 38#Patch7: http://public.planetmirror.com/pub/mppe/pppd-2.4.2-chapms-strip-domain.patch.gz
a26ca0df 39Patch7: pppd-2.4.2-chapms-strip-domain.patch
853c48a4
JB
40Patch8: %{name}-openssl.patch
41Patch9: %{name}-lib64.patch
42#Patch10: http://mppe-mppc.alphacron.de/%{name}-2.4.3-mppe-mppc-1.1.patch.gz
43Patch10: %{name}-2.4.3-mppe-mppc-1.1.patch
624ed3e4
JB
44Patch11: %{name}-ifpppstatsreq.patch
45URL: http://ppp.samba.org/
57c15ed7 46BuildRequires: libpcap-devel >= 2:0.8.1
11154cc6 47%{?with_pppoatm:BuildRequires: linux-atm-devel}
8135f733
JB
48# <linux/if_pppol2tp.h>
49BuildRequires: linux-libc-headers >= 7:2.6.23
85480b72 50BuildRequires: openssl-devel
865a1093 51BuildRequires: pam-devel
e7bc066b 52%{?with_srp:BuildRequires: srp-devel}
fef78b52 53Requires: pam >= 0.77.3
c408934c 54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4db00ee0 55
56%description
ba3a0799 57This is the daemon and documentation for PPP support. It requires a
58kernel greater than 2.2.11 which is built with PPP support. The
59default kernels include PPP support as a module. This version supports
60IPv6, too.
4db00ee0 61
18268467
JR
62%description -l de.UTF-8
63Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
64einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
65Standard-Kernel schließen PPP-Support als Modul ein. (IPv6)
4db00ee0 66
18268467
JR
67%description -l es.UTF-8
68Este es el servidor y la documentación para soporte PPP. Requiere un
ce16a93e 69kernel superior al 2.0.
6841a666 70
18268467
JR
71%description -l fr.UTF-8
72Ceci est le démon et la documentation pour le support PPP. Cela
73réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
4db00ee0 74
18268467
JR
75%description -l pl.UTF-8
76Pakiet zawiera demona i dokumentację umożliwiającą korzystanie z
77protokołu PPP. Wymaga jądra 2.2.11 - lub późniejszego - z wkompilowaną
78obsługą protokołu PPP. Standardowe jądro z dystrybucji zawiera
79wsparcie dla PPP skompilowane jako moduł. (IPv6)
4db00ee0 80
18268467
JR
81%description -l pt_BR.UTF-8
82Este é o servidor e a documentação para suporte PPP. Ele requer um
ce16a93e 83kernel superior ao 2.0.
6841a666 84
18268467
JR
85%description -l ru.UTF-8
86Демон, конфигурационные файлы и документация для поддержки PPP.
08a53c32 87
18268467
JR
88%description -l tr.UTF-8
89Bu paket PPP desteği için belgeler ve sunucu sürecini içerir. Çekirdek
90sürümünun 2.2.11'dan daha yüksek olmasını gerektirir.
c2953db8 91
78075ff1 92%package plugin-devel
77283dff 93Summary: Stuff needed to build plugins for pppd
f4287ca3 94Summary(pl.UTF-8): Rzeczy potrzebne do budowania wtyczek dla pppd
77283dff 95Group: Development/Libraries
d7717923
AM
96# doesn't require base but enforce new version
97Conflicts: %{name} < %{epoch}:%{version}-%{release}
2d03a163 98
78075ff1
AM
99%description plugin-devel
100Development files needed to build plugins for pppd.
2d03a163 101
18268467
JR
102%description plugin-devel -l pl.UTF-8
103Pliki nagłówkowe potrzebne do budowania wtyczek dla pppd.
dc476cd3 104
11154cc6
JB
105%package plugin-pppoatm
106Summary: PPPoATM plugin for pppd
f4287ca3 107Summary(pl.UTF-8): Wtyczka PPPoATM dla pppd
11154cc6 108Group: Libraries
ca183a6a 109Requires: %{name} = %{epoch}:%{version}-%{release}
11154cc6
JB
110
111%description plugin-pppoatm
112PPPoATM plugin for pppd.
113
18268467 114%description plugin-pppoatm -l pl.UTF-8
11154cc6
JB
115Wtyczka PPPoATM dla pppd.
116
4db00ee0 117%prep
126fc315 118%setup -q
2f21f904 119%patch0 -p1
bad576a9
TP
120%patch1 -p1
121%patch2 -p1
fb173f90 122%patch3 -p1
85480b72 123%patch4 -p1
2f21f904 124%patch6 -p1
78075ff1 125%patch7 -p1
853c48a4 126%patch8 -p1
26838581 127%if "%{_lib}" == "lib64"
853c48a4 128%patch9 -p1
26838581 129%endif
853c48a4 130%patch10 -p1
8a86b013 131%patch11 -p1
8135f733
JB
132
133# use headers from llh instead of older supplied by ppp, incompatible with current llh
134%{__rm} include/linux/*.h
bb6814a7 135
4db00ee0 136%build
865a1093 137# note: not autoconf configure
e79ebdfc 138%configure
78075ff1 139%{__make} \
85480b72 140 %{?with_pppoatm:HAVE_LIBATM=y} \
624ed3e4 141 USE_PAM=y \
e7bc066b 142 %{?with_srp:USE_SRP=y} \
6936cab9
AM
143 OPT_FLAGS="%{rpmcflags} %{rpmcppflags}" \
144 COPTS="%{rpmcflags} %{rpmcppflags}" \
8ba85ac4 145 OPTLDFLAGS="%{rpmldflags}" \
85480b72 146 CC="%{__cc}"
a071cae0 147
4db00ee0 148%install
d215e5d7 149rm -rf $RPM_BUILD_ROOT
8135f733
JB
150install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/ppp/peers,/var/log} \
151 $RPM_BUILD_ROOT/etc/{pam.d,logrotate.d}
0ae5beea 152
455c41e8 153%{__make} install \
85480b72 154 %{?with_pppoatm:HAVE_LIBATM=y} \
e7bc066b 155 %{?with_srp:USE_SRP=y} \
cac21c0b 156 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
fb173f90 157
143250a8
ER
158install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
159install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
160install -p debian/plog $RPM_BUILD_ROOT%{_bindir}
ba3a0799 161
143250a8
ER
162cp -p etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
163cp -p debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
164cp -p debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
165cp -p debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
dc476cd3
JB
166
167bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
143250a8 168%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.ppp-non-english-man-pages
4db00ee0 169
143250a8 170cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
93f66fc3 171> $RPM_BUILD_ROOT/var/log/ppp.log
fe6a39d3 172
d215e5d7 173rm -f scripts/README
4db00ee0 174
143250a8 175cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
4db00ee0 176
11154cc6 177cd $RPM_BUILD_ROOT%{_libdir}/pppd
143250a8
ER
178v=$(echo %{version}*)
179mv $v plugins
180# not sure which path used, keep the old path for compat
181ln -s plugins $v
4bb5ff70 182
4db00ee0 183%clean
d215e5d7 184rm -rf $RPM_BUILD_ROOT
4db00ee0 185
e6827622
ER
186%pretrans
187# %{version} used to be directory
188if [ -d %{_libdir}/pppd/%{version} -a ! -L %{_libdir}/pppd/%{version} ]; then
189 set -e
190 rm -f %{_libdir}/pppd/plugins
191 mv %{_libdir}/pppd/{%{version},plugins}
192 ln -sn plugins %{_libdir}/pppd/%{version}
193fi
194
4db00ee0 195%files
196%defattr(644,root,root,755)
07eafa5e 197%doc README.linux debian/README.debian scripts
78075ff1 198%doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
126fc315 199%doc README.MPPE README.pppoe README.cbcp README.pwfd
8135f733
JB
200%attr(755,root,root) %{_bindir}/plog
201%attr(755,root,root) %{_bindir}/poff
202%attr(755,root,root) %{_bindir}/pon
007ca0ae 203%attr(755,root,root) %{_sbindir}/chat
8135f733
JB
204%attr(755,root,root) %{_sbindir}/pppd
205%attr(755,root,root) %{_sbindir}/pppdump
206%attr(755,root,root) %{_sbindir}/pppoe-discovery
207%attr(755,root,root) %{_sbindir}/pppstats
e7bc066b 208%{?with_srp:%attr(755,root,root) %{_sbindir}/srp-entry}
2d03a163 209%dir %{_libdir}/pppd
143250a8
ER
210%dir %{_libdir}/pppd/plugins
211%attr(755,root,root) %{_libdir}/pppd/plugins/minconn.so
212%attr(755,root,root) %{_libdir}/pppd/plugins/openl2tp.so
213%attr(755,root,root) %{_libdir}/pppd/plugins/pppol2tp.so
214%attr(755,root,root) %{_libdir}/pppd/plugins/passprompt.so
215%attr(755,root,root) %{_libdir}/pppd/plugins/passwordfd.so
216%attr(755,root,root) %{_libdir}/pppd/plugins/rp-pppoe.so
217%attr(755,root,root) %{_libdir}/pppd/plugins/radattr.so
218%attr(755,root,root) %{_libdir}/pppd/plugins/radius.so
219%attr(755,root,root) %{_libdir}/pppd/plugins/radrealms.so
220%attr(755,root,root) %{_libdir}/pppd/plugins/winbind.so
221
222# TODO: legacy, try to drop
223%{_libdir}/pppd/%{version}
8135f733
JB
224
225%{_mandir}/man8/chat.8*
226%{_mandir}/man8/pppd.8*
227%{_mandir}/man8/pppd-radattr.8*
228%{_mandir}/man8/pppd-radius.8*
229%{_mandir}/man8/pppdump.8*
230%{_mandir}/man8/pppstats.8*
2886b11a 231%lang(fr) %{_mandir}/fr/man8/*
232%lang(ja) %{_mandir}/ja/man8/*
233%lang(ko) %{_mandir}/ko/man8/*
234%lang(pl) %{_mandir}/pl/man8/*
0ae5beea 235
8135f733
JB
236%attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/chap-secrets
237%attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/pap-secrets
238%config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options
239%config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options.ttyXX
240%dir %{_sysconfdir}/ppp/peers
126fc315
JB
241%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ppp
242%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ppp
fe6a39d3 243%attr(640,root,root) %ghost /var/log/ppp.log
00375357 244
78075ff1
AM
245%files plugin-devel
246%defattr(644,root,root,755)
8135f733 247%{_includedir}/pppd
11154cc6
JB
248
249%if %{with pppoatm}
250%files plugin-pppoatm
251%defattr(644,root,root,755)
143250a8 252%attr(755,root,root) %{_libdir}/pppd/plugins/pppoatm.so
11154cc6 253%endif
This page took 0.999298 seconds and 4 git commands to generate.