|
@@ -1,15 +1,22 @@
|
|
|
Summary: The client for the Trivial File Transfer Protocol (TFTP).
|
|
|
Summary(ja): TFTP (Trivial File Transfer Protocol) クライアント
|
|
|
Name: tftp
|
|
|
-Version: 0.42
|
|
|
-Release: 4%{?_dist_release}
|
|
|
+Version: 0.49
|
|
|
+Release: 1%{?_dist_release}
|
|
|
License: BSD
|
|
|
Group: Applications/Internet
|
|
|
-Source: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.gz
|
|
|
+Source: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.bz2
|
|
|
+URL: http://www.kernel.org/pub/software/network/tftp/
|
|
|
+
|
|
|
Patch0: tftp-0.40-remap.patch
|
|
|
-Patch1: tftp-hpa-0.42-sigjmp.patch
|
|
|
Patch2: tftp-hpa-0.39-tzfix.patch
|
|
|
-BuildPreReq: tcp_wrappers readline-devel
|
|
|
+Patch3: tftp-0.42-tftpboot.patch
|
|
|
+Patch4: tftp-0.49-chk_retcodes.patch
|
|
|
+Patch5: tftp-hpa-0.49-fortify-strcpy-crash.patch
|
|
|
+Patch6: tftp-0.49-cmd_arg.patch
|
|
|
+Patch7: tftp-hpa-0.49-stats.patch
|
|
|
+
|
|
|
+BuildRequires: tcp_wrappers readline-devel
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
%description
|
|
@@ -21,11 +28,11 @@ and should not be enabled unless it is expressly needed.
|
|
|
|
|
|
%description -l ja
|
|
|
TFTP (Trivial File Transfer Protocol) は通常
|
|
|
-ディスクレスワークステーションの起動時にのみ使われます.
|
|
|
-tftp パッケージはこの TFTP のインタフェースを提供し,リモート機から
|
|
|
-ファイルを転送することが出来ます.このプログラムと TFTP は
|
|
|
-セキュリティ面に於いて非常に弱いので,どうしても必要な場合以外は
|
|
|
-使わない方が良いでしょう.
|
|
|
+ディスクレスワークステーションの起動時にのみ使われます。
|
|
|
+tftp パッケージはこの TFTP のインタフェースを提供し、リモート機から
|
|
|
+ファイルを転送することが出来ます。このプログラムと TFTP は
|
|
|
+セキュリティ面に於いて非常に弱いので、どうしても必要な場合以外は
|
|
|
+使わない方が良いでしょう。
|
|
|
|
|
|
|
|
|
%package server
|
|
@@ -41,26 +48,31 @@ booting diskless workstations. The tftp-server package provides the
|
|
|
server for TFTP, which allows users to transfer files to and from a
|
|
|
remote machine. TFTP provides very little security, and should not be
|
|
|
enabled unless it is expressly needed. The TFTP server is run from
|
|
|
-/etc/inetd.conf, and is disabled by default on Red Hat Linux systems.
|
|
|
+%{_sysconfdir}/xinetd.d/tftp, and is disabled by default.
|
|
|
|
|
|
%description server -l ja
|
|
|
TFTP (Trivial File Transfer Protocol) は通常
|
|
|
-ディスクレスワークステーションの起動時にのみ使われます.
|
|
|
-tftp-server パッケージには TFTP のサーバプログラムが収められており,
|
|
|
-リモート機間とのファイル転送を可能にします.このプログラムと TFTP は
|
|
|
-セキュリティ面に於いて非常に弱いので,どうしても必要な場合以外は
|
|
|
-使わない方が良いでしょう.
|
|
|
-TFTP サーバは /etc/inetd.conf から起動され,Red Hat Linux システムでは
|
|
|
-デフォルトでオフにされています.
|
|
|
+ディスクレスワークステーションの起動時にのみ使われます。
|
|
|
+tftp-server パッケージには TFTP のサーバプログラムが収められており、
|
|
|
+リモート機間とのファイル転送を可能にします。このプログラムと TFTP は
|
|
|
+セキュリティ面に於いて非常に弱いので、どうしても必要な場合以外は
|
|
|
+使わない方が良いでしょう。TFTP サーバは /etc/xinetd.d/tftp から起動され、
|
|
|
+デフォルトでは オフにされています。
|
|
|
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n tftp-hpa-%{version}
|
|
|
%patch0 -p1 -b .zero
|
|
|
-%patch1 -p1 -b .sigjmp
|
|
|
%patch2 -p1 -b .tzfix
|
|
|
+%patch3 -p1 -b .tftpboot
|
|
|
+%patch4 -p1 -b .chk_retcodes
|
|
|
+%patch5 -p1 -b .fortify-strcpy-crash
|
|
|
+%patch6 -p1 -b .cmd_arg
|
|
|
+%patch7 -p1 -b .stats
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
+autoreconf
|
|
|
%configure
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
@@ -70,28 +82,51 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
|
|
+mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
|
|
|
+
|
|
|
+make INSTALLROOT=${RPM_BUILD_ROOT} SBINDIR=%{_sbindir} MANDIR=%{_mandir} INSTALL='install -p' install
|
|
|
+install -m755 -d -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/ ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot
|
|
|
+sed -e 's:/var:%{_localstatedir}:' -e 's:/usr/sbin:%{_sbindir}:' \
|
|
|
+ tftp-xinetd > ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
|
|
|
+touch -r tftp-xinetd ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp
|
|
|
|
|
|
-make INSTALLROOT=${RPM_BUILD_ROOT} \
|
|
|
- SBINDIR=%{_sbindir} MANDIR=%{_mandir} \
|
|
|
- install
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
+%post server
|
|
|
+/sbin/service xinetd reload > /dev/null 2>&1 || :
|
|
|
+
|
|
|
+
|
|
|
+%postun server
|
|
|
+if [ $1 = 0 ]; then
|
|
|
+ /sbin/service xinetd reload > /dev/null 2>&1 || :
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
%files
|
|
|
-%defattr(-,root,root)
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%doc README README.security CHANGES
|
|
|
%{_bindir}/tftp
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
%files server
|
|
|
-%defattr(-,root,root)
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%doc README README.security CHANGES
|
|
|
+%config(noreplace) %{_sysconfdir}/xinetd.d/tftp
|
|
|
+%dir %{_localstatedir}/lib/tftpboot
|
|
|
%{_sbindir}/in.tftpd
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Mar 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.49-1
|
|
|
+- updated to 0.49; patches added and revised based on Fedora 0.49-8
|
|
|
+- restored the config file for xinetd
|
|
|
+- s/BuildPreReq/BuildRequires/
|
|
|
+
|
|
|
* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.42-4vl5
|
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|