tftp-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. Summary: The client for the Trivial File Transfer Protocol (TFTP).
  2. Summary(ja): TFTP (Trivial File Transfer Protocol) クライアント
  3. Name: tftp
  4. Version: 0.49
  5. Release: 2%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. Source: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.bz2
  9. URL: http://www.kernel.org/pub/software/network/tftp/
  10. Patch0: tftp-0.40-remap.patch
  11. Patch2: tftp-hpa-0.39-tzfix.patch
  12. Patch3: tftp-0.42-tftpboot.patch
  13. Patch4: tftp-0.49-chk_retcodes.patch
  14. Patch5: tftp-hpa-0.49-fortify-strcpy-crash.patch
  15. Patch6: tftp-0.49-cmd_arg.patch
  16. Patch7: tftp-hpa-0.49-stats.patch
  17. BuildRequires: tcp_wrappers readline-devel
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. %description
  20. The Trivial File Transfer Protocol (TFTP) is normally used only for
  21. booting diskless workstations. The tftp package provides the user
  22. interface for TFTP, which allows users to transfer files to and from a
  23. remote machine. This program and TFTP provide very little security,
  24. and should not be enabled unless it is expressly needed.
  25. %description -l ja
  26. TFTP (Trivial File Transfer Protocol) は通常
  27. ディスクレスワークステーションの起動時にのみ使われます。
  28. tftp パッケージはこの TFTP のインタフェースを提供し、リモート機から
  29. ファイルを転送することが出来ます。このプログラムと TFTP は
  30. セキュリティ面に於いて非常に弱いので、どうしても必要な場合以外は
  31. 使わない方が良いでしょう。
  32. %package server
  33. Group: System Environment/Daemons
  34. Summary: The server for the Trivial File Transfer Protocol (TFTP).
  35. Summary(ja): TFTP (Trivial File Transfer Protocol) サーバ
  36. Requires: xinetd
  37. %description server
  38. The Trivial File Transfer Protocol (TFTP) is normally used only for
  39. booting diskless workstations. The tftp-server package provides the
  40. server for TFTP, which allows users to transfer files to and from a
  41. remote machine. TFTP provides very little security, and should not be
  42. enabled unless it is expressly needed. The TFTP server is run from
  43. %{_sysconfdir}/xinetd.d/tftp, and is disabled by default.
  44. %description server -l ja
  45. TFTP (Trivial File Transfer Protocol) は通常
  46. ディスクレスワークステーションの起動時にのみ使われます。
  47. tftp-server パッケージには TFTP のサーバプログラムが収められており、
  48. リモート機間とのファイル転送を可能にします。このプログラムと TFTP は
  49. セキュリティ面に於いて非常に弱いので、どうしても必要な場合以外は
  50. 使わない方が良いでしょう。TFTP サーバは /etc/xinetd.d/tftp から起動され、
  51. デフォルトでは オフにされています。
  52. %prep
  53. %setup -q -n tftp-hpa-%{version}
  54. %patch0 -p1 -b .zero
  55. %patch2 -p1 -b .tzfix
  56. %patch3 -p1 -b .tftpboot
  57. %patch4 -p1 -b .chk_retcodes
  58. %patch5 -p1 -b .fortify-strcpy-crash
  59. %patch6 -p1 -b .cmd_arg
  60. %patch7 -p1 -b .stats
  61. %build
  62. autoreconf
  63. %configure
  64. make %{?_smp_mflags}
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  68. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
  69. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  70. mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
  71. make INSTALLROOT=${RPM_BUILD_ROOT} SBINDIR=%{_sbindir} MANDIR=%{_mandir} INSTALL='install -p' install
  72. install -m755 -d -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/ ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
  73. sed -e 's:/var:%{_localstatedir}:' -e 's:/usr/sbin:%{_sbindir}:' \
  74. tftp-xinetd > ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
  75. touch -r tftp-xinetd ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
  76. %clean
  77. rm -rf $RPM_BUILD_ROOT
  78. %post server
  79. /sbin/service xinetd reload > /dev/null 2>&1 || :
  80. %postun server
  81. if [ $1 = 0 ]; then
  82. /sbin/service xinetd reload > /dev/null 2>&1 || :
  83. fi
  84. %files
  85. %defattr(-,root,root,-)
  86. %doc README README.security CHANGES
  87. %{_bindir}/tftp
  88. %{_mandir}/man1/*
  89. %files server
  90. %defattr(-,root,root,-)
  91. %doc README README.security CHANGES
  92. %config(noreplace) %{_sysconfdir}/xinetd.d/tftp
  93. %dir %{_localstatedir}/lib/tftpboot
  94. %{_sbindir}/in.tftpd
  95. %{_mandir}/man8/*
  96. %changelog
  97. * Sat Mar 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.49-2
  98. - Fixed Requires on server subpackage (s/inetd/xinetd)
  99. * Sat Mar 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.49-1
  100. - updated to 0.49; patches added and revised based on Fedora 0.49-8
  101. - restored the config file for xinetd
  102. - s/BuildPreReq/BuildRequires/
  103. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.42-4vl5
  104. - applied new versioning policy, spec in utf-8
  105. * Sat Apr 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42-3vl1
  106. - rebuilt with readline 5.1
  107. - new upstream release
  108. - added patches from Fedora
  109. * Mon Apr 10 2006 Radek Vok叩l <rvokal@redhat.com> 0.42-3
  110. - show localtime instead of GMT (#172274)
  111. * Wed Mar 22 2006 Radek Vok叩l <rvokal@redhat.com> 0.42-2
  112. - fix double free error when hitting ^C (#186201)
  113. * Sat May 28 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.40-6vl1
  114. - updated to 0.40 based on Fedora
  115. * Tue Apr 19 2005 Radek Vokal <rvokal@redhat.com> 0.40-6
  116. - fix remap rules convert error <pjones@redhat.com>
  117. - changed tftp Group
  118. * Thu Jul 24 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.33-2vl1
  119. - updated to 0.33
  120. - rebuild with new toolchains
  121. - s/Copyright/License/
  122. - add BuildPreReq on tcp_wrappers (based on Rawhide)
  123. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  124. - 0.16-5vl1
  125. - use better macros (%%{_bindir},%%{_sbindir},%%{_mandir})
  126. - added Japanese summary and description
  127. * Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
  128. - fix description
  129. * Wed Feb 9 2000 Jeff Johnson <jbj@redhat.com>
  130. - compress man pages (again).
  131. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  132. - man pages are compressed
  133. - fix description and summary
  134. * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
  135. - split client and server
  136. * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
  137. - update to 0.16.
  138. * Sat Aug 28 1999 Jeff Johnson <jbj@redhat.com>
  139. - update to 0.15.
  140. * Wed Apr 7 1999 Jeff Johnson <jbj@redhat.com>
  141. - tftpd should truncate file when overwriting (#412)
  142. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  143. - auto rebuild in the new build environment (release 22)
  144. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  145. - compile for 6.0.
  146. * Fri Aug 7 1998 Jeff Johnson <jbj@redhat.com>
  147. - build root
  148. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  149. - translations modified for de, fr, tr
  150. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  151. - added check for getpwnam() failure
  152. * Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
  153. - initial build