This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ceb2d2edaf3f3755f7407e522cb59fa033d1f9f3 Mon Sep 17 00:00:00 2001 | |
From: Ricardo Constantino <wiiaboo@gmail.com> | |
Date: Wed, 10 Mar 2021 22:53:32 +0000 | |
Subject: [PATCH] Update to build against nginx-mainline-src | |
--- | |
.SRCINFO | 10 +++------- | |
PKGBUILD | 31 ++++++++++++++++--------------- | |
2 files changed, 19 insertions(+), 22 deletions(-) | |
diff --git a/.SRCINFO b/.SRCINFO | |
index 50ca72a..9410d51 100644 | |
--- a/.SRCINFO | |
+++ b/.SRCINFO | |
@@ -1,17 +1,13 @@ | |
pkgbase = nginx-mainline-mod-fancyindex | |
pkgdesc = Fancy indexes module for the nginx web server | |
pkgver = 0.5.1 | |
- pkgrel = 4 | |
+ pkgrel = 5 | |
url = https://github.com/aperezdc/ngx-fancyindex | |
arch = x86_64 | |
license = BSD | |
- depends = nginx-mainline>=1.19.8 | |
- source = https://nginx.org/download/nginx-1.19.8.tar.gz | |
- source = https://nginx.org/download/nginx-1.19.8.tar.gz.asc | |
+ makedepends = nginx-mainline-src | |
+ depends = nginx-mainline | |
source = nginx-mainline-mod-fancyindex-0.5.1.tar.gz::https://github.com/aperezdc/ngx-fancyindex/archive/v0.5.1.tar.gz | |
- validpgpkeys = B0F4253373F8F6F510D42178520A9993A1C052F8 | |
- sha256sums = 308919b1a1359315a8066578472f998f14cb32af8de605a3743acca834348b05 | |
- sha256sums = SKIP | |
sha256sums = 238bd5521d6c9b55780e6871339a7ea79508b9a6758ad2fa4451f2dfe26d94c9 | |
pkgname = nginx-mainline-mod-fancyindex | |
diff --git a/PKGBUILD b/PKGBUILD | |
index eedc501..1696eca 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -4,34 +4,35 @@ | |
pkgname=nginx-mainline-mod-fancyindex | |
pkgver=0.5.1 | |
-pkgrel=4 | |
+pkgrel=5 | |
_modname="${pkgname#nginx-mainline-mod-}" | |
-_nginxver=1.19.8 | |
pkgdesc="Fancy indexes module for the nginx web server" | |
arch=('x86_64') | |
url="https://github.com/aperezdc/ngx-fancyindex" | |
license=('BSD') | |
-depends=("nginx-mainline>=${_nginxver}") | |
-source=(https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc} | |
- "${pkgname}-${pkgver}.tar.gz::https://github.com/aperezdc/ngx-$_modname/archive/v$pkgver.tar.gz") | |
-validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin@mdounin.ru> | |
-sha256sums=('308919b1a1359315a8066578472f998f14cb32af8de605a3743acca834348b05' | |
- 'SKIP' | |
- '238bd5521d6c9b55780e6871339a7ea79508b9a6758ad2fa4451f2dfe26d94c9') | |
+depends=(nginx-mainline) | |
+makedepends=(nginx-mainline-src) | |
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/aperezdc/ngx-$_modname/archive/v$pkgver.tar.gz") | |
+validpgpkeys=() | |
+sha256sums=('238bd5521d6c9b55780e6871339a7ea79508b9a6758ad2fa4451f2dfe26d94c9') | |
+prepare() { | |
+ mkdir -p build | |
+ cd build | |
+ ln -sf /usr/src/nginx/auto | |
+ ln -sf /usr/src/nginx/src | |
+} | |
build() { | |
- cd "nginx-$_nginxver" | |
- _opts=$(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's/^[^:]+: //') | |
- IFS=$'\n' _opts=( $(xargs -n1 <<< "$_opts") ) | |
- ./configure "${_opts[@]}" \ | |
+ cd build | |
+ /usr/src/nginx/configure --with-compat \ | |
--add-dynamic-module=../ngx-"$_modname-$pkgver" | |
make modules | |
} | |
package() { | |
- cd "nginx-$_nginxver/objs" | |
+ cd build/objs | |
for _mod in *.so; do | |
- install -D $_mod "$pkgdir/usr/lib/nginx/modules/$_mod" | |
+ install -Dm755 $_mod "$pkgdir/usr/lib/nginx/modules/$_mod" | |
done | |
install -Dm0644 "$srcdir/ngx-$_modname-$pkgver/LICENSE" \ | |
"$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
-- | |
2.30.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment