ppp-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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.7
  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. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.7-2
  158. - rebuild with openssl-1.0.2
  159. * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.7-1
  160. - new upstream release.
  161. * Tue Jun 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.6-2
  162. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  163. * Wed Jun 18 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.6-1
  164. - new upstream release.
  165. - replaceed all patches.
  166. * Tue Sep 06 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-4
  167. - added /var/run/ppp to %%files. (BTS:1215)
  168. - added /var/log/ppp to %%files.
  169. * Mon Apr 25 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-3
  170. - remove include/linux/if_pppol2tp.h to build pppoe plugin
  171. - update License tag
  172. * Fri Apr 08 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-2
  173. - rebuilt with new toolchain.
  174. * Mon Mar 08 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.5-1
  175. - new upstream release.
  176. - replaced all patches with Fedora's.
  177. - replaced 'BuildPreReq:' with 'BuildRequires:'.
  178. * Sun Aug 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-4
  179. - update pam.d/ppp to fix pam-1.0
  180. * Thu Aug 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.4-3
  181. - added option LIBDIR at makeinstall for x86_64
  182. * Thu Jul 31 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-2
  183. - add -devel subpackage to develop ppp plugins
  184. * Wed Jun 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
  185. - update Source1 for pam-1.0.1
  186. - import several patches from Fedora 2.4.4-7
  187. * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-0vl1
  188. - new upstream release
  189. - rebuilt with new toolchain and environment
  190. - added URL (also URL of Source0)
  191. * Fri Nov 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.3-0vl2
  192. - use License: instead of Copyright:
  193. * Mon Jan 24 2005 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.3-0vl1
  194. - new upstream release.
  195. - replace patch0.
  196. * Wed Aug 11 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.4.2-0vl0
  197. - new upstream release.
  198. - remove patch 2-4 (no longer needed).
  199. * Sat Mar 15 2003 <ryo1@bc.wakwak.com> 2.4.1-0vl2
  200. - rebuild with new toolchains
  201. * Sun Jun 10 2001 <sagami@vinelinux.org>
  202. - 2.4.1-0vl1: update to 2.4.1
  203. * Thu Jan 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  204. - 2.4.0-2vl1
  205. - based on 2.4.0-2 from Rawhide
  206. - added Japanese summary and description
  207. - Requires: /etc/pam.d/system-auth -> pam >= 0.72
  208. (for better compatibility with apt for rpm)
  209. * Fri Dec 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  210. - rebuild in new environment
  211. * Thu Nov 9 2000 Nalin Dahyabhai <nalin@redhat.com>
  212. - update to 2.4.0
  213. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  214. - automatic rebuild
  215. * Mon Jun 5 2000 Nalin Dahyabhai <nalin@redhat.com>
  216. - move man pages to %{_mandir}
  217. * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  218. - change perms using defattr
  219. - modify PAM setup to use system-auth
  220. * Sun Mar 26 2000 Florian La Roche <Florian.La Roche@redhat.com>
  221. - change to root:root perms
  222. * Mon Mar 06 2000 Nalin Dahyabhai <nalin@redhat.com>
  223. - reaper bugs verified as fixed
  224. - check pam_open_session result code (bug #9966)
  225. * Mon Feb 07 2000 Nalin Dahyabhai <nalin@redhat.com>
  226. - take a shot at the wrong reaper bugs (#8153, #5290)
  227. * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
  228. - free ride through the build system (release 2)
  229. * Tue Jan 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  230. - Update to 2.3.11
  231. * Sat Nov 06 1999 Michael K. Johnson <johnsonm@redhat.com>
  232. - Better fix for both problems
  233. * Fri Nov 05 1999 Michael K. Johnson <johnsonm@redhat.com>
  234. - fix for double-dial problem
  235. - fix for requiring a controlling terminal problem
  236. * Sun Sep 19 1999 Preston Brown <pbrown@redhat.com>
  237. - 2.3.10 bugfix release
  238. * Fri Aug 13 1999 Michael K. Johnson <johnsonm@redhat.com>
  239. - New version 2.3.9 required for kernel 2.3.13 and will be required
  240. for new initscripts. auth patch removed; 2.3.9 does the same thing
  241. more readably than the previous patch.
  242. * Thu Jun 24 1999 Cristian Gafton <gafton@redhat.com>
  243. - add pppdump
  244. * Fri Apr 09 1999 Cristian Gafton <gafton@redhat.com>
  245. - force pppd use the glibc's logwtmp instead of implementing its own
  246. * Thu Apr 01 1999 Preston Brown <pbrown@redhat.com>
  247. - version 2.3.7 bugfix release
  248. * Tue Mar 23 1999 Cristian Gafton <gafton@redhat.com>
  249. - version 2.3.6
  250. * Mon Mar 22 1999 Michael Johnson <johnsonm@redhat.com>
  251. - auth patch
  252. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  253. - auto rebuild in the new build environment (release 3)
  254. * Thu Jan 07 1999 Cristian Gafton <gafton@redhat.com>
  255. - build for glibc 2.1
  256. * Fri Jun 5 1998 Jeff Johnson <jbj@redhat.com>
  257. - updated to 2.3.5.
  258. * Tue May 19 1998 Prospector System <bugs@redhat.com>
  259. - translations modified for de
  260. * Fri May 8 1998 Jakub Jelinek <jj@ultra.linux.cz>
  261. - make it run with kernels 2.1.100 and above.
  262. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  263. - translations modified for de, fr, tr
  264. * Wed Mar 18 1998 Cristian Gafton <gafton@redhat.com>
  265. - requires glibc 2.0.6 or later
  266. * Wed Mar 18 1998 Michael K. Johnson <johnsonm@redhat.com>
  267. - updated PAM patch to not turn off wtmp/utmp/syslog logging.
  268. * Wed Jan 7 1998 Cristian Gafton <gafton@redhat.com>
  269. - added the /etc/pam.d config file
  270. - updated PAM patch to include session support
  271. * Tue Jan 6 1998 Cristian Gafton <gafton@redhat.com>
  272. - updated to ppp-2.3.3, build against glibc-2.0.6 - previous patches not
  273. required any more.
  274. - added buildroot
  275. - fixed the PAM support, which was really, completely broken and against any
  276. standards (session support is still not here... :-( )
  277. - we build against running kernel and pray that it will work
  278. - added a samples patch; updated glibc patch
  279. * Thu Dec 18 1997 Erik Troan <ewt@redhat.com>
  280. - added a patch to use our own route.h, rather then glibc's (which has
  281. alignment problems on Alpha's) -- I only applied this patch on the Alpha,
  282. though it should be safe everywhere
  283. * Fri Oct 10 1997 Erik Troan <ewt@redhat.com>
  284. - turned off the execute bit for scripts in /usr/doc
  285. * Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
  286. - built against glibc
  287. * Tue Mar 25 1997 Erik Troan <ewt@redhat.com>
  288. - Integrated new patch from David Mosberger
  289. - Improved description