]> git.pld-linux.org Git - packages/ppp.git/blob - ppp.spec
- added radius patch, rebuild ac/am/lt for radiusclient (needed); release 4
[packages/ppp.git] / ppp.spec
1 #
2 # Conditional build:
3 %bcond_without  pppoatm # without PPPoATM plugin (which requires kernel 2.4 and atm-devel)
4 #
5 %define snap    20030613
6 Summary:        ppp daemon package for Linux
7 Summary(de):    ppp-Dämonpaket für Linux
8 Summary(es):    Servidor ppp para Linux
9 Summary(fr):    Paquetage du démon ppp pour Linux
10 Summary(pl):    Demon PPP dla Linuksa
11 Summary(pt_BR): Servidor ppp para Linux
12 Summary(ru):    äÅÍÏΠppp
13 Summary(tr):    PPP sunucu süreci
14 Summary(zh_CN): PPP ÅäÖú͹ÜÀíÈí¼þ°ü.
15 Name:           ppp
16 Version:        2.4.2
17 Release:        4
18 Epoch:          2
19 License:        distributable
20 Group:          Networking/Daemons
21 Source0:        cvs://pserver.samba.org/ppp/%{name}-%{version}-%{snap}.tar.bz2
22 # Source0-md5:  cd1aeae556f6c2d61cb99d219eb32eac
23 Source1:        %{name}.pamd
24 Source2:        %{name}.pon
25 Source3:        %{name}.poff
26 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
27 # Source4-md5:  3801b59005bef8f52856300fe3167a64
28 Source5:        %{name}.logrotate
29 Patch0:         %{name}-make.patch
30 Patch1:         %{name}-expect.patch
31 Patch2:         %{name}-debian_scripts.patch
32 Patch3:         %{name}-static.patch
33 #http://www.sfgoth.com/~mitch/linux/atm/pppoatm/pppoatm-pppd-vs-2.4.0b2+240600.diff.gz
34 Patch4:         %{name}-pppoatm.patch
35 Patch5:         %{name}-pidfile-owner.patch
36 Patch6:         %{name}-rp-pppoe-update.patch
37 Patch7:         %{name}-rp-pppoe-macaddr.patch
38 Patch8:         %{name}-radius.patch
39 URL:            http://www.samba.org/ppp/
40 BuildRequires:  autoconf
41 BuildRequires:  automake
42 BuildRequires:  libtool
43 %{?with_pppoatm:BuildRequires:  linux-atm-devel}
44 BuildRequires:  pam-devel
45 Requires:       pam >= 0.77.3
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 This is the daemon and documentation for PPP support. It requires a
50 kernel greater than 2.2.11 which is built with PPP support. The
51 default kernels include PPP support as a module. This version supports
52 IPv6, too.
53
54 %description -l de
55 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
56 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
57 Standard- Red-Hat-Kernel schließen PPP-Support als Modul ein. (IPv6)
58
59 %description -l es
60 Este es el servidor y la documentación para soporte PPP. Requiere un
61 kernel superior al 2.0. Los kernels padrón de la Conectiva incluyen
62 soporte PPP como módulo.
63
64 %description -l fr
65 Ceci est le démon et la documentation pour le support PPP. Cela
66 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
67 Le noyau par défaut de Red Hat contient le support PPP sous forme de
68 module. (IPv6)
69
70 %description -l pl
71 Pakiet zawiera demona i dokumentacjê umo¿liwiaj±c± korzystanie z
72 protoko³u PPP. Wymaga j±dra 2.2.11 - lub pó¼niejszego - z wkompilowan±
73 obs³ug± protoko³u PPP. Standardowe j±dro z dystrybucji zawiera
74 wsparcie dla PPP skompilowane jako modu³. (IPv6)
75
76 %description -l pt_BR
77 Este é o servidor e a documentação para suporte PPP. Ele requer um
78 kernel superior ao 2.0. Os kernels-padrão da Conectiva incluem suporte
79 PPP como módulo.
80
81 %description -l ru
82 äÅÍÏÎ, ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÐÏÄÄÅÒÖËÉ PPP.
83
84 %description -l tr
85 Bu paket PPP desteði için belgeler ve sunucu sürecini içerir. Çekirdek
86 sürümünun 2.2.11'dan daha yüksek olmasýný gerektirir. Öntanýmlý Red
87 Hat çekirdeði PPP desteðini bir modül olarak içerir. (IPv6)
88
89 %package plugin-devel
90 Summary:        Stuff needed to build plugins for pppd
91 Summary(pl):    Rzeczy potrzebne do budowania wtyczek dla pppd
92 Group:          Development/Libraries
93 Requires:       %{name} = %{epoch}:%{version}
94
95 %description plugin-devel
96 Development files needed to build plugins for pppd.
97
98 %description plugin-devel -l pl
99 Pliki nag³ówkowe potrzebne do budowania wtyczek dla pppd.
100
101 %package plugin-pppoatm
102 Summary:        PPPoATM plugin for pppd
103 Summary(pl):    Wtyczka PPPoATM dla pppd
104 Group:          Libraries
105 Requires:       %{name} = %{epoch}:%{version}
106
107 %description plugin-pppoatm
108 PPPoATM plugin for pppd.
109
110 %description plugin-pppoatm -l pl
111 Wtyczka PPPoATM dla pppd.
112
113 %prep
114 %setup -q -n %{name}-%{version}-%{snap}
115 %patch0 -p1
116 %patch1 -p1
117 %patch2 -p1
118 %patch3 -p1
119 %{?with_pppoatm:%patch4 -p1}
120 %patch5 -p1
121 %patch6 -p1
122 %patch7 -p1
123 %patch8 -p1
124
125 %build
126 cd pppd/plugins/radius/radiusclient
127 # cannot use system radiusclient 0.3.2 - this version is modified
128 # (contains some extensions which made it incompatible with original)
129 # lt must be rebuilt (old libtool didn't use PIC on ppc-linux)
130 %{__libtoolize}
131 %{__aclocal}
132 %{__autoconf}
133 %{__autoheader}
134 %{__automake}
135 %configure
136 cd ../../../..
137 # note: not autoconf configure
138 %configure
139 %{__make} \
140         OPT_FLAGS="%{rpmcflags}" \
141         CC=%{__cc}
142
143 %install
144 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,8}} \
146         $RPM_BUILD_ROOT{%{_sysconfdir}/{pam.d,ppp/peers},/var/log} \
147         $RPM_BUILD_ROOT/etc/logrotate.d
148
149 %{__make} install \
150         DESTDIR=$RPM_BUILD_ROOT
151
152 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
153 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
154 install debian/plog $RPM_BUILD_ROOT%{_bindir}
155
156 install etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
157 install debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
158 install debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
159 install debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
160
161 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
162
163 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
164 > $RPM_BUILD_ROOT/var/log/ppp.log
165
166 rm -f scripts/README
167
168 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
169
170 cd $RPM_BUILD_ROOT%{_libdir}/pppd
171 ln -s %{version}* plugins
172
173 %clean
174 rm -rf $RPM_BUILD_ROOT
175
176 %post   -p /sbin/ldconfig
177 %postun -p /sbin/ldconfig
178
179 %files
180 %defattr(644,root,root,755)
181 %doc README.linux debian/README.debian scripts
182 %doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
183 %doc README.MPPE README.pppoe README.cbcp README.pwfd TODO
184 %attr(755,root,root) %{_bindir}/*
185 %attr(755,root,root) %{_sbindir}/chat
186 %attr(755,root,root) %{_sbindir}/ppp*
187 %dir %{_libdir}/pppd
188 %dir %{_libdir}/pppd/*.*
189 %{_libdir}/pppd/plugins
190 %attr(755,root,root) %{_libdir}/pppd/*.*/minconn.so
191 %attr(755,root,root) %{_libdir}/pppd/*.*/pass*.so
192 %attr(755,root,root) %{_libdir}/pppd/*.*/rp-pppoe.so
193 %attr(755,root,root) %{_libdir}/pppd/*.*/rad*.so
194
195 %{_mandir}/man8/*
196 %lang(fr) %{_mandir}/fr/man8/*
197 %lang(ja) %{_mandir}/ja/man8/*
198 %lang(ko) %{_mandir}/ko/man8/*
199 %lang(pl) %{_mandir}/pl/man8/*
200
201 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/*-secrets
202 %attr(644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/options*
203 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/ppp
204 %attr(640,root,root) /etc/logrotate.d/ppp
205 %attr(640,root,root) %ghost /var/log/ppp.log
206
207 %dir %{_sysconfdir}/ppp/peers
208
209 %files plugin-devel
210 %defattr(644,root,root,755)
211 %dir %{_includedir}/pppd
212 %{_includedir}/pppd/pppd.h
213 %{_includedir}/pppd/patchlevel.h
214
215 %if %{with pppoatm}
216 %files plugin-pppoatm
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/pppd/*.*/pppoatm.so
219 %endif
This page took 0.052568 seconds and 3 git commands to generate.