]> git.pld-linux.org Git - packages/ppp.git/blob - ppp.spec
- removed obsolete pppoatm patch, added radius,openssl patches
[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.3
16 Release:        0.1
17 Epoch:          3
18 License:        distributable
19 Group:          Networking/Daemons
20 Source0:        ftp://ftp.samba.org/pub/%{name}/%{name}-%{version}.tar.gz
21 # Source0-md5:  848f6c3cafeb6074ffeb293c3af79b7c
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 Patch4:         %{name}-pidfile-owner.patch
33 Patch5:         %{name}-rp-pppoe-update.patch
34 Patch6:         %{name}-rp-pppoe-macaddr.patch
35 Patch7:         http://public.planetmirror.com/pub/mppe/pppd-2.4.2-chapms-strip-domain.patch.gz
36 Patch8:         %{name}-radius.patch
37 Patch9:         %{name}-openssl.patch
38 Patch10:        %{name}-lib64.patch
39 URL:            http://www.samba.org/ppp/
40 BuildRequires:  autoconf
41 BuildRequires:  automake
42 BuildRequires:  libpcap-devel >= 2:0.8.1
43 BuildRequires:  libtool
44 %{?with_pppoatm:BuildRequires:  linux-atm-devel}
45 BuildRequires:  openssl-devel
46 BuildRequires:  pam-devel
47 BuildRequires:  srp-devel
48 Requires:       pam >= 0.77.3
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 This is the daemon and documentation for PPP support. It requires a
53 kernel greater than 2.2.11 which is built with PPP support. The
54 default kernels include PPP support as a module. This version supports
55 IPv6, too.
56
57 %description -l de
58 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
59 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
60 Standard- Red-Hat-Kernel schließen PPP-Support als Modul ein. (IPv6)
61
62 %description -l es
63 Este es el servidor y la documentación para soporte PPP. Requiere un
64 kernel superior al 2.0. Los kernels padrón de la Conectiva incluyen
65 soporte PPP como módulo.
66
67 %description -l fr
68 Ceci est le démon et la documentation pour le support PPP. Cela
69 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
70 Le noyau par défaut de Red Hat contient le support PPP sous forme de
71 module. (IPv6)
72
73 %description -l pl
74 Pakiet zawiera demona i dokumentacjê umo¿liwiaj±c± korzystanie z
75 protoko³u PPP. Wymaga j±dra 2.2.11 - lub pó¼niejszego - z wkompilowan±
76 obs³ug± protoko³u PPP. Standardowe j±dro z dystrybucji zawiera
77 wsparcie dla PPP skompilowane jako modu³. (IPv6)
78
79 %description -l pt_BR
80 Este é o servidor e a documentação para suporte PPP. Ele requer um
81 kernel superior ao 2.0. Os kernels-padrão da Conectiva incluem suporte
82 PPP como módulo.
83
84 %description -l ru
85 äÅÍÏÎ, ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÐÏÄÄÅÒÖËÉ PPP.
86
87 %description -l tr
88 Bu paket PPP desteði için belgeler ve sunucu sürecini içerir. Çekirdek
89 sürümünun 2.2.11'dan daha yüksek olmasýný gerektirir. Öntanýmlý Red
90 Hat çekirdeði PPP desteðini bir modül olarak içerir. (IPv6)
91
92 %package plugin-devel
93 Summary:        Stuff needed to build plugins for pppd
94 Summary(pl):    Rzeczy potrzebne do budowania wtyczek dla pppd
95 Group:          Development/Libraries
96 # doesn't require base but enforce new version
97 Conflicts:      %{name} < %{epoch}:%{version}-%{release}
98
99 %description plugin-devel
100 Development files needed to build plugins for pppd.
101
102 %description plugin-devel -l pl
103 Pliki nag³ówkowe potrzebne do budowania wtyczek dla pppd.
104
105 %package plugin-pppoatm
106 Summary:        PPPoATM plugin for pppd
107 Summary(pl):    Wtyczka PPPoATM dla pppd
108 Group:          Libraries
109 Requires:       %{name} = %{epoch}:%{version}-%{release}
110
111 %description plugin-pppoatm
112 PPPoATM plugin for pppd.
113
114 %description plugin-pppoatm -l pl
115 Wtyczka PPPoATM dla pppd.
116
117 %prep
118 %setup -q 
119 %patch0 -p1
120 %patch1 -p1
121 %patch2 -p1
122 %patch3 -p1
123 %patch4 -p1
124 %patch5 -p1
125 %patch6 -p1
126 %patch7 -p1
127 %patch8 -p1
128 %patch9 -p1
129 %if "%{_lib}" == "lib64"
130 %patch10 -p1
131 %endif
132
133 %build
134 # note: not autoconf configure
135 %configure
136 %{__make} \
137         %{?with_pppoatm:HAVE_LIBATM=y} \
138         OPT_FLAGS="%{rpmcflags}" \
139         CC="%{__cc}"
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,8}} \
144         $RPM_BUILD_ROOT{%{_sysconfdir}/{pam.d,ppp/peers},/var/log} \
145         $RPM_BUILD_ROOT/etc/logrotate.d
146
147 %{__make} install \
148         %{?with_pppoatm:HAVE_LIBATM=y} \
149         DESTDIR=$RPM_BUILD_ROOT%{_prefix}
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 
183 %attr(755,root,root) %{_bindir}/*
184 %attr(755,root,root) %{_sbindir}/chat
185 %attr(755,root,root) %{_sbindir}/ppp*
186 %attr(755,root,root) %{_sbindir}/srp-entry
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 %attr(755,root,root) %{_libdir}/pppd/*.*/winbind.so
195
196 %{_mandir}/man8/*
197 %lang(fr) %{_mandir}/fr/man8/*
198 %lang(ja) %{_mandir}/ja/man8/*
199 %lang(ko) %{_mandir}/ko/man8/*
200 %lang(pl) %{_mandir}/pl/man8/*
201
202 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/*-secrets
203 %attr(644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/options*
204 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/ppp
205 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/ppp
206 %attr(640,root,root) %ghost /var/log/ppp.log
207
208 %dir %{_sysconfdir}/ppp/peers
209
210 %files plugin-devel
211 %defattr(644,root,root,755)
212 %dir %{_includedir}/pppd
213 %{_includedir}/pppd/pppd.h
214 %{_includedir}/pppd/patchlevel.h
215
216 %if %{with pppoatm}
217 %files plugin-pppoatm
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/pppd/*.*/pppoatm.so
220 %endif
This page took 0.039239 seconds and 3 git commands to generate.