Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From 543e67919f5cacf309ac88ab091331e41af4224b Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Thu, 16 Apr 2015 22:41:57 +0200
|
||||
Subject: [PATCH] argz.h: fix musl compile (add missing defines)
|
||||
|
||||
Add __THROW, __BEGIN_DECLS, __END_DECLS and __attribute_pure__ defines.
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
argz.h | 16 ++++++++++++++++
|
||||
1 file changed, 16 insertions(+)
|
||||
|
||||
diff --git a/argz.h b/argz.h
|
||||
index 582be55..bdf9f62 100644
|
||||
--- a/argz.h
|
||||
+++ b/argz.h
|
||||
@@ -48,6 +48,22 @@
|
||||
# define __const const
|
||||
#endif
|
||||
|
||||
+#ifndef __THROW
|
||||
+# define __THROW
|
||||
+#endif
|
||||
+
|
||||
+#ifndef __BEGIN_DECLS
|
||||
+# define __BEGIN_DECLS
|
||||
+#endif
|
||||
+
|
||||
+#ifndef __END_DECLS
|
||||
+# define __END_DECLS
|
||||
+#endif
|
||||
+
|
||||
+#ifndef __attribute_pure__
|
||||
+# define __attribute_pure__
|
||||
+#endif
|
||||
+
|
||||
#ifndef __error_t_defined
|
||||
typedef int error_t;
|
||||
#endif
|
||||
--
|
||||
2.1.4
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
From 77e399899d9d7297d23c321811b628febdf0fd92 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Thu, 16 Apr 2015 22:43:49 +0200
|
||||
Subject: [PATCH] tftp.h/tftpd.h: fix musl compile (missing include)
|
||||
|
||||
Add sys/types.h include for u_char typedef.
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
tftp.h | 1 +
|
||||
tftpd.h | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tftp.h b/tftp.h
|
||||
index 12bd6aa..32a3f63 100644
|
||||
--- a/tftp.h
|
||||
+++ b/tftp.h
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
+#include <sys/types.h>
|
||||
#include "tftp_def.h"
|
||||
#include "config.h"
|
||||
|
||||
diff --git a/tftpd.h b/tftpd.h
|
||||
index 945065e..60d3a49 100644
|
||||
--- a/tftpd.h
|
||||
+++ b/tftpd.h
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <pthread.h>
|
||||
#include <arpa/tftp.h>
|
||||
#include <arpa/inet.h>
|
||||
+#include <sys/types.h>
|
||||
#include "tftp_io.h"
|
||||
|
||||
/*
|
||||
--
|
||||
2.1.4
|
||||
|
||||
14
deprecated/firmware/buildroot/package/atftp/Config.in
Normal file
14
deprecated/firmware/buildroot/package/atftp/Config.in
Normal file
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_ATFTP
|
||||
bool "atftp"
|
||||
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"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
2
deprecated/firmware/buildroot/package/atftp/atftp.hash
Normal file
2
deprecated/firmware/buildroot/package/atftp/atftp.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha1 fc9e9f821dfd2f257b4a5c32b948ed60b4e31fd1 atftp-0.7.1.tar.gz
|
||||
37
deprecated/firmware/buildroot/package/atftp/atftp.mk
Normal file
37
deprecated/firmware/buildroot/package/atftp/atftp.mk
Normal file
@@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# atftp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ATFTP_VERSION = 0.7.1
|
||||
ATFTP_SITE = http://sourceforge.net/projects/atftp/files
|
||||
ATFTP_LICENSE = GPLv2+
|
||||
ATFTP_LICENSE_FILES = LICENSE
|
||||
ATFTP_CONF_OPTS = --disable-libwrap --disable-mtftp
|
||||
# For static we need to explicitly link against libpthread
|
||||
ATFTP_LIBS = -lpthread
|
||||
# We use CPPFLAGS for -fgnu89-inline even though it's a compiler flag
|
||||
# because atftp discards configure environment CFLAGS. -fgnu89-inline
|
||||
# is needed to avoid multiple definition error with gcc 5. See
|
||||
# https://gcc.gnu.org/gcc-5/porting_to.html.
|
||||
ATFTP_CONF_ENV = LIBS="$(ATFTP_LIBS)" \
|
||||
CPPFLAGS="$(TARGET_CPPFLAGS) -fgnu89-inline"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
ATFTP_DEPENDENCIES += readline
|
||||
ATFTP_CONF_OPTS += --enable-libreadline
|
||||
# For static, readline links with ncurses
|
||||
ATFTP_LIBS += -lncurses
|
||||
else
|
||||
ATFTP_CONF_OPTS += --disable-libreadline
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||
ATFTP_DEPENDENCIES += pcre
|
||||
ATFTP_CONF_OPTS += --enable-libpcre
|
||||
else
|
||||
ATFTP_CONF_OPTS += --disable-libpcre
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user