]> git.pld-linux.org Git - packages/ppp.git/blob - ppp.spec
- updated mppe-mppc patch, removed obsolete radius,rechallenge patches
[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):    ppp-Dämonpaket für Linux
10 Summary(es):    Servidor ppp para Linux
11 Summary(fr):    Paquetage du démon ppp pour Linux
12 Summary(pl):    Demon PPP dla Linuksa
13 Summary(pt_BR): Servidor ppp para Linux
14 Summary(ru):    äÅÍÏΠppp
15 Summary(tr):    PPP sunucu süreci
16 Summary(zh_CN): PPP ÅäÖú͹ÜÀíÈí¼þ°ü.
17 Name:           ppp
18 Version:        2.4.4
19 Release:        0.1
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:  183800762e266132218b204dfb428d29
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 Patch5:         %{name}-rp-pppoe-update.patch
37 Patch6:         %{name}-rp-pppoe-macaddr.patch
38 #Patch7:                http://public.planetmirror.com/pub/mppe/pppd-2.4.2-chapms-strip-domain.patch.gz
39 Patch7:         pppd-2.4.2-chapms-strip-domain.patch
40 Patch8:         %{name}-openssl.patch
41 Patch9:         %{name}-lib64.patch
42 #Patch10:       http://mppe-mppc.alphacron.de/%{name}-2.4.3-mppe-mppc-1.1.patch.gz
43 Patch10:        %{name}-2.4.3-mppe-mppc-1.1.patch
44 URL:            http://www.samba.org/ppp/
45 BuildRequires:  autoconf
46 BuildRequires:  automake
47 BuildRequires:  libpcap-devel >= 2:0.8.1
48 BuildRequires:  libtool
49 %{?with_pppoatm:BuildRequires:  linux-atm-devel}
50 BuildRequires:  openssl-devel
51 BuildRequires:  pam-devel
52 %{?with_srp:BuildRequires:      srp-devel}
53 Requires:       pam >= 0.77.3
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %description
57 This is the daemon and documentation for PPP support. It requires a
58 kernel greater than 2.2.11 which is built with PPP support. The
59 default kernels include PPP support as a module. This version supports
60 IPv6, too.
61
62 %description -l de
63 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
64 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
65 Standard-Kernel schließen PPP-Support als Modul ein. (IPv6)
66
67 %description -l es
68 Este es el servidor y la documentación para soporte PPP. Requiere un
69 kernel superior al 2.0.
70
71 %description -l fr
72 Ceci est le démon et la documentation pour le support PPP. Cela
73 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
74
75 %description -l pl
76 Pakiet zawiera demona i dokumentacjê umo¿liwiaj±c± korzystanie z
77 protoko³u PPP. Wymaga j±dra 2.2.11 - lub pó¼niejszego - z wkompilowan±
78 obs³ug± protoko³u PPP. Standardowe j±dro z dystrybucji zawiera
79 wsparcie dla PPP skompilowane jako modu³. (IPv6)
80
81 %description -l pt_BR
82 Este é o servidor e a documentação para suporte PPP. Ele requer um
83 kernel superior ao 2.0.
84
85 %description -l ru
86 äÅÍÏÎ, ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÐÏÄÄÅÒÖËÉ PPP.
87
88 %description -l tr
89 Bu paket PPP desteði için belgeler ve sunucu sürecini içerir. Çekirdek
90 sürümünun 2.2.11'dan daha yüksek olmasýný gerektirir.
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 %if "%{_lib}" == "lib64"
129 %patch9 -p1
130 %endif
131 %patch10 -p1
132
133 %build
134 # note: not autoconf configure
135 %configure
136 %{__make} \
137         %{?with_pppoatm:HAVE_LIBATM=y} \
138         %{?with_srp:USE_SRP=y} \
139         OPT_FLAGS="%{rpmcflags}" \
140         COPTS="%{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         %{?with_pppoatm:HAVE_LIBATM=y} \
151         %{?with_srp:USE_SRP=y} \
152         DESTDIR=$RPM_BUILD_ROOT%{_prefix}
153
154 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
155 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
156 install debian/plog $RPM_BUILD_ROOT%{_bindir}
157
158 install etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
159 install debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
160 install debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
161 install debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
162
163 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
164
165 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
166 > $RPM_BUILD_ROOT/var/log/ppp.log
167
168 rm -f scripts/README
169
170 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
171
172 cd $RPM_BUILD_ROOT%{_libdir}/pppd
173 ln -s %{version}* plugins
174
175 %clean
176 rm -rf $RPM_BUILD_ROOT
177
178 %post   -p /sbin/ldconfig
179 %postun -p /sbin/ldconfig
180
181 %files
182 %defattr(644,root,root,755)
183 %doc README.linux debian/README.debian scripts
184 %doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
185 %doc README.MPPE README.pppoe README.cbcp README.pwfd
186 %attr(755,root,root) %{_bindir}/*
187 %attr(755,root,root) %{_sbindir}/chat
188 %attr(755,root,root) %{_sbindir}/ppp*
189 %{?with_srp:%attr(755,root,root) %{_sbindir}/srp-entry}
190 %dir %{_libdir}/pppd
191 %dir %{_libdir}/pppd/*.*
192 %{_libdir}/pppd/plugins
193 %attr(755,root,root) %{_libdir}/pppd/*.*/minconn.so
194 %attr(755,root,root) %{_libdir}/pppd/*.*/pass*.so
195 %attr(755,root,root) %{_libdir}/pppd/*.*/rp-pppoe.so
196 %attr(755,root,root) %{_libdir}/pppd/*.*/rad*.so
197 %attr(755,root,root) %{_libdir}/pppd/*.*/winbind.so
198
199 %{_mandir}/man8/*
200 %lang(fr) %{_mandir}/fr/man8/*
201 %lang(ja) %{_mandir}/ja/man8/*
202 %lang(ko) %{_mandir}/ko/man8/*
203 %lang(pl) %{_mandir}/pl/man8/*
204
205 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/*-secrets
206 %attr(644,root,root) %config(missingok,noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ppp/options*
207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ppp
208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ppp
209 %attr(640,root,root) %ghost /var/log/ppp.log
210
211 %dir %{_sysconfdir}/ppp/peers
212
213 %files plugin-devel
214 %defattr(644,root,root,755)
215 %dir %{_includedir}/pppd
216 %{_includedir}/pppd/pppd.h
217 %{_includedir}/pppd/patchlevel.h
218
219 %if %{with pppoatm}
220 %files plugin-pppoatm
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/pppd/*.*/pppoatm.so
223 %endif
This page took 0.041853 seconds and 4 git commands to generate.