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