ppp-vl.spec 13 KB

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