initial import
This commit is contained in:
67
nghttp2/PKGBUILD
Normal file
67
nghttp2/PKGBUILD
Normal file
@@ -0,0 +1,67 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=nghttp2
|
||||
pkgver=1.43.0
|
||||
_debver=$pkgver
|
||||
_debrel=1
|
||||
pkgrel=4
|
||||
pkgdesc="Framing layer of HTTP/2 is implemented as a reusable C library"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://nghttp2.org/'
|
||||
license=('Expat')
|
||||
depends=('libressl' 'libev' 'zlib' 'libxml2' 'jansson' 'jemalloc' 'c-ares' 'libnghttp2')
|
||||
makedepends=('quilt')
|
||||
options=(!emptydirs)
|
||||
source=("https://github.com/nghttp2/nghttp2/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz"
|
||||
"https://deb.debian.org/debian/pool/main/n/$pkgname/${pkgname}_${_debver}-${_debrel}+deb11u1.debian.tar.xz"
|
||||
"nghttpx.initd"
|
||||
"nghttpx.run")
|
||||
backup=("etc/nghttpx/nghttpx.conf"
|
||||
"etc/logrotate.d/nghttpx")
|
||||
sha512sums=('eac69ba356870a1cba420a06771082897be8dd40a68f4e04223f41f3d22626e4f5b3766d3dbcc496dd212be01f64c3ac280a2ebddd31dd88f7350c20f56e5d39'
|
||||
'e280509589588df21250da192c327f86b77af289b8b4c67c23545635f3a50032ff63f511dd4271883d12afca2aa5d4e4d9d6f358ed15340c8051c67064f5862d'
|
||||
'959e39f0f26c7f92bd572c31eef901c271f528371b8b7df74b4cd213cdf303524a328809d7891d9c0892b4e2b4823b497624b06eec3b42b8a60a23cbe1421e07'
|
||||
'a28acfa333b09fde6f06966c0984d85f3a6b2dd50cff7faf42da749bb59ed9f7eab857a35286a059baf6c98d8e845300a8b23daea0a55eb572716b548e8e85af')
|
||||
|
||||
prepare() {
|
||||
cd nghttp2-$pkgver
|
||||
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
# Doesn't apply
|
||||
rm -v debian/patches/0001-Make-fetch-ocsp-response-use-python3.patch
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
autoreconf -vi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd nghttp2-$pkgver
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-examples \
|
||||
--disable-python-bindings
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd nghttp2-$pkgver
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
make -C lib DESTDIR="$pkgdir" uninstall
|
||||
|
||||
install -Dm0755 "$srcdir/nghttpx.initd" "${pkgdir}/etc/init.d/nghttpx"
|
||||
install -Dm0755 "$srcdir/nghttpx.run" "${pkgdir}/etc/sv/nghttpx/run"
|
||||
|
||||
install -Dm644 contrib/nghttpx-logrotate "$pkgdir/etc/logrotate.d/nghttpx"
|
||||
install -Dm644 nghttpx.conf.sample "$pkgdir/etc/nghttpx/nghttpx.conf"
|
||||
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
13
nghttp2/nghttpx.initd
Normal file
13
nghttp2/nghttpx.initd
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2019 Hyperbola Project
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="HTTP/2 reverse proxy service"
|
||||
|
||||
command="/usr/sbin/nghttpx"
|
||||
command_args="--conf /etc/nghttpx/nghttpx.conf --daemon"
|
||||
pidfile="/var/run/nghttpx.pid"
|
||||
|
||||
depend() {
|
||||
use dns net
|
||||
}
|
||||
2
nghttp2/nghttpx.run
Normal file
2
nghttp2/nghttpx.run
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec nghttpx --conf /etc/nghttpx/nghttpx.conf --daemon
|
||||
Reference in New Issue
Block a user