From b59acfd358c18adb0fe7137271b72e9cca142b44 Mon Sep 17 00:00:00 2001 From: Amol Bhave Date: Tue, 7 May 2019 01:23:55 -0700 Subject: [PATCH] libfizz: Add libfizz package Fizz is a TLS 1.3 implementation. Fizz currently supports TLS 1.3 drafts 28, 26 (both wire-compatible with the final specification), and 23. All major handshake modes are supported, including PSK resumption, early data, client authentication, and HelloRetryRequest. Compile tested: nbg6817 and arc700, openwrt master Signed-off-by: Amol Bhave --- libs/libfizz/Makefile | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 libs/libfizz/Makefile diff --git a/libs/libfizz/Makefile b/libs/libfizz/Makefile new file mode 100644 index 000000000..1449fae13 --- /dev/null +++ b/libs/libfizz/Makefile @@ -0,0 +1,44 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=libfizz +PKG_VERSION:=2019.05.06.00 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/facebookincubator/fizz/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=80d4089cef655192733a7b0536bd3e2dab9baf143ed99510308064ff4842ae11 +PKG_BUILD_DIR:=$(BUILD_DIR)/fizz-$(PKG_VERSION) + +PKG_LICENSE:=BSD +PKG_LICENSE_FILES:=LICENSE + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +PKG_BUILD_PARALLEL:=1 +CMAKE_SOURCE_SUBDIR:=fizz +CMAKE_OPTIONS:= \ + -DBUILD_EXAMPLES=OFF \ + -DBUILD_SHARED_LIBS=ON +CMAKE_INSTALL:=1 + +define Package/libfizz + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+libfolly +boost +libopenssl +glog +gflags +libevent2 \ + +libdouble-conversion +libsodium + TITLE:=C++14 implementation of the TLS-1.3 standard + URL:=https://github.com/facebookincubator/fizz +endef + +define Package/libfizz/description + C++14 implementation of the TLS-1.3 standard. + Fizz currently supports TLS 1.3 drafts 28, 26 (both wire-compatible with the final specification), and 23. +endef + +define Package/libfizz/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfizz.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libfizz))