[Buildroot] [git commit] nghttp2: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Jul 19 14:59:42 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=cfe63dcd632fed002543f51cb0ff44b6a1eaa63b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

nghttp2 is an implementation of HTTP/2 and its header
compression algorithm HPACK in C.

Signed-off-by: Michaël Burtin <michael.burtin at netgem.com>
Signed-off-by: Anisse Astier <anisse.astier.ext at netgem.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/nghttp2/Config.in    |  7 +++++++
 package/nghttp2/nghttp2.hash |  3 +++
 package/nghttp2/nghttp2.mk   | 22 ++++++++++++++++++++++
 5 files changed, 34 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index 3f92cab4fd..3605032da3 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -157,6 +157,7 @@ F:	package/sysdig/
 
 N:	Anisse Astier <anisse at astier.eu>
 F:	package/go/
+F:	package/nghttp2/
 
 N:	Anthony Viallard <viallard at syscom-instruments.com>
 F:	package/gnuplot/
diff --git a/package/Config.in b/package/Config.in
index 08a3eac48a..f5a17492c7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1481,6 +1481,7 @@ menu "Networking"
 	source "package/mongoose/Config.in"
 	source "package/nanomsg/Config.in"
 	source "package/neon/Config.in"
+	source "package/nghttp2/Config.in"
 	source "package/norm/Config.in"
 	source "package/nss-mdns/Config.in"
 	source "package/nss-pam-ldapd/Config.in"
diff --git a/package/nghttp2/Config.in b/package/nghttp2/Config.in
new file mode 100644
index 0000000000..03fe71d097
--- /dev/null
+++ b/package/nghttp2/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_NGHTTP2
+	bool "nghttp2"
+	help
+	  nghttp2 is an implementation of HTTP/2 and its header
+	  compression algorithm HPACK in C.
+
+	  https://nghttp2.org/
diff --git a/package/nghttp2/nghttp2.hash b/package/nghttp2/nghttp2.hash
new file mode 100644
index 0000000000..d000fd56c5
--- /dev/null
+++ b/package/nghttp2/nghttp2.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 f75e8f228217f23aa5eabfbab140e061cda00b7c21e34c891ecfb248d663303f  nghttp2-1.32.0.tar.gz
+sha256 6b94f3abc1aabd0c72a7c7d92a77f79dda7c8a0cb3df839a97890b4116a2de2a  COPYING
diff --git a/package/nghttp2/nghttp2.mk b/package/nghttp2/nghttp2.mk
new file mode 100644
index 0000000000..20bfee75a3
--- /dev/null
+++ b/package/nghttp2/nghttp2.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# nghttp2
+#
+################################################################################
+
+NGHTTP2_VERSION = 1.32.0
+NGHTTP2_SITE = https://github.com/nghttp2/nghttp2/releases/download/v$(NGHTTP2_VERSION)
+NGHTTP2_LICENSE = MIT
+NGHTTP2_LICENSE_FILES = COPYING
+NGHTTP2_INSTALL_STAGING = YES
+NGHTTP2_DEPENDENCIES = host-pkgconf
+NGHTTP2_CONF_OPTS = --enable-lib-only
+
+define NGHTTP2_INSTALL_CLEAN_HOOK
+	# Remove fetch-ocsp-response script unused by library
+	$(Q)$(RM) -rf $(TARGET_DIR)/usr/share/nghttp2
+endef
+
+NGHTTP2_POST_INSTALL_TARGET_HOOKS += NGHTTP2_INSTALL_CLEAN_HOOK
+
+$(eval $(autotools-package))


More information about the buildroot mailing list