]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libressl: new package
authorAdam Duskett <Aduskett@gmail.com>
Thu, 6 Jul 2017 14:40:50 +0000 (10:40 -0400)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 8 Jul 2017 18:54:21 +0000 (20:54 +0200)
Libressl is a fork of openssl from OpenSSL in 2014.  Its goal is to
modernize the OpenSSL codebase, improve security, and apply best
practice development processes.

Right now, libressl is API compatible with OpenSSL 1.0.1, but does not
yet include all new APIs from OpenSSL 1.0.2 and later.

Signed-off-by: Adam Duskett <aduskett@codeblue.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/libressl/0001-remove-test-z-DESTDIR-from-ltmain.patch [new file with mode: 0644]
package/libressl/Config.in [new file with mode: 0644]
package/libressl/libressl.hash [new file with mode: 0644]
package/libressl/libressl.mk [new file with mode: 0644]

index c409f2822a503ec1ac88738ed474075a89b238d7..c9975008424c3927ea5c0dfe3cfbc3b171184644 100644 (file)
@@ -34,6 +34,7 @@ F:    package/audit/
 F:     package/checkpolicy/
 F:     package/gstreamer1/gst1-vaapi/
 F:     package/janus-gateway/
+F:     package/libressl/
 F:     package/libselinux/
 F:     package/libsemanage/
 F:     package/libsepol/
index 46c78a0121cbbe311e813c20417a2ca2d687922e..e675bca09b6178b33328ac75043a0eaddadf82bf 100644 (file)
@@ -988,6 +988,8 @@ menu "Crypto"
        source "package/libuecc/Config.in"
        source "package/mbedtls/Config.in"
        source "package/nettle/Config.in"
+       # libressl is a openssl replacement
+       source "package/libressl/Config.in"
        source "package/openssl/Config.in"
        source "package/rhash/Config.in"
        source "package/tinydtls/Config.in"
diff --git a/package/libressl/0001-remove-test-z-DESTDIR-from-ltmain.patch b/package/libressl/0001-remove-test-z-DESTDIR-from-ltmain.patch
new file mode 100644 (file)
index 0000000..901a48c
--- /dev/null
@@ -0,0 +1,28 @@
+From 4317d43d74996ad7ec3270b1e786e91a19312309 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <Adamduskett@outlook.com>
+Date: Sat, 24 Jun 2017 13:08:57 -0400
+Subject: [PATCH] remove test -z "$DESTDIR" from ltmain.sh.
+
+Without this patch, buildroot-libtool-v2.4.patch will fail to apply.
+
+Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
+---
+ ltmain.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ltmain.sh b/ltmain.sh
+index 5d29bd6..6c90601 100644
+--- a/ltmain.sh
++++ b/ltmain.sh
+@@ -6658,7 +6658,7 @@ func_mode_link ()
+         *)
+           if test "$installed" = no; then
+             func_append notinst_deplibs " $lib"
+-            test -z "$DESTDIR" && need_relink=yes
++            need_relink=yes
+           fi
+           ;;
+         esac
+-- 
+2.9.4
+
diff --git a/package/libressl/Config.in b/package/libressl/Config.in
new file mode 100644 (file)
index 0000000..0a1c9e2
--- /dev/null
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_LIBRESSL
+       bool "libressl"
+       depends on !BR2_PACKAGE_OPENSSL
+       help
+         LibreSSL is a version of the TLS/crypto stack forked from
+         OpenSSL in 2014, with goals of modernizing the codebase,
+         improving security, and applying best practice development
+         processes.
+
+         http://www.libressl.org/
+
+if BR2_PACKAGE_LIBRESSL
+
+config BR2_PACKAGE_LIBRESSL_BIN
+       bool "openssl binary"
+       help
+         Install the openssl binary to the target file system. This is
+         a command line tool for doing various cryptographic stuff.
+
+endif
diff --git a/package/libressl/libressl.hash b/package/libressl/libressl.hash
new file mode 100644 (file)
index 0000000..9ffe964
--- /dev/null
@@ -0,0 +1,2 @@
+# From https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/SHA256
+sha256 107a5b522fbb8318d4c3be668075e5e607296f0a9255d71674caa94571336efa        libressl-2.5.4.tar.gz
diff --git a/package/libressl/libressl.mk b/package/libressl/libressl.mk
new file mode 100644 (file)
index 0000000..6941447
--- /dev/null
@@ -0,0 +1,20 @@
+################################################################################
+#
+# libressl
+#
+################################################################################
+
+LIBRESSL_VERSION = 2.5.4
+LIBRESSL_SITE = https://ftp.openbsd.org/pub/OpenBSD/LibreSSL
+LIBRESSL_LICENSE = ISC (new additions), OpenSSL or SSLeay (original OpenSSL code)
+LIBRESSL_LICENSE_FILES = COPYING
+LIBRESSL_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_LIBRESSL_BIN),)
+define LIBRESSL_REMOVE_BIN
+       $(RM) -f $(TARGET_DIR)/usr/bin/openssl
+endef
+LIBRESSL_POST_INSTALL_TARGET_HOOKS += LIBRESSL_REMOVE_BIN
+endif
+
+$(eval $(autotools-package))