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