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