Initial Commit
- initial default booting image
This commit is contained in:
41
package/gnutls/Config.in
Normal file
41
package/gnutls/Config.in
Normal file
@@ -0,0 +1,41 @@
|
||||
config BR2_PACKAGE_GNUTLS
|
||||
bool "gnutls"
|
||||
# https://gitlab.com/gnutls/gnutls/issues/203
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_LIBTASN1
|
||||
select BR2_PACKAGE_LIBUNISTRING
|
||||
select BR2_PACKAGE_NETTLE
|
||||
help
|
||||
GnuTLS is a secure communications library implementing the SSL
|
||||
and TLS protocols and technologies around them.
|
||||
|
||||
https://www.gnutls.org/
|
||||
|
||||
if BR2_PACKAGE_GNUTLS
|
||||
|
||||
config BR2_PACKAGE_GNUTLS_OPENSSL
|
||||
bool "OpenSSL compatibility library"
|
||||
help
|
||||
Install OpenSSL compatibility library.
|
||||
|
||||
config BR2_PACKAGE_GNUTLS_TOOLS
|
||||
bool "install tools"
|
||||
help
|
||||
Install GnuTLS command line tools for various cryptographic
|
||||
tasks.
|
||||
|
||||
config BR2_PACKAGE_GNUTLS_ENABLE_SSL2
|
||||
bool "enable SSLv2"
|
||||
help
|
||||
Enable SSLv2 protocol.
|
||||
|
||||
config BR2_PACKAGE_GNUTLS_ENABLE_GOST
|
||||
bool "enable GOST"
|
||||
help
|
||||
Enable GOST cipher.
|
||||
|
||||
endif
|
||||
|
||||
comment "gnutls needs a toolchain w/ wchar, dynamic library"
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
||||
7
package/gnutls/gnutls.hash
Normal file
7
package/gnutls/gnutls.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.13.tar.xz.sig
|
||||
sha256 ffed8ec1bf09c2426d4f14aae377de4753b53e537d685e604e99a8b16ca9c97e gnutls-3.8.13.tar.xz
|
||||
# Locally calculated
|
||||
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 COPYING
|
||||
sha256 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 COPYING.LESSERv2
|
||||
sha256 5e4aca90e8e08e47558dfd21e2a42251a139242b0016a06708739eeb8f0da60c README.md
|
||||
134
package/gnutls/gnutls.mk
Normal file
134
package/gnutls/gnutls.mk
Normal file
@@ -0,0 +1,134 @@
|
||||
################################################################################
|
||||
#
|
||||
# gnutls
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# When bumping, make sure *all* --without-libfoo-prefix options are in GNUTLS_CONF_OPTS
|
||||
GNUTLS_VERSION_MAJOR = 3.8
|
||||
GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).13
|
||||
GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
|
||||
GNUTLS_SITE = https://www.gnupg.org/ftp/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
|
||||
GNUTLS_LICENSE = LGPL-2.1+ (core library)
|
||||
GNUTLS_LICENSE_FILES = COPYING.LESSERv2 README.md
|
||||
|
||||
GNUTLS_DEPENDENCIES = host-pkgconf libtasn1 libunistring nettle
|
||||
GNUTLS_CPE_ID_VENDOR = gnu
|
||||
# Don't add an optional dependency on tpm2-tss as it creates a
|
||||
# circular dependency: tpm2-tss -> libcurl -> gnutls -> tmp2-tss.
|
||||
GNUTLS_CONF_OPTS = \
|
||||
--disable-doc \
|
||||
--disable-libdane \
|
||||
--disable-rpath \
|
||||
--disable-tests \
|
||||
--without-included-unistring \
|
||||
--without-libcrypto-prefix \
|
||||
--without-libdl-prefix \
|
||||
--without-libev-prefix \
|
||||
--without-libiconv-prefix \
|
||||
--without-libintl-prefix \
|
||||
--without-libpthread-prefix \
|
||||
--without-libseccomp-prefix \
|
||||
--without-librt-prefix \
|
||||
--without-libz-prefix \
|
||||
--without-tpm \
|
||||
--without-tpm2 \
|
||||
$(if $(BR2_PACKAGE_GNUTLS_TOOLS),--enable-tools,--disable-tools) \
|
||||
$(if $(BR2_PACKAGE_GNUTLS_ENABLE_SSL2),--enable,--disable)-ssl2-support \
|
||||
$(if $(BR2_PACKAGE_GNUTLS_ENABLE_GOST),--enable,--disable)-gost
|
||||
GNUTLS_CONF_ENV = gl_cv_socket_ipv6=yes \
|
||||
ac_cv_header_wchar_h=$(if $(BR2_USE_WCHAR),yes,no) \
|
||||
gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no) \
|
||||
gt_cv_c_wint_t=$(if $(BR2_USE_WCHAR),yes,no) \
|
||||
gl_cv_func_gettimeofday_clobber=no
|
||||
GNUTLS_INSTALL_STAGING = YES
|
||||
|
||||
HOST_GNUTLS_DEPENDENCIES = host-pkgconf host-libtasn1 host-libunistring \
|
||||
host-nettle host-p11-kit
|
||||
HOST_GNUTLS_CONF_OPTS = \
|
||||
--disable-doc \
|
||||
--disable-libdane \
|
||||
--disable-rpath \
|
||||
--disable-tests \
|
||||
--without-included-unistring \
|
||||
--without-libcrypto-prefix \
|
||||
--without-libdl-prefix \
|
||||
--without-libev-prefix \
|
||||
--without-libiconv-prefix \
|
||||
--without-libintl-prefix \
|
||||
--without-libpthread-prefix \
|
||||
--without-libseccomp-prefix \
|
||||
--without-librt-prefix \
|
||||
--without-libz-prefix \
|
||||
--without-tpm \
|
||||
--without-tpm2 \
|
||||
--disable-openssl-compatibility \
|
||||
--without-brotli \
|
||||
--without-idn \
|
||||
--with-p11-kit \
|
||||
--without-zlib \
|
||||
--without-zstd
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GNUTLS_OPENSSL),y)
|
||||
GNUTLS_LICENSE += , GPL-3.0+ (gnutls-openssl library)
|
||||
GNUTLS_LICENSE_FILES += COPYING
|
||||
GNUTLS_CONF_OPTS += --enable-openssl-compatibility
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --disable-openssl-compatibility
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
||||
GNUTLS_CONF_OPTS += --with-brotli
|
||||
GNUTLS_DEPENDENCIES += brotli
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --without-brotli
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)
|
||||
GNUTLS_CONF_OPTS += --enable-cryptodev
|
||||
GNUTLS_DEPENDENCIES += cryptodev-linux
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
|
||||
GNUTLS_CONF_OPTS += --with-idn
|
||||
GNUTLS_DEPENDENCIES += libidn2
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --without-idn
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_P11_KIT),y)
|
||||
GNUTLS_CONF_OPTS += --with-p11-kit
|
||||
GNUTLS_DEPENDENCIES += p11-kit
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --without-p11-kit
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
GNUTLS_CONF_OPTS += --with-zlib
|
||||
GNUTLS_DEPENDENCIES += zlib
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
GNUTLS_CONF_OPTS += --with-zstd
|
||||
GNUTLS_DEPENDENCIES += zstd
|
||||
else
|
||||
GNUTLS_CONF_OPTS += --without-zstd
|
||||
endif
|
||||
|
||||
# Provide a default CA cert location
|
||||
ifeq ($(BR2_PACKAGE_P11_KIT),y)
|
||||
GNUTLS_CONF_OPTS += --with-default-trust-store-pkcs11=pkcs11:model=p11-kit-trust
|
||||
else ifeq ($(BR2_PACKAGE_CA_CERTIFICATES),y)
|
||||
GNUTLS_CONF_OPTS += --with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
GNUTLS_LIBS += -latomic
|
||||
endif
|
||||
|
||||
GNUTLS_CONF_ENV += LIBS="$(GNUTLS_LIBS)"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user