summaryrefslogtreecommitdiffstats
path: root/http
diff options
context:
space:
mode:
authorPavel Vinogradov2021-11-07 20:46:58 -0500
committerPavel Vinogradov2021-11-07 20:46:58 -0500
commit1242819bad2bbba901c8918a319cc6b21bba2c3b (patch)
tree5566929bbc636370fe3f024f693a2def6b89f1e8 /http
parente83c666e8f44fbfa047538e1937c816ed3bf8b3a (diff)
http/hgtcp2: new spell, IETF QUIC protocol implementation
Diffstat (limited to 'http')
-rwxr-xr-xhttp/ngtcp2/DEPENDS30
-rwxr-xr-xhttp/ngtcp2/DETAILS15
-rw-r--r--http/ngtcp2/HISTORY3
-rwxr-xr-xhttp/ngtcp2/PREPARE2
-rwxr-xr-xhttp/ngtcp2/PRE_BUILD4
5 files changed, 54 insertions, 0 deletions
diff --git a/http/ngtcp2/DEPENDS b/http/ngtcp2/DEPENDS
new file mode 100755
index 0000000000..ad25b70792
--- /dev/null
+++ b/http/ngtcp2/DEPENDS
@@ -0,0 +1,30 @@
+depends autoconf &&
+depends automake &&
+depends git &&
+depends pkgconfig &&
+depends libtool &&
+
+optional_depends gnutls \
+ "--with-gnutls" \
+ "--without-gnutls" \
+ "for GnuTLS crypto backend" &&
+
+optional_depends libev \
+ "--with-libev" \
+ "--without-libev" \
+ "for examples" &&
+
+if is_depends_enabled "${SPELL}" "libev" ; then
+ depends nghttp3 "--with-libnghttp3"
+else
+ optional_depends nghttp3 \
+ "--with-libnghttp3" \
+ "--without-libnghttp3" \
+ "for HTTP/3 support"
+fi
+
+# Needs QUIC support in SSL
+#optional_depends SSL \
+# "--with-openssl" \
+# "--without-openssl" \
+# "for SSL crypto backend"
diff --git a/http/ngtcp2/DETAILS b/http/ngtcp2/DETAILS
new file mode 100755
index 0000000000..c598d9a320
--- /dev/null
+++ b/http/ngtcp2/DETAILS
@@ -0,0 +1,15 @@
+. "${GRIMOIRE}/FUNCTIONS"
+ SPELL="ngtcp2"
+ VERSION="$(get_scm_version)"
+ SOURCE="${SPELL}-git.tar.xz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-git"
+ SOURCE_URL="git://github.com/${SPELL}/${SPELL}:${SPELL}-git:main"
+ SOURCE_IGNORE="volatile"
+ FORCE_DOWNLOAD="on"
+ WEB_SITE="https://github.com/ngtcp2/ngtcp2"
+ LICENSE[0]="MIT"
+ ENTERED="20211107"
+ SHORT="IETF QUIC protocol implementation"
+cat << EOF
+ngtcp2 project is an effort to implement RFC9000 QUIC protocol.
+EOF
diff --git a/http/ngtcp2/HISTORY b/http/ngtcp2/HISTORY
new file mode 100644
index 0000000000..b53c9cd4dc
--- /dev/null
+++ b/http/ngtcp2/HISTORY
@@ -0,0 +1,3 @@
+2021-11-07 Pavel Vinogradov <public@sourcemage.org>
+ * DEPENDS, DETAILS, PRE_BUILD, PREPARE: created
+
diff --git a/http/ngtcp2/PREPARE b/http/ngtcp2/PREPARE
new file mode 100755
index 0000000000..f8b7d7e3e2
--- /dev/null
+++ b/http/ngtcp2/PREPARE
@@ -0,0 +1,2 @@
+. ${GRIMOIRE}/FUNCTIONS &&
+prepare_select_branch
diff --git a/http/ngtcp2/PRE_BUILD b/http/ngtcp2/PRE_BUILD
new file mode 100755
index 0000000000..dcf04f5472
--- /dev/null
+++ b/http/ngtcp2/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+autoreconf -i