Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging / Packages / nginx-mod-modsecurity
Commits: 827e5e55 by David Runge at 2025-01-15T14:47:33+01:00 Fix SRCINFO output for nginx dependency Signed-off-by: David Runge <[email protected]> - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -21,4 +21,4 @@ pkgbase = nginx-mod-modsecurity pkgname = nginx-mod-modsecurity depends = libmodsecurity - depends = nginx= + depends = nginx ===================================== PKGBUILD ===================================== @@ -41,9 +41,12 @@ build() { } package() { - local _nginx_version=$(nginx -v 2>&1) - _nginx_version=${_nginx_version/* nginx\/} - depends+=("nginx=${_nginx_version}") + if [[ "$BUILDTOOL" == devtools ]]; then + local nginx_dep="nginx=$(nginx -v 2>&1 | sed 's|.*/||')" + depends+=($nginx_dep) + else + depends+=(nginx) + fi cd build/objs for mod in *.so; do View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/nginx-mod-modsecurity/-/commit/827e5e554205f87e0c972959bbce384d20df0dd6 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/nginx-mod-modsecurity/-/commit/827e5e554205f87e0c972959bbce384d20df0dd6 You're receiving this email because of your account on gitlab.archlinux.org.
