Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
From 353a3236d9328349c18ce2e4e984755cb4a76ea7 Mon Sep 17 00:00:00 2001
From: Jan Palus <jpalus@fastmail.com>
Date: Sun, 17 Nov 2024 18:58:42 +0100
Subject: [PATCH] md5-stream, sha*-stream, sm3-stream: Avoid duplicate symbols.
* lib/md5-stream.c (GL_OPENSSL_INLINE): Remove definition, that caused
the symbols defined in md5.o to be defined in md5-stream.o as well.
* lib/sha1-stream.c (GL_OPENSSL_INLINE): Likewise.
* lib/sha256-stream.c (GL_OPENSSL_INLINE): Likewise.
* lib/sha512-stream.c (GL_OPENSSL_INLINE): Likewise.
* lib/sm3-stream.c (GL_OPENSSL_INLINE): Likewise.
Copyright-paperwork-exempt: Yes
Upstream: https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=353a3236d9328349c18ce2e4e984755cb4a76ea7
Upstream issue: https://github.com/lavv17/lftp/issues/743
[Bernd: partially backported to 4.9.3]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
ChangeLog | 10 ++++++++++
lib/md5-stream.c | 3 ---
lib/sha1-stream.c | 3 ---
lib/sha256-stream.c | 3 ---
lib/sha512-stream.c | 3 ---
lib/sm3-stream.c | 3 ---
6 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/lib/md5-stream.c b/lib/md5-stream.c
index fdd2bd8b4b..2cbdda6b0f 100644
--- a/lib/md5-stream.c
+++ b/lib/md5-stream.c
@@ -22,9 +22,6 @@
#include <config.h>
/* Specification. */
-#if HAVE_OPENSSL_MD5
-# define GL_OPENSSL_INLINE _GL_EXTERN_INLINE
-#endif
#include "md5.h"
#include <stdlib.h>
diff --git a/lib/sha1-stream.c b/lib/sha1-stream.c
index cbdf95ab76..b713e678a6 100644
--- a/lib/sha1-stream.c
+++ b/lib/sha1-stream.c
@@ -24,9 +24,6 @@
#include <config.h>
/* Specification. */
-#if HAVE_OPENSSL_SHA1
-# define GL_OPENSSL_INLINE _GL_EXTERN_INLINE
-#endif
#include "sha1.h"
#include <stdlib.h>
--
2.52.0

67
package/lftp/Config.in Normal file
View File

@@ -0,0 +1,67 @@
config BR2_PACKAGE_LFTP
bool "lftp"
depends on BR2_USE_WCHAR
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_READLINE
select BR2_PACKAGE_ZLIB
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
help
LFTP is a sophisticated ftp/http client, and a file transfer
program supporting a number of network protocols. Like BASH,
it has job control and uses the readline library for input. It
has bookmarks, a built-in mirror command, and can transfer
several files in parallel.
It was designed with reliability in mind.
http://lftp.yar.ru/
if BR2_PACKAGE_LFTP
comment "Commands"
config BR2_PACKAGE_LFTP_CMD_MIRROR
bool "Mirror command"
default y
help
Enable mirror command
config BR2_PACKAGE_LFTP_CMD_SLEEP
bool "Sleep command"
default y
help
Enable sleep command
config BR2_PACKAGE_LFTP_CMD_TORRENT
bool "Torrent command"
help
Enable torrent command
comment "Protocols"
config BR2_PACKAGE_LFTP_PROTO_FISH
bool "FISH protocol"
help
Enable FISH protocol
config BR2_PACKAGE_LFTP_PROTO_FTP
bool "FTP protocol"
default y
help
Enable FTP protocol
config BR2_PACKAGE_LFTP_PROTO_HTTP
bool "HTTP protocol"
help
Enable HTTP protocol
config BR2_PACKAGE_LFTP_PROTO_SFTP
bool "SFTP protocol"
help
Enable SFTP protocol
endif # BR2_PACKAGE_LFTP
comment "lftp requires a toolchain w/ C++, wchar"
depends on BR2_USE_MMU
depends on !(BR2_USE_WCHAR && BR2_INSTALL_LIBSTDCPP)

7
package/lftp/lftp.hash Normal file
View File

@@ -0,0 +1,7 @@
# From http://lftp.yar.ru/ftp/lftp-4.9.3.md5sum
md5 f2e4ffa81b68106a14d354d50635bbf4 lftp-4.9.3.tar.xz
# Locally calculated after checking gpg signature
sha256 96e7199d7935be33cf6b1161e955b2aab40ab77ecdf2a19cea4fc1193f457edc lftp-4.9.3.tar.xz
# Hash for license file:
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING

77
package/lftp/lftp.mk Normal file
View File

@@ -0,0 +1,77 @@
################################################################################
#
# lftp
#
################################################################################
LFTP_VERSION = 4.9.3
LFTP_SOURCE = lftp-$(LFTP_VERSION).tar.xz
LFTP_SITE = http://lftp.yar.ru/ftp
LFTP_LICENSE = GPL-3.0+
LFTP_LICENSE_FILES = COPYING
LFTP_CPE_ID_VALID = YES
LFTP_DEPENDENCIES = readline zlib host-pkgconf
# Help lftp finding readline and zlib
LFTP_CONF_OPTS = \
--with-readline=$(STAGING_DIR)/usr \
--with-readline-lib="`$(PKG_CONFIG_HOST_BINARY) --libs readline`" \
--with-zlib=$(STAGING_DIR)/usr
ifneq ($(BR2_STATIC_LIBS),y)
LFTP_CONF_OPTS += --with-modules
endif
ifeq ($(BR2_PACKAGE_EXPAT)$(BR2_PACKAGE_LFTP_PROTO_HTTP),yy)
LFTP_DEPENDENCIES += expat
LFTP_CONF_OPTS += --with-expat=$(STAGING_DIR)/usr
else
LFTP_CONF_OPTS += --without-expat
endif
ifeq ($(BR2_PACKAGE_GNUTLS),y)
LFTP_DEPENDENCIES += gnutls
LFTP_CONF_OPTS += --with-gnutls
else
LFTP_CONF_OPTS += --without-gnutls
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LFTP_DEPENDENCIES += openssl
LFTP_CONF_OPTS += --with-openssl
else
LFTP_CONF_OPTS += --without-openssl
endif
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
LFTP_DEPENDENCIES += libidn2
LFTP_CONF_OPTS += --with-libidn2=$(STAGING_DIR)/usr
else
LFTP_CONF_OPTS += --without-libidn2
endif
# Remove /usr/share/lftp
define LFTP_REMOVE_DATA
$(RM) -fr $(TARGET_DIR)/usr/share/lftp
endef
LFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_DATA
# Optional commands and protocols
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_MIRROR) += cmd-mirror.so
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_SLEEP) += cmd-sleep.so
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_TORRENT) += cmd-torrent.so
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FISH) += proto-fish.so
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FTP) += proto-ftp.so
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_HTTP) += proto-http.so
LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_SFTP) += proto-sftp.so
define LFTP_REMOVE_MODULES
for f in $(LFTP_MODULES_TO_REMOVE-) ; do \
$(RM) -f $(TARGET_DIR)/usr/lib/lftp/$(LFTP_VERSION)/$$f ; \
done
endef
LFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_MODULES
$(eval $(autotools-package))