ppp-vl.spec 13 KB

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