ppp-vl.spec 13 KB

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