]> git.pld-linux.org Git - packages/ppp.git/blob - ppp.spec
- added llh patch, use headers from llh (now builds with current llh; needs 2.6.23...
[packages/ppp.git] / ppp.spec
1 # TODO:
2 # - check mppc patch
3
4 # Conditional build:
5 %bcond_without  pppoatm # without PPPoATM plugin (which requires kernel 2.4 and atm-devel)
6 %bcond_without  srp     # without SRP support
7 #
8 Summary:        ppp daemon package for Linux
9 Summary(de.UTF-8):      ppp-Dämonpaket für Linux
10 Summary(es.UTF-8):      Servidor ppp para Linux
11 Summary(fr.UTF-8):      Paquetage du démon ppp pour Linux
12 Summary(pl.UTF-8):      Demon PPP dla Linuksa
13 Summary(pt_BR.UTF-8):   Servidor ppp para Linux
14 Summary(ru.UTF-8):      Демон ppp
15 Summary(tr.UTF-8):      PPP sunucu süreci
16 Summary(zh_CN.UTF-8):   PPP 配置和管理软件包.
17 Name:           ppp
18 Version:        2.4.5
19 Release:        2
20 Epoch:          3
21 License:        distributable
22 Group:          Networking/Daemons
23 Source0:        ftp://ftp.samba.org/pub/ppp/%{name}-%{version}.tar.gz
24 # Source0-md5:  4621bc56167b6953ec4071043fe0ec57
25 Source1:        %{name}.pamd
26 Source2:        %{name}.pon
27 Source3:        %{name}.poff
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 Patch6:         %{name}-rp-pppoe-macaddr.patch
37 #Patch7:                http://public.planetmirror.com/pub/mppe/pppd-2.4.2-chapms-strip-domain.patch.gz
38 Patch7:         pppd-2.4.2-chapms-strip-domain.patch
39 Patch8:         %{name}-openssl.patch
40 Patch9:         %{name}-lib64.patch
41 #Patch10:       http://mppe-mppc.alphacron.de/%{name}-2.4.3-mppe-mppc-1.1.patch.gz
42 Patch10:        %{name}-2.4.3-mppe-mppc-1.1.patch
43 Patch11:        %{name}-llc.patch
44 Patch12:        %{name}-llh.patch
45 URL:            http://www.samba.org/ppp/
46 BuildRequires:  autoconf
47 BuildRequires:  automake
48 BuildRequires:  libpcap-devel >= 2:0.8.1
49 BuildRequires:  libtool
50 %{?with_pppoatm:BuildRequires:  linux-atm-devel}
51 # <linux/if_pppol2tp.h>
52 BuildRequires:  linux-libc-headers >= 7:2.6.23
53 BuildRequires:  openssl-devel
54 BuildRequires:  pam-devel
55 %{?with_srp:BuildRequires:      srp-devel}
56 Requires:       pam >= 0.77.3
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %description
60 This is the daemon and documentation for PPP support. It requires a
61 kernel greater than 2.2.11 which is built with PPP support. The
62 default kernels include PPP support as a module. This version supports
63 IPv6, too.
64
65 %description -l de.UTF-8
66 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
67 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
68 Standard-Kernel schließen PPP-Support als Modul ein. (IPv6)
69
70 %description -l es.UTF-8
71 Este es el servidor y la documentación para soporte PPP. Requiere un
72 kernel superior al 2.0.
73
74 %description -l fr.UTF-8
75 Ceci est le démon et la documentation pour le support PPP. Cela
76 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
77
78 %description -l pl.UTF-8
79 Pakiet zawiera demona i dokumentację umożliwiającą korzystanie z
80 protokołu PPP. Wymaga jądra 2.2.11 - lub późniejszego - z wkompilowaną
81 obsługą protokołu PPP. Standardowe jądro z dystrybucji zawiera
82 wsparcie dla PPP skompilowane jako moduł. (IPv6)
83
84 %description -l pt_BR.UTF-8
85 Este é o servidor e a documentação para suporte PPP. Ele requer um
86 kernel superior ao 2.0.
87
88 %description -l ru.UTF-8
89 Демон, конфигурационные файлы и документация для поддержки PPP.
90
91 %description -l tr.UTF-8
92 Bu paket PPP desteği için belgeler ve sunucu sürecini içerir. Çekirdek
93 sürümünun 2.2.11'dan daha yüksek olmasını gerektirir.
94
95 %package plugin-devel
96 Summary:        Stuff needed to build plugins for pppd
97 Summary(pl.UTF-8):      Rzeczy potrzebne do budowania wtyczek dla pppd
98 Group:          Development/Libraries
99 # doesn't require base but enforce new version
100 Conflicts:      %{name} < %{epoch}:%{version}-%{release}
101
102 %description plugin-devel
103 Development files needed to build plugins for pppd.
104
105 %description plugin-devel -l pl.UTF-8
106 Pliki nagłówkowe potrzebne do budowania wtyczek dla pppd.
107
108 %package plugin-pppoatm
109 Summary:        PPPoATM plugin for pppd
110 Summary(pl.UTF-8):      Wtyczka PPPoATM dla pppd
111 Group:          Libraries
112 Requires:       %{name} = %{epoch}:%{version}-%{release}
113
114 %description plugin-pppoatm
115 PPPoATM plugin for pppd.
116
117 %description plugin-pppoatm -l pl.UTF-8
118 Wtyczka PPPoATM dla pppd.
119
120 %prep
121 %setup -q
122 %patch0 -p1
123 %patch1 -p1
124 %patch2 -p1
125 %patch3 -p1
126 %patch4 -p1
127 %patch6 -p1
128 %patch7 -p1
129 %patch8 -p1
130 %if "%{_lib}" == "lib64"
131 %patch9 -p1
132 %endif
133 %patch10 -p1
134 %patch11 -p1
135 %patch12 -p1
136
137 # use headers from llh instead of older supplied by ppp, incompatible with current llh
138 %{__rm} include/linux/*.h
139
140 %build
141 # note: not autoconf configure
142 %configure
143 %{__make} \
144         %{?with_pppoatm:HAVE_LIBATM=y} \
145         %{?with_srp:USE_SRP=y} \
146         OPT_FLAGS="%{rpmcflags} %{rpmcppflags}" \
147         COPTS="%{rpmcflags} %{rpmcppflags}" \
148         OPTLDFLAGS="%{rpmldflags}" \
149         CC="%{__cc}"
150
151 %install
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/ppp/peers,/var/log} \
154         $RPM_BUILD_ROOT/etc/{pam.d,logrotate.d}
155
156 %{__make} install \
157         %{?with_pppoatm:HAVE_LIBATM=y} \
158         %{?with_srp:USE_SRP=y} \
159         DESTDIR=$RPM_BUILD_ROOT%{_prefix}
160
161 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
162 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
163 install debian/plog $RPM_BUILD_ROOT%{_bindir}
164
165 install etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
166 install debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
167 install debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
168 install debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
169
170 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
171
172 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
173 > $RPM_BUILD_ROOT/var/log/ppp.log
174
175 rm -f scripts/README
176
177 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
178
179 cd $RPM_BUILD_ROOT%{_libdir}/pppd
180 ln -s %{version}* plugins
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %files
186 %defattr(644,root,root,755)
187 %doc README.linux debian/README.debian scripts
188 %doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
189 %doc README.MPPE README.pppoe README.cbcp README.pwfd
190 %attr(755,root,root) %{_bindir}/plog
191 %attr(755,root,root) %{_bindir}/poff
192 %attr(755,root,root) %{_bindir}/pon
193 %attr(755,root,root) %{_sbindir}/chat
194 %attr(755,root,root) %{_sbindir}/pppd
195 %attr(755,root,root) %{_sbindir}/pppdump
196 %attr(755,root,root) %{_sbindir}/pppoe-discovery
197 %attr(755,root,root) %{_sbindir}/pppstats
198 %{?with_srp:%attr(755,root,root) %{_sbindir}/srp-entry}
199 %dir %{_libdir}/pppd
200 %dir %{_libdir}/pppd/%{version}
201 %{_libdir}/pppd/plugins
202 %attr(755,root,root) %{_libdir}/pppd/%{version}/minconn.so
203 %attr(755,root,root) %{_libdir}/pppd/%{version}/openl2tp.so
204 %attr(755,root,root) %{_libdir}/pppd/%{version}/pppol2tp.so
205 %attr(755,root,root) %{_libdir}/pppd/%{version}/passprompt.so
206 %attr(755,root,root) %{_libdir}/pppd/%{version}/passwordfd.so
207 %attr(755,root,root) %{_libdir}/pppd/%{version}/rp-pppoe.so
208 %attr(755,root,root) %{_libdir}/pppd/%{version}/radattr.so
209 %attr(755,root,root) %{_libdir}/pppd/%{version}/radius.so
210 %attr(755,root,root) %{_libdir}/pppd/%{version}/radrealms.so
211 %attr(755,root,root) %{_libdir}/pppd/%{version}/winbind.so
212
213 %{_mandir}/man8/chat.8*
214 %{_mandir}/man8/pppd.8*
215 %{_mandir}/man8/pppd-radattr.8*
216 %{_mandir}/man8/pppd-radius.8*
217 %{_mandir}/man8/pppdump.8*
218 %{_mandir}/man8/pppstats.8*
219 %lang(fr) %{_mandir}/fr/man8/*
220 %lang(ja) %{_mandir}/ja/man8/*
221 %lang(ko) %{_mandir}/ko/man8/*
222 %lang(pl) %{_mandir}/pl/man8/*
223
224 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/chap-secrets
225 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/pap-secrets
226 %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options
227 %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options.ttyXX
228 %dir %{_sysconfdir}/ppp/peers
229 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ppp
230 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ppp
231 %attr(640,root,root) %ghost /var/log/ppp.log
232
233 %files plugin-devel
234 %defattr(644,root,root,755)
235 %{_includedir}/pppd
236
237 %if %{with pppoatm}
238 %files plugin-pppoatm
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/pppd/%{version}/pppoatm.so
241 %endif
This page took 0.061036 seconds and 3 git commands to generate.