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