diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2022-11-18 14:59:39 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-09-01 02:00:00 +0200 |
commit | a56c3dcb9b6764578f4959281ff8bdbb57cf2efd (patch) | |
tree | e7fe41f7090a1224c11d0e8ba1d23449ca9e23a0 | |
parent | 1e4f3c8a7aab004e63b475aeb7310f4f9c833a6b (diff) |
gnu: nginx: Patch installation file names.
* gnu/packages/web.scm (nginx)[arguments]: Add a new 'patch-installation-file-names phase.
-rw-r--r-- | gnu/packages/web.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 4ba3258600..825b363629 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -580,6 +580,15 @@ the same, being completely separated from the Internet.") (("\"Server: .*;") "\"Server: Apache/2.4.9 (Unix)\";") ;; Never send Server: headers. (("r->headers_out\\.server == NULL") "0")))) + (add-after 'unpack 'patch-installation-file-names + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share/nginx"))) + (substitute* "auto/install" + (("\\$NGX_CONF_PATH" match) + (string-append share "/examples/" match)) + (("`dirname \"\\$NGX_PID_PATH\"`") "/") + (("`dirname \"\\$NGX_HTTP_LOG_PATH\"`") "/"))))) (add-before 'configure 'patch-/bin/sh (lambda _ (substitute* "auto/feature" |