Commit 1f3669b4 authored by Ryan Barnett's avatar Ryan Barnett Committed by Peter Korsgaard
Browse files

atftp: new package



[Peter: note that readline is optional, drop trailing Config.in line]
Signed-off-by: default avatarRyan Barnett <ryan.barnett@rockwellcollins.com>
CC: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 0f6a872c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -897,6 +897,7 @@ menu "Networking applications"
	source "package/aircrack-ng/Config.in"
	source "package/argus/Config.in"
	source "package/arptables/Config.in"
	source "package/atftp/Config.in"
	source "package/autossh/Config.in"
	source "package/avahi/Config.in"
	source "package/axel/Config.in"
+26 −0
Original line number Diff line number Diff line
Makefile.am: link against libpthread for atftp

atftp client needs to link against libpthread as static builds do not
work otherwise.

Signed-off-by: Ryan Barnett <ryan.barnett@rockwellcollins.com>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index e59592f..200829a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,7 +28,7 @@ noinst_HEADERS   = argz.h logger.h options.h stats.h tftp.h tftp_def.h tftp_io.h
 		   tftpd.h tftpd_pcre.h tftpd_mtftp.h
 
 bin_PROGRAMS     = atftp
-atftp_LDADD      = $(LIBTERMCAP) $(LIBREADLINE)
+atftp_LDADD      = $(LIBTERMCAP) $(LIBREADLINE) $(LIBPTHREAD)
 atftp_SOURCES    = tftp.c tftp_io.c logger.c options.c tftp_def.c tftp_file.c \
 		   argz.c tftp_mtftp.c
 
-- 
1.9.1
+15 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_ATFTP
	bool "atftp"
	depends on BR2_INET_IPV6
	depends on BR2_TOOLCHAIN_HAS_THREADS
	help
	  atftp is a client/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
	  (if enabled).

	  http://sourceforge.net/projects/atftp/

comment "atftp needs a toolchain w/ threads, IPv6"
	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6

package/atftp/atftp.mk

0 → 100644
+27 −0
Original line number Diff line number Diff line
################################################################################
#
# atftp
#
################################################################################

ATFTP_VERSION  = 0.7.1
ATFTP_SITE = http://sourceforge.net/projects/atftp/files/
ATFTP_LICENSE = GPLv2+
ATFTP_LICENSE_FILES = LICENSE
ATFTP_CONF_OPT = --disable-libwrap --disable-mtftp

ifeq ($(BR2_PACKAGE_READLINE),y)
ATFTP_DEPENDENCIES += readline
ATFTP_CONF_OPT += --enable-libreadline
else
ATFTP_CONF_OPT += --disable-libreadline
endif

ifeq ($(BR2_PACKAGE_PCRE),y)
ATFTP_DEPENDENCIES += pcre
ATFTP_CONF_OPT += --enable-libpcre
else
ATFTP_CONF_OPT += --disable-libpcre
endif

$(eval $(autotools-package))