2021-07-24 10:00:43 +00:00
|
|
|
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
|
|
|
|
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
|
|
|
|
|
|
|
pkgname=nginx-mainline-mod-headers-more
|
2022-10-09 06:20:01 +00:00
|
|
|
pkgver=0.34
|
2022-11-02 07:03:55 +00:00
|
|
|
pkgrel=2
|
2022-10-09 06:20:01 +00:00
|
|
|
pkgdesc='Set and clear input and output headers'
|
2021-07-24 10:00:43 +00:00
|
|
|
arch=('x86_64')
|
2022-10-09 06:20:01 +00:00
|
|
|
url='https://github.com/openresty/headers-more-nginx-module'
|
2021-07-24 10:00:43 +00:00
|
|
|
_modname="${url##*/}"
|
|
|
|
license=('BSD')
|
2022-11-02 07:03:55 +00:00
|
|
|
depends=('nginx-mainline=1.23.2')
|
2021-07-24 10:00:43 +00:00
|
|
|
makedepends=('nginx-mainline-src')
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
2022-10-09 06:20:01 +00:00
|
|
|
b2sums=('48badf603b93601b11c837057760f768ef2579062786bb366795617635747b654cecafa3a230eec1a3e442ab768fb068867ceb93385b14b6452b621764acfd3f')
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
ln -sf -t build /usr/src/nginx/{auto,src}
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2022-10-09 06:20:01 +00:00
|
|
|
|
|
|
|
/usr/src/nginx/configure \
|
|
|
|
--with-compat \
|
|
|
|
--add-dynamic-module="$srcdir/$_modname-$pkgver"
|
|
|
|
|
2021-07-24 10:00:43 +00:00
|
|
|
make modules
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# modules
|
|
|
|
install -vDm755 -t "$pkgdir/usr/lib/nginx/modules" build/objs/*.so
|
|
|
|
|
|
|
|
cd "$_modname-$pkgver"
|
|
|
|
|
|
|
|
# license
|
|
|
|
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
sed -n "507,535p" README.markdown > "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
|
|
|
|
|
|
|
|
# documentation
|
|
|
|
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.markdown
|
|
|
|
}
|