Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging /
Packages / nginx-mod-srcache
Commits:
e174ba3b by Massimiliano Torromeo at 2024-06-29T10:37:15+02:00
upgpkg: 0.33-5: rebuild with correct ldflags
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = nginx-mod-srcache
pkgdesc = Nginx module for transparent subrequest-based caching layout
for arbitrary locations
pkgver = 0.33
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/openresty/srcache-nginx-module
arch = x86_64
license = BSD-2-Clause
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=nginx-mod-srcache
pkgver=0.33
-pkgrel=4
+pkgrel=5
_modname="${pkgname#nginx-mod-}"
@@ -18,11 +18,19 @@ source=(
validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin
<[email protected]>
sha256sums=('1ffd3e244a52bc2ad31661b038fa20fab3145dea506d97f53c2ac80b55eb38d3')
-build() {
- cp -r /usr/src/nginx .
+prepare() {
+ mkdir -p build
+ cd build
+ ln -sf /usr/src/nginx/auto
+ ln -sf /usr/src/nginx/src
+}
- cd "$srcdir"/nginx
- ./configure --with-compat
--add-dynamic-module=../$_modname-nginx-module-$pkgver
+build() {
+ cd build
+ /usr/src/nginx/configure \
+ --with-ld-opt="$LDFLAGS" \
+ --with-compat \
+ --add-dynamic-module=../$_modname-nginx-module-$pkgver
make modules
}
@@ -31,7 +39,7 @@ package() {
_nginx_version=${_nginx_version/* nginx\/}
depends+=("nginx=${_nginx_version}")
- cd "$srcdir"/nginx/objs
+ cd build/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/nginx-mod-srcache/-/commit/e174ba3b1e60f4076487bf37c784d18e8ef0433f
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/nginx-mod-srcache/-/commit/e174ba3b1e60f4076487bf37c784d18e8ef0433f
You're receiving this email because of your account on gitlab.archlinux.org.