Name: atftp
Summary: Advanced Trivial File Transfer Protocol (TFTP) client
Version: 0.7
Release: 6
License: GPL
Group: Applications/Internet
URL: ftp://ftp.mamalinux.com/pub/atftp/
Description: atftp is an advanced client implementation of the TFTP
protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349.
The server is multi-threaded and the client presents a friendly
interface using libreadline. The current server implementation
lacks IPv6 support.
The build was succesful. The following RPMs were generated:
The build was succesful. The following RPMs were generated:
The spec file used by the build system currently has the following contents:
# $Id$
# Authority: dag
# Upstream: Jean-Pierre Lefebvre <helix$step,polymtl,ca>
Summary: Advanced Trivial File Transfer Protocol (TFTP) client
Name: atftp
Version: 0.7
Release: 6%{?dist}
License: GPL
Group: Applications/Internet
URL: ftp://ftp.mamalinux.com/pub/atftp/
Source: http://downloads.openwrt.org/sources/atftp-%{version}.tar.gz
Patch0: atftp-0.7-inlines.patch
Patch1: atftp-0.7-CLK_TCK.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libtermcap-devel, pcre-devel, ncurses-devel, readline-devel
Requires: binutils, gawk
Provides: tftp
%description
atftp is an advanced client implementation of the TFTP
protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349.
The server is multi-threaded and the client presents a friendly
interface using libreadline. The current server implementation
lacks IPv6 support.
%package server
Summary: Advanced Trivial File Transfer Protocol (TFTP) server
Group: System Environment/Daemons
#Conflicts: tftp-server
Provides: tftp-server
%description server
atftpd is an advanced server implementation of the TFTP
protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349.
The server is multi-threaded and the client presents a friendly
interface using libreadline. The current server implementation
lacks IPv6 support.
%prep
%setup
%patch0 -p1
%patch1
### FIXME: Change location of pcre.h to pcre/pcre.h (Please fix upstream)
if [ -r %{_includedir}/pcre/pcre.h ]; then
%{__perl} -pi.orig -e 's|\bpcre.h\b|pcre/pcre.h|' configure tftpd_pcre.h
fi
%{__cat} <<EOF >tftp.xinetd
# default: off
# description: The tftp server serves files using the trivial file transfer protocol. The tftp protocol is often used to boot diskless workstations, download configuration files to network-aware printers, and to start the installation process for some operating systems.
service tftp
{
disable = yes
socket_type = dgram
protocol = udp
wait = yes
user = root
server = %{_sbindir}/in.tftpd
server_args = /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
EOF
%build
%configure \
--disable-dependency-tracking \
--enable-libpcre \
--enable-libreadline \
--enable-libwrap \
--enable-mtftp
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%makeinstall
%{__install} -d %{buildroot}/tftpboot/
%{__install} -Dp -m0644 tftp.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/tftp
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc BUGS Changelog FAQ INSTALL LICENSE README* TODO
%doc %{_mandir}/man1/atftp.1*
%{_bindir}/atftp
%files server
%defattr(-, root, root, 0755)
%doc docs/*
%doc %{_mandir}/man8/atftpd.8*
%doc %{_mandir}/man8/in.tftpd.8*
%dir /tftpboot/
%config(noreplace) %{_sysconfdir}/xinetd.d/tftp
%{_sbindir}/atftpd
%{_sbindir}/in.tftpd
%changelog
* Thu Dec 27 2007 Jameson <imntreal@gmail.com> - 0.7.0-6
- Patched CLK_TCK error
* Mon Mar 13 2006 Dag Wieers <dag@wieers.com> - 0.7.0-5
- Removed readline and readline-devel as a dependency.
* Sat Mar 11 2006 Dag Wieers <dag@wieers.com> - 0.7.0-4
- Moved tftp xinetd config to atftp-server. (Diego Torres Milano)
- Fixed FC4 build.
* Sun Mar 28 2004 Dag Wieers <dag@wieers.com> - 0.7.0-3
- Removed Conflicts-tag.
* Thu Mar 25 2004 Dag Wieers <dag@wieers.com> - 0.7.0-2
- Provide tftp and tftp-server.
* Sat Mar 20 2004 Dag Wieers <dag@wieers.com> - 0.7.0-1
- Updated to new release 0.7.0.
* Sat Aug 23 2003 Dag Wieers <dag@wieers.com> - 0.6.2-1
- Conflicts with tftp-server package.
- Added xinetd script.
* Sat Aug 23 2003 Dag Wieers <dag@wieers.com> - 0.6.2-0
- Initial package. (using DAR)