ppp-vl.spec 8.7 KB

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