[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#78066] [PATCH v3 1/6] gnu: fail2ban: Move file deletion to source s
From: |
Nicolas Graves |
Subject: |
[bug#78066] [PATCH v3 1/6] gnu: fail2ban: Move file deletion to source snippet. |
Date: |
Sun, 4 May 2025 10:56:21 +0200 |
* gnu/packages/admin.scm (fail2ban)
[arguments]<phases>: Move multiple file deletion from here...
[source]<snippet>: ...to here.
---
gnu/packages/admin.scm | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 1d0ec121ff..216776e62c 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -6185,6 +6185,15 @@ (define-public fail2ban
(modules '((guix build utils)))
(snippet
'(begin
+ ;; Replacing those by our own paths-guix.conf
+ (with-directory-excursion "config"
+ (for-each delete-file
+ '("paths-arch.conf"
+ "paths-debian.conf"
+ "paths-fedora.conf"
+ "paths-freebsd.conf"
+ "paths-opensuse.conf"
+ "paths-osx.conf")))
;; Get rid of absolute file names.
(substitute* "setup.py"
(("/etc/fail2ban")
@@ -6248,14 +6257,6 @@ (define-public fail2ban
(lambda* (#:key inputs #:allow-other-keys)
;; deleting things that are not feasible to fix
;; or won't be used any way
- (with-directory-excursion "config"
- (for-each delete-file
- '("paths-arch.conf"
- "paths-debian.conf"
- "paths-fedora.conf"
- "paths-freebsd.conf"
- "paths-opensuse.conf"
- "paths-osx.conf")))
(with-directory-excursion "config/action.d"
(for-each delete-file
'("apf.conf"
--
2.49.0
- [bug#78066] [PATCH v3 0/6] Fix fail2ban build, Nicolas Graves, 2025/05/04
- [bug#78066] [PATCH v3 1/6] gnu: fail2ban: Move file deletion to source snippet.,
Nicolas Graves <=
- [bug#78066] [PATCH v3 5/6] gnu: fail2ban: Improve style., Nicolas Graves, 2025/05/04
- [bug#78066] [PATCH v3 4/6] gnu: fail2ban: Improve style., Nicolas Graves, 2025/05/04
- [bug#78066] [PATCH v3 6/6] gnu: fail2ban: Improve snippet., Nicolas Graves, 2025/05/04
- [bug#78066] [PATCH v3 3/6] gnu: fail2ban: Update to 1.1.0., Nicolas Graves, 2025/05/04
- [bug#78066] [PATCH v3 2/6] gnu: fail2ban: Move setup and test patches to phases., Nicolas Graves, 2025/05/04
- bug#78066: [PATCH v3 0/6] Fix fail2ban build, Ludovic Courtès, 2025/05/06