gnu: nginx: Install man page.

* gnu/packages/web.scm (nginx)[arguments]: Install the nginx(8) man page,
and add a comment about the non-GNU configure script.
This commit is contained in:
Tobias Geerinckx-Rice 2017-08-29 17:31:00 +02:00
parent 3c8ba11a97
commit 249ab8cc3e
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -157,6 +157,7 @@ (define-public nginx
(("/bin/sh") (which "sh")))
#t))
(replace 'configure
;; The configure script is hand-written, not from GNU autotools.
(lambda* (#:key outputs #:allow-other-keys)
(let ((flags
(list (string-append "--prefix=" (assoc-ref outputs "out"))
@ -185,6 +186,12 @@ (define-public nginx
(format #t "environment variable `CC' set to `gcc'~%")
(format #t "configure flags: ~s~%" flags)
(zero? (apply system* "./configure" flags)))))
(add-after 'install 'install-man-page
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(man (string-append out "/share/man")))
(install-file "objs/nginx.8" (string-append man "/man8"))
#t)))
(add-after 'install 'fix-root-dirs
(lambda* (#:key outputs #:allow-other-keys)
;; 'make install' puts things in strange places, so we need to