ppp-vl.spec 9.8 KB

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