initial buildroot for linux 5.15
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
From: Hilko Bengen <bengen@debian.org>
|
||||
Date: Wed, 27 Apr 2011 00:18:42 +0200
|
||||
Subject: Patched out SSL2 support since it is no longer supported by OpenSSL.
|
||||
|
||||
Now that openssl has dropped SSLv2 support we need to patch it out.
|
||||
Patch picked up from debian patchseries 5.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
---
|
||||
mailx.1 | 2 +-
|
||||
openssl.c | 4 +---
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/mailx.1 b/mailx.1
|
||||
index 417ea04..a02e430 100644
|
||||
--- a/mailx.1
|
||||
+++ b/mailx.1
|
||||
@@ -3575,7 +3575,7 @@ Only applicable if SSL/TLS support is built using OpenSSL.
|
||||
.TP
|
||||
.B ssl-method
|
||||
Selects a SSL/TLS protocol version;
|
||||
-valid values are `ssl2', `ssl3', and `tls1'.
|
||||
+valid values are `ssl3', and `tls1'.
|
||||
If unset, the method is selected automatically,
|
||||
if possible.
|
||||
.TP
|
||||
diff --git a/openssl.c b/openssl.c
|
||||
index b4e33fc..44fe4e5 100644
|
||||
--- a/openssl.c
|
||||
+++ b/openssl.c
|
||||
@@ -216,9 +216,7 @@ ssl_select_method(const char *uhp)
|
||||
|
||||
cp = ssl_method_string(uhp);
|
||||
if (cp != NULL) {
|
||||
- if (equal(cp, "ssl2"))
|
||||
- method = SSLv2_client_method();
|
||||
- else if (equal(cp, "ssl3"))
|
||||
+ if (equal(cp, "ssl3"))
|
||||
method = SSLv3_client_method();
|
||||
else if (equal(cp, "tls1"))
|
||||
method = TLSv1_client_method();
|
||||
@@ -0,0 +1,54 @@
|
||||
From aad28d30af6c3a74c522dd61943788e908860c84 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Duskett <aduskett@gmail.com>
|
||||
Date: Fri, 4 Aug 2017 07:22:47 -0400
|
||||
Subject: [PATCH] fix libressl support
|
||||
|
||||
heirloom-mailx has two small issues when compiling against LibreSSL:
|
||||
- RAND_egd is used (LibreSSL does not support RAND_egd)
|
||||
Solution: "Guard" the code calling RAND_egd
|
||||
|
||||
- SSLv3_client_method function is used (LibreSSL does not support SSLv3)
|
||||
Solution: "Guard" the code with #ifndef OPENSSL_NO_SSL3
|
||||
|
||||
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
||||
---
|
||||
openssl.c | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/openssl.c b/openssl.c
|
||||
index 44fe4e5..c4a1bb7 100644
|
||||
--- a/openssl.c
|
||||
+++ b/openssl.c
|
||||
@@ -137,11 +137,13 @@ ssl_rand_init(void)
|
||||
|
||||
if ((cp = value("ssl-rand-egd")) != NULL) {
|
||||
cp = expand(cp);
|
||||
+#ifndef OPENSSL_NO_EGD
|
||||
if (RAND_egd(cp) == -1) {
|
||||
fprintf(stderr, catgets(catd, CATSET, 245,
|
||||
"entropy daemon at \"%s\" not available\n"),
|
||||
cp);
|
||||
} else
|
||||
+#endif
|
||||
state = 1;
|
||||
} else if ((cp = value("ssl-rand-file")) != NULL) {
|
||||
cp = expand(cp);
|
||||
@@ -216,10 +218,15 @@ ssl_select_method(const char *uhp)
|
||||
|
||||
cp = ssl_method_string(uhp);
|
||||
if (cp != NULL) {
|
||||
+ #ifndef OPENSSL_NO_SSL3
|
||||
if (equal(cp, "ssl3"))
|
||||
method = SSLv3_client_method();
|
||||
else if (equal(cp, "tls1"))
|
||||
method = TLSv1_client_method();
|
||||
+ #else
|
||||
+ if (equal(cp, "tls1"))
|
||||
+ method = TLSv1_client_method();
|
||||
+ #endif
|
||||
else {
|
||||
fprintf(stderr, catgets(catd, CATSET, 244,
|
||||
"Invalid SSL method \"%s\"\n"), cp);
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_HEIRLOOM_MAILX
|
||||
bool "heirloom-mailx"
|
||||
# uses fork()
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_RC2 if BR2_PACKAGE_LIBOPENSSL
|
||||
help
|
||||
Heirloom mailx (previously known as nail) is a mail user
|
||||
agent for Unix systems.
|
||||
|
||||
It can be used as a command-line mail reader, but also more
|
||||
importantly on embedded systems, as a mail composition
|
||||
program and SMTP client, in order to send e-mail from shell
|
||||
scripts. It supports SMTP authentication (login, plain,
|
||||
cram-md5), SMTPS, MIME encoding of attachements, and more.
|
||||
|
||||
http://heirloom.sourceforge.net/mailx.html
|
||||
|
||||
comment "heirloom-mailx needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU
|
||||
@@ -0,0 +1,4 @@
|
||||
# From http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-3.dsc
|
||||
sha256 015ba4209135867f37a0245d22235a392b8bbed956913286b887c2e2a9a421ad heirloom-mailx_12.5.orig.tar.gz
|
||||
# Locally computed
|
||||
sha256 5ddc00aed98a0cf75fc7edfd9f3aeb1e919ae0ad5e9ff55d61f643d62d802b07 COPYING
|
||||
@@ -0,0 +1,47 @@
|
||||
################################################################################
|
||||
#
|
||||
# heirloom-mailx
|
||||
#
|
||||
################################################################################
|
||||
|
||||
HEIRLOOM_MAILX_VERSION = 12.5
|
||||
HEIRLOOM_MAILX_SOURCE = heirloom-mailx_$(HEIRLOOM_MAILX_VERSION).orig.tar.gz
|
||||
HEIRLOOM_MAILX_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/h/heirloom-mailx
|
||||
HEIRLOOM_MAILX_LICENSE = BSD-4-Clause, Bellcore (base64), OpenVision (imap_gssapi), RSA Data Security (md5), Network Working Group (hmac), MPL-1.1 (nss)
|
||||
HEIRLOOM_MAILX_LICENSE_FILES = COPYING
|
||||
HEIRLOOM_MAILX_CPE_ID_VENDOR = heirloom
|
||||
HEIRLOOM_MAILX_CPE_ID_PRODUCT = mailx
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
HEIRLOOM_MAILX_DEPENDENCIES += openssl
|
||||
endif
|
||||
|
||||
define HEIRLOOM_MAILX_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SHELL) ./makeconfig)
|
||||
endef
|
||||
|
||||
HEIRLOOM_MAILX_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
# -fPIC is needed to build with NIOS2 toolchains.
|
||||
HEIRLOOM_MAILX_CFLAGS += -fPIC
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101916),y)
|
||||
HEIRLOOM_MAILX_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
define HEIRLOOM_MAILX_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
||||
CFLAGS="$(HEIRLOOM_MAILX_CFLAGS)" \
|
||||
-C $(@D)
|
||||
endef
|
||||
|
||||
define HEIRLOOM_MAILX_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
PREFIX=/usr \
|
||||
UCBINSTALL=$(INSTALL) \
|
||||
STRIP=/bin/true \
|
||||
DESTDIR=$(TARGET_DIR) \
|
||||
install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user