diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2016-07-26 08:04:50 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-30 06:03:38 +0700 |
commit | 7e7afbfcb3fcf7bda74e6e855601740787ce4e03 (patch) | |
tree | d20cfb04f4eff08d91d15d61f32dccc01900b295 | |
parent | da33ac50b833eeef66683e8271a3f4dd3e0e2991 (diff) | |
download | slackbuilds-7e7afbfcb3fcf7bda74e6e855601740787ce4e03.tar.gz |
network/nghttp2: Added (HTTP/2 implementation).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/nghttp2/README | 4 | ||||
-rw-r--r-- | network/nghttp2/nghttp2.SlackBuild | 102 | ||||
-rw-r--r-- | network/nghttp2/nghttp2.info | 10 | ||||
-rw-r--r-- | network/nghttp2/slack-desc | 19 |
4 files changed, 135 insertions, 0 deletions
diff --git a/network/nghttp2/README b/network/nghttp2/README new file mode 100644 index 0000000000..3d05758f54 --- /dev/null +++ b/network/nghttp2/README @@ -0,0 +1,4 @@ +nghttp2 is an implementation of HTTP/2 and its header compression +algorithm HPACK in C. +The framing layer of HTTP/2 is implemented as a form of reusable C +library. diff --git a/network/nghttp2/nghttp2.SlackBuild b/network/nghttp2/nghttp2.SlackBuild new file mode 100644 index 0000000000..55ccdc131f --- /dev/null +++ b/network/nghttp2/nghttp2.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh + +# Slackware build script for "nghttp2". + +# Copyright 2016 Marcel Saegebarth <marc@mos6581.de> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=nghttp2 +VERSION=${VERSION:-1.13.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-python-bindings \ + --with-jemalloc \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/nghttp2/nghttp2.info b/network/nghttp2/nghttp2.info new file mode 100644 index 0000000000..6e6f3ebc8f --- /dev/null +++ b/network/nghttp2/nghttp2.info @@ -0,0 +1,10 @@ +PRGNAM="nghttp2" +VERSION="1.13.0" +HOMEPAGE="https://nghttp2.org/" +DOWNLOAD="https://github.com/nghttp2/nghttp2/releases/download/v1.13.0/nghttp2-1.13.0.tar.xz" +MD5SUM="908f5f1b86a1ba8b142ece7129c8a954" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="jansson" +MAINTAINER="Marcel Saegebarth" +EMAIL="marc@mos6581.de" diff --git a/network/nghttp2/slack-desc b/network/nghttp2/slack-desc new file mode 100644 index 0000000000..a1d218da43 --- /dev/null +++ b/network/nghttp2/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +nghttp2: nghttp2 (HTTP/2 implementation) +nghttp2: +nghttp2: nghttp2 is an implementation of HTTP/2 and its header compression +nghttp2: algorithm HPACK in C. +nghttp2: The framing layer of HTTP/2 is implemented as a form of reusable C +nghttp2: library. +nghttp2: +nghttp2: Homepage: https://nghttp2.org/ +nghttp2: +nghttp2: +nghttp2: |