mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: fail2ban: Fix tests.
* gnu/packages/admin.scm (fail2ban): Fix tests. [arguments] <phases>: Replace check phase to recommended one. [native-inputs]: Add python-aiosmtpd to make all tests running; remove python-wheel. Change-Id: Ic8dcbbd66762c75469f8cc5eb82e001968f6b4b4 Reviewed-by: Nicolas Graves <ngraves@ngraves.fr> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
c7a2955b74
commit
8a17c58ce3
1 changed files with 6 additions and 1 deletions
|
@ -6312,6 +6312,10 @@ alias cysdig=sudo csysdig --modern-bpf
|
||||||
"fail2ban/client/fail2banregex.py")
|
"fail2ban/client/fail2banregex.py")
|
||||||
(("/etc/fail2ban")
|
(("/etc/fail2ban")
|
||||||
(string-append #$output "/etc/fail2ban")))))
|
(string-append #$output "/etc/fail2ban")))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "./bin/fail2ban-testcases"))))
|
||||||
(add-after 'fix-default-config 'set-action-dependencies
|
(add-after 'fix-default-config 'set-action-dependencies
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; deleting things that are not feasible to fix
|
;; deleting things that are not feasible to fix
|
||||||
|
@ -6392,7 +6396,8 @@ alias cysdig=sudo csysdig --modern-bpf
|
||||||
"fail2ban-regex" "fail2ban-server"
|
"fail2ban-regex" "fail2ban-server"
|
||||||
"fail2ban-testcases"))
|
"fail2ban-testcases"))
|
||||||
((install-man "5") "jail.conf")))))))
|
((install-man "5") "jail.conf")))))))
|
||||||
(native-inputs (list python-setuptools python-wheel))
|
(native-inputs (list python-aiosmtpd
|
||||||
|
python-setuptools))
|
||||||
(inputs (list gawk
|
(inputs (list gawk
|
||||||
coreutils-minimal
|
coreutils-minimal
|
||||||
curl
|
curl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue