mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: lynis: Use G-expressions.
* gnu/packages/admin.scm (lynis)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
611b5e5bd0
commit
b896184a55
1 changed files with 42 additions and 39 deletions
|
@ -4682,8 +4682,9 @@ Logitech Unifying Receiver.")
|
|||
(sha256
|
||||
(base32 "05qq4395x8f0kyl1ppm74npsf8sb3hhgz0ck4fya91sy6a26b4ja"))))))
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
;; XXX Remove after fixing <https://issues.guix.gnu.org/55287>.
|
||||
(lambda* (#:key source #:allow-other-keys)
|
||||
|
@ -4692,27 +4693,29 @@ Logitech Unifying Receiver.")
|
|||
(copy-recursively source "."
|
||||
#:keep-mtime? #t)))
|
||||
(replace 'configure
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(lambda _
|
||||
(substitute* "lynis"
|
||||
(("/usr/share/lynis")
|
||||
(string-append (assoc-ref outputs "out") "/share/lynis")))
|
||||
(string-append #$output "/share/lynis")))
|
||||
(substitute* "include/functions"
|
||||
(("/usr/local/etc/lynis")
|
||||
(string-append (assoc-ref outputs "out") "/etc/lynis")))))
|
||||
(string-append #$output "/etc/lynis")))))
|
||||
(delete 'build)
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(install-file "lynis" (string-append out "/bin/"))
|
||||
(install-file "default.prf" (string-append out "/etc/lynis"))
|
||||
(lambda _
|
||||
(install-file "lynis" (string-append #$output "/bin/"))
|
||||
(install-file "default.prf" (string-append #$output "/etc/lynis"))
|
||||
(for-each
|
||||
(lambda (dir)
|
||||
(copy-recursively dir (string-append out "/share/lynis/" dir)))
|
||||
(copy-recursively
|
||||
dir (string-append #$output "/share/lynis/" dir)))
|
||||
(list "db" "include" "plugins"))
|
||||
(install-file "lynis.8" (string-append out "/share/man/man8")))))
|
||||
(install-file "lynis.8"
|
||||
(string-append #$output "/share/man/man8"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
|
||||
(lambda _
|
||||
(copy-recursively #$(this-package-native-input "lynis-sdk")
|
||||
"../lynis-sdk")
|
||||
(setenv "LANG" "en_US.UTF-8")
|
||||
(let ((lynis-dir (getcwd)))
|
||||
(with-directory-excursion "../lynis-sdk"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue