ppp-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. 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. mv %{buildroot}/usr/var %{buildroot}/
  96. ## it shouldn't be SUID root be default
  97. #chmod 755 %{buildroot}/usr/sbin/pppd
  98. chmod go+r scripts/*
  99. mkdir -p %{buildroot}/etc/pam.d
  100. install -m 644 %{SOURCE1} %{buildroot}/etc/pam.d/ppp
  101. mkdir -p %{buildroot}/etc/ppp
  102. cp etc.ppp/* %{buildroot}/etc/ppp
  103. chmod 600 %{buildroot}/etc/ppp/*-secrets
  104. mkdir -p %{buildroot}/etc/radiusclient
  105. cp pppd/plugins/radius/etc/* %{buildroot}/etc/radiusclient
  106. mv %{buildroot}/etc/radiusclient/radiusclient.conf %{buildroot}/etc/
  107. perl -pi -e 's|/usr/local||g' %{buildroot}/etc/radiusclient/radiusclient.conf
  108. find scripts -type f | xargs chmod 644
  109. %clean
  110. rm -rf %{buildroot}
  111. %files
  112. %defattr(-,root,root)
  113. %{_sbindir}/*
  114. %{_libdir}/pppd
  115. %{_mandir}/man8/chat.8*
  116. %{_mandir}/man8/pppd.8*
  117. %{_mandir}/man8/pppdump.8*
  118. %{_mandir}/man8/pppstats.8*
  119. %{_mandir}/man8/pppd-radattr.8*
  120. %{_mandir}/man8/pppd-radius.8*
  121. %dir /etc/ppp
  122. %config(noreplace) /etc/ppp/*
  123. %config(noreplace) /etc/pam.d/ppp
  124. %config(noreplace) /etc/radiusclient/*
  125. %config(noreplace) /etc/radiusclient.conf
  126. %doc README README.linux scripts sample
  127. %dir %{_localstatedir}/run/ppp
  128. %dir %{_localstatedir}/log/ppp
  129. %files devel
  130. %defattr(-,root,root)
  131. %{_includedir}/pppd
  132. %doc PLUGINS
  133. %changelog
  134. * Tue Sep 06 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-4
  135. - added /var/run/ppp to %%files. (BTS:1215)
  136. - added /var/log/ppp to %%files.
  137. * Mon Apr 25 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-3
  138. - remove include/linux/if_pppol2tp.h to build pppoe plugin
  139. - update License tag
  140. * Fri Apr 08 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-2
  141. - rebuilt with new toolchain.
  142. * Mon Mar 08 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-1
  143. - new upstream release.
  144. - replaced all patches with Fedora's.
  145. - replaced 'BuildPreReq:' with 'BuildRequires:'.
  146. * Sun Aug 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-4
  147. - update pam.d/ppp to fix pam-1.0
  148. * Thu Aug 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.4-3
  149. - added option LIBDIR at makeinstall for x86_64
  150. * Thu Jul 31 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-2
  151. - add -devel subpackage to develop ppp plugins
  152. * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
  153. - update Source1 for pam-1.0.1
  154. - import several patches from Fedora 2.4.4-7
  155. * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-0vl1
  156. - new upstream release
  157. - rebuilt with new toolchain and environment
  158. - added URL (also URL of Source0)
  159. * Fri Nov 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.3-0vl2
  160. - use License: instead of Copyright:
  161. * Mon Jan 24 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.3-0vl1
  162. - new upstream release.
  163. - replace patch0.
  164. * Wed Aug 11 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.2-0vl0
  165. - new upstream release.
  166. - remove patch 2-4 (no longer needed).
  167. * Sat Mar 15 2003 <ryo1@bc.wakwak.com> 2.4.1-0vl2
  168. - rebuild with new toolchains
  169. * Sun Jun 10 2001 <sagami@vinelinux.org>
  170. - 2.4.1-0vl1: update to 2.4.1
  171. * Thu Jan 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  172. - 2.4.0-2vl1
  173. - based on 2.4.0-2 from Rawhide
  174. - added Japanese summary and description
  175. - Requires: /etc/pam.d/system-auth -> pam >= 0.72
  176. (for better compatibility with apt for rpm)
  177. * Fri Dec 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  178. - rebuild in new environment
  179. * Thu Nov 9 2000 Nalin Dahyabhai <nalin@redhat.com>
  180. - update to 2.4.0
  181. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  182. - automatic rebuild
  183. * Mon Jun 5 2000 Nalin Dahyabhai <nalin@redhat.com>
  184. - move man pages to %{_mandir}
  185. * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  186. - change perms using defattr
  187. - modify PAM setup to use system-auth
  188. * Sun Mar 26 2000 Florian La Roche <Florian.La Roche@redhat.com>
  189. - change to root:root perms
  190. * Mon Mar 06 2000 Nalin Dahyabhai <nalin@redhat.com>
  191. - reaper bugs verified as fixed
  192. - check pam_open_session result code (bug #9966)
  193. * Mon Feb 07 2000 Nalin Dahyabhai <nalin@redhat.com>
  194. - take a shot at the wrong reaper bugs (#8153, #5290)
  195. * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
  196. - free ride through the build system (release 2)
  197. * Tue Jan 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  198. - Update to 2.3.11
  199. * Sat Nov 06 1999 Michael K. Johnson <johnsonm@redhat.com>
  200. - Better fix for both problems
  201. * Fri Nov 05 1999 Michael K. Johnson <johnsonm@redhat.com>
  202. - fix for double-dial problem
  203. - fix for requiring a controlling terminal problem
  204. * Sun Sep 19 1999 Preston Brown <pbrown@redhat.com>
  205. - 2.3.10 bugfix release
  206. * Fri Aug 13 1999 Michael K. Johnson <johnsonm@redhat.com>
  207. - New version 2.3.9 required for kernel 2.3.13 and will be required
  208. for new initscripts. auth patch removed; 2.3.9 does the same thing
  209. more readably than the previous patch.
  210. * Thu Jun 24 1999 Cristian Gafton <gafton@redhat.com>
  211. - add pppdump
  212. * Fri Apr 09 1999 Cristian Gafton <gafton@redhat.com>
  213. - force pppd use the glibc's logwtmp instead of implementing its own
  214. * Wed Apr 01 1999 Preston Brown <pbrown@redhat.com>
  215. - version 2.3.7 bugfix release
  216. * Tue Mar 23 1999 Cristian Gafton <gafton@redhat.com>
  217. - version 2.3.6
  218. * Mon Mar 22 1999 Michael Johnson <johnsonm@redhat.com>
  219. - auth patch
  220. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  221. - auto rebuild in the new build environment (release 3)
  222. * Thu Jan 07 1999 Cristian Gafton <gafton@redhat.com>
  223. - build for glibc 2.1
  224. * Fri Jun 5 1998 Jeff Johnson <jbj@redhat.com>
  225. - updated to 2.3.5.
  226. * Tue May 19 1998 Prospector System <bugs@redhat.com>
  227. - translations modified for de
  228. * Fri May 8 1998 Jakub Jelinek <jj@ultra.linux.cz>
  229. - make it run with kernels 2.1.100 and above.
  230. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  231. - translations modified for de, fr, tr
  232. * Wed Mar 18 1998 Cristian Gafton <gafton@redhat.com>
  233. - requires glibc 2.0.6 or later
  234. * Wed Mar 18 1998 Michael K. Johnson <johnsonm@redhat.com>
  235. - updated PAM patch to not turn off wtmp/utmp/syslog logging.
  236. * Wed Jan 7 1998 Cristian Gafton <gafton@redhat.com>
  237. - added the /etc/pam.d config file
  238. - updated PAM patch to include session support
  239. * Tue Jan 6 1998 Cristian Gafton <gafton@redhat.com>
  240. - updated to ppp-2.3.3, build against glibc-2.0.6 - previous patches not
  241. required any more.
  242. - added buildroot
  243. - fixed the PAM support, which was really, completely broken and against any
  244. standards (session support is still not here... :-( )
  245. - we build against running kernel and pray that it will work
  246. - added a samples patch; updated glibc patch
  247. * Thu Dec 18 1997 Erik Troan <ewt@redhat.com>
  248. - added a patch to use our own route.h, rather then glibc's (which has
  249. alignment problems on Alpha's) -- I only applied this patch on the Alpha,
  250. though it should be safe everywhere
  251. * Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
  252. - turned off the execute bit for scripts in /usr/doc
  253. * Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
  254. - built against glibc
  255. * Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
  256. - Integrated new patch from David Mosberger
  257. - Improved description