ppp-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. %bcond_with ifupdown
  2. %define _tmpfilesdir %{_sysconfdir}/tmpfiles.d
  3. Summary: The PPP (Point-to-Point Protocol) daemon.
  4. Summary(ja): PPP (Point-to-Point Protocol) デーモン
  5. Name: ppp
  6. Version: 2.4.6
  7. Release: 2%{?_dist_release}
  8. License: BSD and LGPLv2+ and GPLv2+ and Public Domain
  9. Group: System Environment/Daemons
  10. URL: http://www.samba.org/ppp
  11. Source0: ftp://ftp.samba.org/pub/ppp/ppp-%{version}.tar.gz
  12. Source1: ppp-pam.conf
  13. Source2: ppp-logrotate.conf
  14. Source3: ppp-tmpfiles.conf
  15. Source4: ip-down
  16. Source5: ip-down.ipv6to4
  17. Source6: ip-up
  18. Source7: ip-up.ipv6to4
  19. Source8: ipv6-down
  20. Source9: ipv6-up
  21. Source10: ifup-ppp
  22. Source11: ifdown-ppp
  23. Source12: ppp-watch.tar.xz
  24. # Fedora-specific
  25. Patch0001: 0001-build-sys-use-gcc-as-our-compiler-of-choice.patch
  26. Patch0002: 0002-build-sys-enable-PAM-support.patch
  27. Patch0003: 0003-build-sys-utilize-compiler-flags-handed-to-us-by-rpm.patch
  28. Patch0004: 0004-doc-add-configuration-samples.patch
  29. Patch0005: 0005-build-sys-don-t-hardcode-LIBDIR-but-set-it-according.patch
  30. Patch0006: 0006-scritps-use-change_resolv_conf-function.patch
  31. Patch0007: 0007-build-sys-don-t-strip-binaries-during-installation.patch
  32. Patch0008: 0008-build-sys-use-prefix-usr-instead-of-usr-local.patch
  33. Patch0009: 0009-pppd-introduce-ipv6-accept-remote.patch
  34. Patch0010: 0010-build-sys-enable-CBCP.patch
  35. Patch0011: 0011-build-sys-don-t-put-connect-errors-log-to-etc-ppp.patch
  36. Patch0012: 0012-pppd-we-don-t-want-to-accidentally-leak-fds.patch
  37. Patch0013: 0013-everywhere-O_CLOEXEC-harder.patch
  38. Patch0014: 0014-everywhere-use-SOCK_CLOEXEC-when-creating-socket.patch
  39. Patch0015: 0015-pppd-move-pppd-database-to-var-run-ppp.patch
  40. Patch0016: 0016-rp-pppoe-add-manpage-for-pppoe-discovery.patch
  41. Patch0017: 0017-pppd-rebase-EAP-TLS-patch-v0.994.patch
  42. Patch0018: 0018-scritps-fix-ip-up.local-sample.patch
  43. Patch0019: 0019-sys-linux-rework-get_first_ethernet.patch
  44. Patch0020: 0020-pppd-put-lock-files-in-var-lock-ppp.patch
  45. Patch0021: 0021-build-sys-compile-pppol2tp-plugin-with-RPM_OPT_FLAGS.patch
  46. Patch0022: 0022-build-sys-compile-pppol2tp-with-multilink-support.patch
  47. Patch0023: 0023-build-sys-install-rp-pppoe-plugin-files-with-standar.patch
  48. Patch0024: 0024-build-sys-install-pppoatm-plugin-files-with-standard.patch
  49. Patch0025: 0025-pppd-install-pppd-binary-using-standard-perms-755.patch
  50. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  51. BuildRequires: glib2-devel, libpcap >= 0.8.3, eudev-libudev-devel, openssl-devel, pam-devel
  52. #Requires: glibc >= 2.0.6, /etc/pam.d/system-auth
  53. Requires: glibc >= 2.0.6, pam >= 1.0
  54. Requires(pre): shadow-utils
  55. Vendor: Project Vine
  56. Distribution: Vine Linux
  57. Packager: daisuke
  58. %description
  59. The ppp package contains the PPP (Point-to-Point Protocol) daemon and
  60. documentation for PPP support. The PPP protocol provides a method for
  61. transmitting datagrams over serial point-to-point links. PPP is
  62. usually used to dial in to an ISP (Internet Service Provider) or other
  63. organization over a modem and phone line.
  64. %description -l ja
  65. ppp パッケージには PPP (Point-to-Point Protocol) デーモンと
  66. PPP を使う為のドキュメントが収められています.PPP プロトコルを
  67. 使うとシリアルな point-to-point 接続上でデータグラムを転送する
  68. 事が出来ます.この PPP は一般的には ISP (Internet Service Provider) 等に
  69. モデムを介した電話回線で接続する際に使われます.
  70. %package devel
  71. Summary: Headers for ppp plugin development
  72. SUmmary(ja): ppp プラグイン開発用ヘッダファイル
  73. Group: Development/Libraries
  74. %description devel
  75. This package contains the header files for building plugins for ppp.
  76. %description -l ja devel
  77. このパッケージには ppp のプラグインを開発するためのヘッダファイルが
  78. 含まれています。
  79. %prep
  80. %setup -q
  81. %autopatch -p1
  82. tar -xJf %{SOURCE12}
  83. %build
  84. export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -Wall"
  85. %configure
  86. make %{?_smp_mflags}
  87. make -C ppp-watch %{?_smp_mflags}
  88. %install
  89. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  90. %ifarch x86_64
  91. make INSTROOT=%{buildroot} install install-etcppp LIBDIR=$RPM_BUILD_ROOT%{_libdir}/pppd/%{version}
  92. %else
  93. make INSTROOT=%{buildroot} install install-etcppp
  94. %endif
  95. find scripts -type f | xargs chmod a-x
  96. make ROOT=%{buildroot} -C ppp-watch install
  97. # create log files dir
  98. mv -f %{buildroot}/usr/var %{buildroot}/
  99. # install pam config
  100. install -d %{buildroot}%{_sysconfdir}/pam.d
  101. install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/ppp
  102. # install logrotate script
  103. install -d %{buildroot}%{_sysconfdir}/logrotate.d
  104. install -p %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/ppp
  105. # install tmpfiles drop-in
  106. install -d %{buildroot}%{_tmpfilesdir}
  107. install -p %{SOURCE3} %{buildroot}%{_tmpfilesdir}/ppp.conf
  108. # install scripts (previously owned by initscripts package)
  109. install -d %{buildroot}%{_sysconfdir}/ppp
  110. %if %{with ifupdown}
  111. install -p %{SOURCE4} %{buildroot}%{_sysconfdir}/ppp/ip-down
  112. install -p %{SOURCE5} %{buildroot}%{_sysconfdir}/ppp/ip-down.ipv6to4
  113. install -p %{SOURCE6} %{buildroot}%{_sysconfdir}/ppp/ip-up
  114. install -p %{SOURCE7} %{buildroot}%{_sysconfdir}/ppp/ip-up.ipv6to4
  115. install -p %{SOURCE8} %{buildroot}%{_sysconfdir}/ppp/ipv6-down
  116. install -p %{SOURCE9} %{buildroot}%{_sysconfdir}/ppp/ipv6-up
  117. %endif
  118. %if %{with ifupdown}
  119. install -d %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/
  120. install -p %{SOURCE10} %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifup-ppp
  121. install -p %{SOURCE11} %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifdown-ppp
  122. %endif
  123. %clean
  124. rm -rf %{buildroot}
  125. %pre
  126. /usr/bin/getent group dip >/dev/null 2>&1 || /usr/sbin/groupadd -r -g 40 dip >/dev/null 2>&1 || :
  127. %files
  128. %defattr(-,root,root)
  129. %doc FAQ README README.cbcp README.linux README.MPPE README.MSCHAP80 README.MSCHAP81 README.pwfd README.pppoe scripts sample README.eap-tls
  130. %{_sbindir}/*
  131. %{_libdir}/pppd
  132. %{_mandir}/man8/chat.8*
  133. %{_mandir}/man8/ppp-watch.8*
  134. %{_mandir}/man8/pppd.8*
  135. %{_mandir}/man8/pppdump.8*
  136. %{_mandir}/man8/pppstats.8*
  137. %{_mandir}/man8/pppd-radattr.8*
  138. %{_mandir}/man8/pppd-radius.8*
  139. %{_mandir}/man8/pppoe-discovery.8*
  140. %dir /etc/ppp
  141. %config(noreplace) /etc/ppp/*
  142. %config(noreplace) /etc/pam.d/ppp
  143. %config(noreplace) /etc/logrotate.d/ppp
  144. %{_tmpfilesdir}/ppp.conf
  145. %ghost %dir %{_localstatedir}/run/ppp
  146. %ghost %dir %{_localstatedir}/lock/ppp
  147. %attr(700, root, root) %dir %{_localstatedir}/log/ppp
  148. %if %{with ifupdown}
  149. /etc/sysconfig/network-scripts/ifup-ppp
  150. /etc/sysconfig/network-scripts/ifdown-ppp
  151. %endif
  152. %files devel
  153. %defattr(-,root,root)
  154. %{_includedir}/pppd
  155. %doc PLUGINS
  156. %changelog
  157. * Tue Jun 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.6-2
  158. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  159. * Wed Jun 18 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.6-1
  160. - new upstream release.
  161. - replaceed all patches.
  162. * Tue Sep 06 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-4
  163. - added /var/run/ppp to %%files. (BTS:1215)
  164. - added /var/log/ppp to %%files.
  165. * Mon Apr 25 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-3
  166. - remove include/linux/if_pppol2tp.h to build pppoe plugin
  167. - update License tag
  168. * Fri Apr 08 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-2
  169. - rebuilt with new toolchain.
  170. * Mon Mar 08 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-1
  171. - new upstream release.
  172. - replaced all patches with Fedora's.
  173. - replaced 'BuildPreReq:' with 'BuildRequires:'.
  174. * Sun Aug 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-4
  175. - update pam.d/ppp to fix pam-1.0
  176. * Thu Aug 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.4-3
  177. - added option LIBDIR at makeinstall for x86_64
  178. * Thu Jul 31 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-2
  179. - add -devel subpackage to develop ppp plugins
  180. * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
  181. - update Source1 for pam-1.0.1
  182. - import several patches from Fedora 2.4.4-7
  183. * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-0vl1
  184. - new upstream release
  185. - rebuilt with new toolchain and environment
  186. - added URL (also URL of Source0)
  187. * Fri Nov 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.3-0vl2
  188. - use License: instead of Copyright:
  189. * Mon Jan 24 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.3-0vl1
  190. - new upstream release.
  191. - replace patch0.
  192. * Wed Aug 11 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.2-0vl0
  193. - new upstream release.
  194. - remove patch 2-4 (no longer needed).
  195. * Sat Mar 15 2003 <ryo1@bc.wakwak.com> 2.4.1-0vl2
  196. - rebuild with new toolchains
  197. * Sun Jun 10 2001 <sagami@vinelinux.org>
  198. - 2.4.1-0vl1: update to 2.4.1
  199. * Thu Jan 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  200. - 2.4.0-2vl1
  201. - based on 2.4.0-2 from Rawhide
  202. - added Japanese summary and description
  203. - Requires: /etc/pam.d/system-auth -> pam >= 0.72
  204. (for better compatibility with apt for rpm)
  205. * Fri Dec 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  206. - rebuild in new environment
  207. * Thu Nov 9 2000 Nalin Dahyabhai <nalin@redhat.com>
  208. - update to 2.4.0
  209. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  210. - automatic rebuild
  211. * Mon Jun 5 2000 Nalin Dahyabhai <nalin@redhat.com>
  212. - move man pages to %{_mandir}
  213. * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  214. - change perms using defattr
  215. - modify PAM setup to use system-auth
  216. * Sun Mar 26 2000 Florian La Roche <Florian.La Roche@redhat.com>
  217. - change to root:root perms
  218. * Mon Mar 06 2000 Nalin Dahyabhai <nalin@redhat.com>
  219. - reaper bugs verified as fixed
  220. - check pam_open_session result code (bug #9966)
  221. * Mon Feb 07 2000 Nalin Dahyabhai <nalin@redhat.com>
  222. - take a shot at the wrong reaper bugs (#8153, #5290)
  223. * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
  224. - free ride through the build system (release 2)
  225. * Tue Jan 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  226. - Update to 2.3.11
  227. * Sat Nov 06 1999 Michael K. Johnson <johnsonm@redhat.com>
  228. - Better fix for both problems
  229. * Fri Nov 05 1999 Michael K. Johnson <johnsonm@redhat.com>
  230. - fix for double-dial problem
  231. - fix for requiring a controlling terminal problem
  232. * Sun Sep 19 1999 Preston Brown <pbrown@redhat.com>
  233. - 2.3.10 bugfix release
  234. * Fri Aug 13 1999 Michael K. Johnson <johnsonm@redhat.com>
  235. - New version 2.3.9 required for kernel 2.3.13 and will be required
  236. for new initscripts. auth patch removed; 2.3.9 does the same thing
  237. more readably than the previous patch.
  238. * Thu Jun 24 1999 Cristian Gafton <gafton@redhat.com>
  239. - add pppdump
  240. * Fri Apr 09 1999 Cristian Gafton <gafton@redhat.com>
  241. - force pppd use the glibc's logwtmp instead of implementing its own
  242. * Thu Apr 01 1999 Preston Brown <pbrown@redhat.com>
  243. - version 2.3.7 bugfix release
  244. * Tue Mar 23 1999 Cristian Gafton <gafton@redhat.com>
  245. - version 2.3.6
  246. * Mon Mar 22 1999 Michael Johnson <johnsonm@redhat.com>
  247. - auth patch
  248. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  249. - auto rebuild in the new build environment (release 3)
  250. * Thu Jan 07 1999 Cristian Gafton <gafton@redhat.com>
  251. - build for glibc 2.1
  252. * Fri Jun 5 1998 Jeff Johnson <jbj@redhat.com>
  253. - updated to 2.3.5.
  254. * Tue May 19 1998 Prospector System <bugs@redhat.com>
  255. - translations modified for de
  256. * Fri May 8 1998 Jakub Jelinek <jj@ultra.linux.cz>
  257. - make it run with kernels 2.1.100 and above.
  258. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  259. - translations modified for de, fr, tr
  260. * Wed Mar 18 1998 Cristian Gafton <gafton@redhat.com>
  261. - requires glibc 2.0.6 or later
  262. * Wed Mar 18 1998 Michael K. Johnson <johnsonm@redhat.com>
  263. - updated PAM patch to not turn off wtmp/utmp/syslog logging.
  264. * Wed Jan 7 1998 Cristian Gafton <gafton@redhat.com>
  265. - added the /etc/pam.d config file
  266. - updated PAM patch to include session support
  267. * Tue Jan 6 1998 Cristian Gafton <gafton@redhat.com>
  268. - updated to ppp-2.3.3, build against glibc-2.0.6 - previous patches not
  269. required any more.
  270. - added buildroot
  271. - fixed the PAM support, which was really, completely broken and against any
  272. standards (session support is still not here... :-( )
  273. - we build against running kernel and pray that it will work
  274. - added a samples patch; updated glibc patch
  275. * Thu Dec 18 1997 Erik Troan <ewt@redhat.com>
  276. - added a patch to use our own route.h, rather then glibc's (which has
  277. alignment problems on Alpha's) -- I only applied this patch on the Alpha,
  278. though it should be safe everywhere
  279. * Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
  280. - turned off the execute bit for scripts in /usr/doc
  281. * Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
  282. - built against glibc
  283. * Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
  284. - Integrated new patch from David Mosberger
  285. - Improved description