source: projects/specs/trunk/p/ppp/ppp-vl.spec @ 3694

Revision 3694, 9.8 KB checked in by daisuke, 13 years ago (diff)

ppp:

  • remove include/linux/if_pppol2tp.h to build pppoe plugin
  • update License tag
Line 
1Summary: The PPP (Point-to-Point Protocol) daemon.
2Summary(ja): PPP (Point-to-Point Protocol) デーモン
3Name: ppp
4Version: 2.4.5
5Release: 3%{?_dist_release}
6License: BSD and LGPLv2+ and GPLv2+ and Public Domain
7Group: System Environment/Daemons
8URL: http://www.samba.org/ppp
9
10Source0: ftp://ftp.samba.org/pub/ppp/ppp-%{version}.tar.gz
11Source1: ppp-2.4.4-pamd.conf
12Patch0: ppp-2.4.3-make.patch
13Patch1: ppp-2.3.6-sample.patch
14Patch2: ppp-2.4.2-libutil.patch
15Patch3: ppp-2.4.1-varargs.patch
16Patch4: ppp-2.4.4-lib64.patch
17Patch7: ppp-2.4.2-pie.patch
18Patch8: ppp-2.4.3-fix.patch
19Patch9: ppp-2.4.3-fix64.patch
20Patch11: ppp-2.4.2-change_resolv_conf.patch
21Patch13: ppp-2.4.4-no_strip.patch
22Patch17: ppp-2.4.2-pppoatm-make.patch
23Patch19: ppp-2.4.3-local.patch
24Patch20: ppp-2.4.3-ipv6-accept-remote.patch
25Patch21: ppp-2.4.3-usepeerdns-var_run_ppp_resolv.conf.patch
26Patch22: ppp-2.4.4-cbcp.patch
27Patch23: ppp-2.4.2-dontwriteetc.patch
28Patch24: ppp-2.4.4-fd_leak.patch
29Patch25: ppp-2.4.5-var_run_ppp.patch
30
31BuildRoot: %{_tmppath}/%{name}-%{version}-root
32BuildRequires: libpcap >= 0.8.3, pam-devel
33#Requires: glibc >= 2.0.6, /etc/pam.d/system-auth
34Requires: glibc >= 2.0.6, pam >= 1.0
35
36Vendor: Project Vine
37Distribution: Vine Linux
38Packager: daisuke
39
40%description
41The ppp package contains the PPP (Point-to-Point Protocol) daemon and
42documentation for PPP support.  The PPP protocol provides a method for
43transmitting datagrams over serial point-to-point links. PPP is
44usually used to dial in to an ISP (Internet Service Provider) or other
45organization over a modem and phone line.
46
47%description -l ja
48ppp パッケージには PPP (Point-to-Point Protocol) デーモンと
49PPP を使う為のドキュメントが収められています.PPP プロトコルを
50使うとシリアルな point-to-point 接続上でデータグラムを転送する
51事が出来ます.この PPP は一般的には ISP (Internet Service Provider) 等に
52モデムを介した電話回線で接続する際に使われます.
53
54
55%package devel
56Summary: Headers for ppp plugin development
57SUmmary(ja): ppp プラグイン開発用ヘッダファイル
58Group: Development/Libraries
59
60%description devel
61This package contains the header files for building plugins for ppp.
62
63%description -l ja devel
64このパッケージには ppp のプラグインを開発するためのヘッダファイルが
65含まれています。
66
67%prep
68%setup  -q
69
70%patch0 -p1 -b .make
71%patch1 -p1 -b .sample
72%patch2 -p1 -b .libutil
73%patch3 -p1 -b .varargs
74%patch4 -p1 -b .lib64
75%patch7 -p1 -b .pie
76%patch8 -p1 -b .fix
77%patch9 -p1 -b .fix64
78%patch11 -p1 -b .change_resolv_conf
79%patch13 -p1 -b .no_strip
80%patch17 -p1 -b .atm-make
81%patch19 -p1 -b .local
82%patch20 -p1 -b .ipv6cp
83%patch21 -p1 -b .usepeerdns-var_run_ppp_resolv
84%patch22 -p1 -b .cbcp
85%patch23 -p1 -b .dontwriteetc
86%patch24 -p1 -b .fd_leak
87%patch25 -p1 -b .var_run_ppp
88
89rm -f scripts/*.local
90rm -f scripts/*.change_resolv_conf
91rm -f scripts/*.usepeerdns-var_run_ppp_resolv
92rm -f scripts/*.ppp_resolv
93
94find . -type f -name "*.sample" | xargs rm -f
95
96rm -f include/linux/if_pppol2tp.h
97
98%build
99RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -Wall"
100./configure
101make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
102
103
104%install
105[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
106export INSTROOT=$RPM_BUILD_ROOT
107%ifarch x86_64
108make install install-etcppp LIBDIR=$RPM_BUILD_ROOT%{_libdir}/pppd/%{version}
109%else
110make install install-etcppp
111%endif
112
113## it shouldn't be SUID root be default
114#chmod 755 %{buildroot}/usr/sbin/pppd
115
116chmod go+r scripts/*
117mkdir -p %{buildroot}/etc/pam.d
118install -m 644 %{SOURCE1} %{buildroot}/etc/pam.d/ppp
119
120mkdir -p %{buildroot}/etc/ppp
121cp etc.ppp/* %{buildroot}/etc/ppp
122chmod 600 %{buildroot}/etc/ppp/*-secrets
123
124mkdir -p %{buildroot}/etc/radiusclient
125cp pppd/plugins/radius/etc/* %{buildroot}/etc/radiusclient
126mv %{buildroot}/etc/radiusclient/radiusclient.conf %{buildroot}/etc/
127perl -pi -e 's|/usr/local||g' %{buildroot}/etc/radiusclient/radiusclient.conf
128
129find scripts -type f | xargs chmod 644
130
131%clean
132rm -rf %{buildroot}
133
134
135%files
136%defattr(-,root,root)
137%{_sbindir}/*
138%{_libdir}/pppd
139%{_mandir}/man8/chat.8*
140%{_mandir}/man8/pppd.8*
141%{_mandir}/man8/pppdump.8*
142%{_mandir}/man8/pppstats.8*
143%{_mandir}/man8/pppd-radattr.8*
144%{_mandir}/man8/pppd-radius.8*
145%dir /etc/ppp
146%config(noreplace) /etc/ppp/*
147%config(noreplace) /etc/pam.d/ppp
148%config(noreplace) /etc/radiusclient/*
149%config(noreplace) /etc/radiusclient.conf
150%doc README README.linux scripts sample
151
152%files devel
153%defattr(-,root,root)
154%{_includedir}/pppd
155%doc PLUGINS
156
157
158%changelog
159* Mon Apr 25 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-3
160- remove include/linux/if_pppol2tp.h to build pppoe plugin
161- update License tag
162
163* Fri Apr 08 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-2
164- rebuilt with new toolchain.
165
166* Mon Mar 08 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-1
167- new upstream release.
168- replaced all patches with Fedora's.
169- replaced 'BuildPreReq:' with 'BuildRequires:'.
170
171* Sun Aug 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-4
172- update pam.d/ppp to fix pam-1.0
173
174* Thu Aug 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.4-3
175- added option LIBDIR at makeinstall for x86_64
176
177* Thu Jul 31 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-2
178- add -devel subpackage to develop ppp plugins
179
180* Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
181- update Source1 for pam-1.0.1
182- import several patches from Fedora 2.4.4-7
183
184* Sat Jul  7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-0vl1
185- new upstream release
186- rebuilt with new toolchain and environment
187- added URL (also URL of Source0)
188
189* Fri Nov 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.3-0vl2
190- use License: instead of Copyright:
191
192* Mon Jan 24 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.3-0vl1
193- new upstream release.
194- replace patch0.
195
196* Wed Aug 11 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.2-0vl0
197- new upstream release.
198- remove patch 2-4 (no longer needed).
199
200* Sat Mar 15 2003 <ryo1@bc.wakwak.com> 2.4.1-0vl2
201- rebuild with new toolchains
202
203* Sun Jun 10 2001 <sagami@vinelinux.org>
204- 2.4.1-0vl1: update to 2.4.1
205
206* Thu Jan 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
207- 2.4.0-2vl1
208- based on 2.4.0-2 from Rawhide
209- added Japanese summary and description
210- Requires: /etc/pam.d/system-auth -> pam >= 0.72
211  (for better compatibility with apt for rpm)
212
213* Fri Dec  1 2000 Nalin Dahyabhai <nalin@redhat.com>
214- rebuild in new environment
215
216* Thu Nov  9 2000 Nalin Dahyabhai <nalin@redhat.com>
217- update to 2.4.0
218
219* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
220- automatic rebuild
221
222* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
223- move man pages to %{_mandir}
224
225* Thu Jun  1 2000 Nalin Dahyabhai <nalin@redhat.com>
226- change perms using defattr
227- modify PAM setup to use system-auth
228
229* Sun Mar 26 2000 Florian La Roche <Florian.La Roche@redhat.com>
230- change to root:root perms
231
232* Mon Mar 06 2000 Nalin Dahyabhai <nalin@redhat.com>
233- reaper bugs verified as fixed
234- check pam_open_session result code (bug #9966)
235
236* Mon Feb 07 2000 Nalin Dahyabhai <nalin@redhat.com>
237- take a shot at the wrong reaper bugs (#8153, #5290)
238
239* Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
240- free ride through the build system (release 2)
241
242* Tue Jan 18 2000 Nalin Dahyabhai <nalin@redhat.com>
243- Update to 2.3.11
244
245* Sat Nov 06 1999 Michael K. Johnson <johnsonm@redhat.com>
246- Better fix for both problems
247
248* Fri Nov 05 1999 Michael K. Johnson <johnsonm@redhat.com>
249- fix for double-dial problem
250- fix for requiring a controlling terminal problem
251
252* Sun Sep 19 1999 Preston Brown <pbrown@redhat.com>
253- 2.3.10 bugfix release
254
255* Fri Aug 13 1999 Michael K. Johnson <johnsonm@redhat.com>
256- New version 2.3.9 required for kernel 2.3.13 and will be required
257  for new initscripts.  auth patch removed; 2.3.9 does the same thing
258  more readably than the previous patch.
259
260* Thu Jun 24 1999 Cristian Gafton <gafton@redhat.com>
261- add pppdump
262
263* Fri Apr 09 1999 Cristian Gafton <gafton@redhat.com>
264- force pppd use the glibc's logwtmp instead of implementing its own
265
266* Wed Apr 01 1999 Preston Brown <pbrown@redhat.com>
267- version 2.3.7 bugfix release
268
269* Tue Mar 23 1999 Cristian Gafton <gafton@redhat.com>
270- version 2.3.6
271
272* Mon Mar 22 1999 Michael Johnson <johnsonm@redhat.com>
273- auth patch
274
275* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
276- auto rebuild in the new build environment (release 3)
277
278* Thu Jan 07 1999 Cristian Gafton <gafton@redhat.com>
279- build for glibc 2.1
280
281* Fri Jun  5 1998 Jeff Johnson <jbj@redhat.com>
282- updated to 2.3.5.
283
284* Tue May 19 1998 Prospector System <bugs@redhat.com>
285- translations modified for de
286
287* Fri May  8 1998 Jakub Jelinek <jj@ultra.linux.cz>
288- make it run with kernels 2.1.100 and above.
289
290* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
291- translations modified for de, fr, tr
292
293* Wed Mar 18 1998 Cristian Gafton <gafton@redhat.com>
294- requires glibc 2.0.6 or later
295
296* Wed Mar 18 1998 Michael K. Johnson <johnsonm@redhat.com>
297- updated PAM patch to not turn off wtmp/utmp/syslog logging.
298
299* Wed Jan  7 1998 Cristian Gafton <gafton@redhat.com>
300- added the /etc/pam.d config file
301- updated PAM patch to include session support
302
303* Tue Jan  6 1998 Cristian Gafton <gafton@redhat.com>
304- updated to ppp-2.3.3, build against glibc-2.0.6 - previous patches not
305  required any more.
306- added buildroot
307- fixed the PAM support, which was really, completely broken and against any
308  standards (session support is still not here... :-( )
309- we build against running kernel and pray that it will work
310- added a samples patch; updated glibc patch
311
312* Thu Dec 18 1997 Erik Troan <ewt@redhat.com>
313- added a patch to use our own route.h, rather then glibc's (which has
314  alignment problems on Alpha's) -- I only applied this patch on the Alpha,
315  though it should be safe everywhere
316
317* Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
318- turned off the execute bit for scripts in /usr/doc
319
320* Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
321- built against glibc
322
323* Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
324- Integrated new patch from David Mosberger
325- Improved description
326
Note: See TracBrowser for help on using the repository browser.