Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging / Packages / nginx-mod-headers-more
Commits: eba7798a by Massimiliano Torromeo at 2025-04-25T11:13:25+02:00 upgpkg: 0.38-5: Added load_module configuration file in /etc/nginx/modules.d - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,12 +1,13 @@ pkgbase = nginx-mod-headers-more pkgdesc = Nginx module to set and clear input and output headers pkgver = 0.38 - pkgrel = 4 + pkgrel = 5 url = https://github.com/openresty/headers-more-nginx-module arch = x86_64 license = BSD-2-Clause makedepends = nginx makedepends = nginx-src + backup = etc/nginx/modules.d/20-headers-more.conf source = https://github.com/openresty/headers-more-nginx-module/archive/v0.38/headers-more-0.38.tar.gz sha256sums = febf7271c0c3de69adbd02c1e98ee43e91a60eeb6b27abfb77b5b206fda5215a ===================================== PKGBUILD ===================================== @@ -2,7 +2,7 @@ pkgname=nginx-mod-headers-more pkgver=0.38 -pkgrel=4 +pkgrel=5 _modname="${pkgname#nginx-mod-}" @@ -12,10 +12,9 @@ makedepends=('nginx' 'nginx-src') url="https://github.com/openresty/headers-more-nginx-module" license=('BSD-2-Clause') -source=( - https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz -) +source=(https://github.com/openresty/$_modname-nginx-module/archive/v$pkgver/$_modname-$pkgver.tar.gz) sha256sums=('febf7271c0c3de69adbd02c1e98ee43e91a60eeb6b27abfb77b5b206fda5215a') +backup=('etc/nginx/modules.d/20-headers-more.conf') prepare() { mkdir -p build @@ -26,7 +25,7 @@ prepare() { build() { cd build - /usr/src/nginx/configure \ + auto/configure \ --with-ld-opt="$LDFLAGS" \ --with-compat \ --add-dynamic-module=../$_modname-nginx-module-$pkgver @@ -41,11 +40,13 @@ package() { depends+=(nginx) fi + install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown \ + "$pkgdir"/usr/share/licenses/$pkgname/README.markdown + install -dm0755 "$pkgdir"/etc/nginx/modules.d + cd build/objs for mod in *.so; do install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod + echo "load_module \"/usr/lib/nginx/modules/$mod\";" >> "$pkgdir/etc/nginx/modules.d/20-headers-more.conf" done - - install -Dm644 "$srcdir"/$_modname-nginx-module-$pkgver/README.markdown \ - "$pkgdir"/usr/share/licenses/$pkgname/README.markdown } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/nginx-mod-headers-more/-/commit/eba7798a86f956058bf549e10a23dc6661d81e5a -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/nginx-mod-headers-more/-/commit/eba7798a86f956058bf549e10a23dc6661d81e5a You're receiving this email because of your account on gitlab.archlinux.org.