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