mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: nginx: Clean up installation directories.
* gnu/packages/web.scm (nginx): Add 'fix-root-dirs' phase.
This commit is contained in:
parent
a71c315bc2
commit
59446b208c
1 changed files with 16 additions and 1 deletions
|
@ -137,7 +137,22 @@ (define-public nginx
|
|||
(setenv "CC" "gcc")
|
||||
(format #t "environment variable `CC' set to `gcc'~%")
|
||||
(format #t "configure flags: ~s~%" flags)
|
||||
(zero? (apply system* "./configure" flags))))))))
|
||||
(zero? (apply system* "./configure" flags)))))
|
||||
(add-after install fix-root-dirs
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; 'make install' puts things in strange places, so we need to
|
||||
;; clean it up ourselves.
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(share (string-append out "/share/nginx")))
|
||||
;; This directory is empty, so get rid of it.
|
||||
(rmdir (string-append out "/logs"))
|
||||
;; Example configuration and HTML files belong in
|
||||
;; /share.
|
||||
(mkdir-p share)
|
||||
(rename-file (string-append out "/conf")
|
||||
(string-append share "/conf"))
|
||||
(rename-file (string-append out "/html")
|
||||
(string-append share "/html"))))))))
|
||||
(home-page "http://nginx.org")
|
||||
(synopsis "HTTP and reverse proxy server")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue