From a1afd43a42df227ae345665adfcc5f30e7998310 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 23 Mar 2019 18:36:16 +0100 Subject: [PATCH] nghttp2: update to 1.37.0 --- nghttp2/build.sh | 78 ++++++++++++++++++++++++++++++++++++++++++ nghttp2/meta/ChangeLog | 4 +++ nghttp2/meta/depend | 1 + nghttp2/meta/pkgdef | 24 +++++++++++++ 4 files changed, 107 insertions(+) create mode 100755 nghttp2/build.sh create mode 100644 nghttp2/meta/ChangeLog create mode 100644 nghttp2/meta/depend create mode 100644 nghttp2/meta/pkgdef diff --git a/nghttp2/build.sh b/nghttp2/build.sh new file mode 100755 index 0000000..78fe374 --- /dev/null +++ b/nghttp2/build.sh @@ -0,0 +1,78 @@ +#!/bin/bash +# This is a buildpkg build.sh script +# build.sh helper functions +. ${BUILDPKG_SCRIPTS}/build.sh.functions +# +########################################################### +# Check the following 4 variables before running the script +topdir=nghttp2 +version=1.37.0 +pkgver=1 +source[0]=https://github.com/${topdir}/${topdir}/releases/download/v${version}/${topdir}-${version}.tar.xz +# If there are no patches, simply comment this +#patch[0]= + +# Source function library +. ${BUILDPKG_SCRIPTS}/buildpkg.functions + +# Global settings +export CPPFLAGS="-I$prefix/include" +export LDFLAGS="-L$prefix/lib -R$prefix/lib" +configure_args+=(--disable-static --enable-lib-only) +make_build_target="V=1" +# No python deps from packaged scripts +ignore_deps="TGCpy27" + +reg prep +prep() +{ + generic_prep + if [ "$arch" = "i386" ]; then + # Replacing Wl,-z text with -mimpure-text is a workaround to avoid + # "ld: fatal: relocations remain against allocatable but non-writable sections" + # when linking libnghttp2 + setdir source + sed -i 's|\$wl-z \${wl}text|-mimpure-text|g' configure + fi +} + +reg build +build() +{ + generic_build +} + +reg check +check() +{ + generic_check +} + +reg install +install() +{ + generic_install DESTDIR + doc AUTHORS COPYING* + ${__mv} ${stagedir}${prefix}/${_docdir}/${topdir}/README.rst ${stagedir}${prefix}/${_vdocdir} + ${__rmdir} ${stagedir}${prefix}/${_docdir}/${topdir} + ${__rmdir} ${stagedir}${prefix}/${_bindir} + # manpages for tools that are not packaged + ${__rm} -rf ${stagedir}${prefix}/${_mandir} +} + +reg pack +pack() +{ + generic_pack +} + +reg distclean +distclean() +{ + clean distclean +} + +################################################### +# No need to look below here +################################################### +build_sh $* diff --git a/nghttp2/meta/ChangeLog b/nghttp2/meta/ChangeLog new file mode 100644 index 0000000..dcc06cc --- /dev/null +++ b/nghttp2/meta/ChangeLog @@ -0,0 +1,4 @@ +CHANGELOG +--------- +* Sat Mar 23 2019 Tom G. Christensen - 1.37.0-1 +- Initial build diff --git a/nghttp2/meta/depend b/nghttp2/meta/depend new file mode 100644 index 0000000..ace8f5d --- /dev/null +++ b/nghttp2/meta/depend @@ -0,0 +1 @@ +TGCngh2d nghttp2 auto diff --git a/nghttp2/meta/pkgdef b/nghttp2/meta/pkgdef new file mode 100644 index 0000000..758ab3f --- /dev/null +++ b/nghttp2/meta/pkgdef @@ -0,0 +1,24 @@ +[nghttp2] +pkgname="${pkgprefix}ngh2" +name="$topdir - HTTP/2 C Library" +pkgcat="application" +pkgvendor="https://nghttp2.org/" +pkgdesc="an implementation of HTTP/2 and its header compression algorithm HPACK in C" +pkgver="$pkgver" +files(-,root,bin) +default_docs +$_libdir/libnghttp2.so.* +$_sharedir/$topdir/fetch-ocsp-response + +[nghttp2-devel] +pkgname="${pkgprefix}ngh2d" +name="${topdir}-devel - Development support for nghttp2" +pkgcat="application" +pkgvendor="https://nghttp2.org/" +pkgdesc="Files needed for developing with nghttp2" +pkgver="$pkgver" +files(-,root,bin) +$_includedir +$_libdir/libnghttp2.so +$_libdir/pkgconfig/libnghttp2.pc +