Summary: The client and server for the Trivial File Transfer Protocol (TFTP) Name: tftp Version: 5.2 Release: %mkrel 3 License: BSD Group: System/Servers URL: http://www.kernel.org/pub/software/network/tftp/ Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-%{version}.tar.bz2 Source1: tftp-xinetd Patch0: tftp-mips.patch Patch1: tftp-0.40-remap.patch Patch2: tftp-hpa-0.39-tzfix.patch 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 %description The Trivial File Transfer Protocol (TFTP) is normally used only for booting diskless workstations. The tftp package provides the user interface for TFTP, which allows users to transfer files to and from a remote machine. This program, and TFTP, provide very little security, and should not be enabled unless it is expressly needed. %package server Summary: The server for the Trivial File Transfer Protocol (TFTP) Group: System/Servers Requires: xinetd Requires(post): rpm-helper Requires(preun):rpm-helper %description server The Trivial File Transfer Protocol (TFTP) is normally used only for 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 %{_sysconfdir}/xinetd.d/tftp, and is disabled by default on a %{_vendor} systems. %prep %setup -q -n tftp-hpa-%{version} %patch0 -p1 %patch1 -p1 -b .zero %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 %serverbuild sh configure --prefix=%{_prefix} perl -pi -e ' s,^CC=.*$,CC=cc,; s,^BINDIR=.*$,BINDIR=%{_bindir},; s,^MANDIR=.*$,MANDIR=%{_mandir},; s,^SBINDIR=.*$,SBINDIR=%{_sbindir},; ' MCONFIG %make %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man{1,8} mkdir -p %{buildroot}%{_sbindir} make INSTALLROOT=%{buildroot} MANDIR=%{_mandir} install install -m755 -d %{buildroot}%{_localstatedir}/lib/tftpboot/ install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/xinetd.d/tftp %files %{_bindir}/tftp %{_mandir}/man1/* %files server %doc README README.security CHANGES %dir %{_localstatedir}/lib/tftpboot %config(noreplace) %{_sysconfdir}/xinetd.d/tftp %{_sbindir}/in.tftpd %{_mandir}/man8/* %changelog * Mon Jan 14 2013 umeabot <umeabot> 5.2-3.mga3 + Revision: 384501 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Dec 28 2011 dmorgan <dmorgan> 5.2-2.mga2 + Revision: 188470 - Remove call to systemd as there is no services * Mon Dec 19 2011 zezinho <zezinho> 5.2-1.mga2 + Revision: 184408 - new version * Mon Oct 17 2011 zezinho <zezinho> 5.1-1.mga2 + Revision: 155820 - upgrade to latest upstream and add fedora patches to fix #1816 * Sat May 21 2011 ahmad <ahmad> 5.0-6.mga1 + Revision: 100001 - Replace a reference to Mandriva with Mageia * Fri Jan 21 2011 pterjan <pterjan> 5.0-5.mga1 + Revision: 27916 - imported package tftp