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