>From fda52be7de905c3f73f301ac1b218fdd026deece Mon Sep 17 00:00:00 2001 From: swedebugia Date: Sat, 10 Nov 2018 21:39:04 +0100 Subject: [PATCH] gnu: Add ufw * gnu/packages/networking.scm: New variable. --- gnu/packages/networking.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 5504742fa..b630676db 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -2262,3 +2262,46 @@ allow all other machines, without direct access to that network, to be relayed through the machine the Dante server is running on. The external network will never see any machines other than the one Dante is running on.") (license (license:non-copyleft "file://LICENSE")))) + +(define-public ufw + ;; Select the branch named "release/0.35": + (let* ((commit "fd93d37a782d4f736201df508fb86e72641874d8")) + (package + (name "ufw") + (version "0.35") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.launchpad.net/ufw") + (commit commit))) + (sha256 + (base32 + "10r2ga1w5vmg8m4z5yim01cd0g8cs6ws2h65vaj6ilg8yp8d90f9")) + (file-name (git-file-name name version)))) + (build-system python-build-system) + (inputs `(("iptables" ,iptables))) + (arguments + ;; FIXME: All tests fail with: ModuleNotFoundError: No module named + ;; 'ufw' + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-iptables-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("iptables_exe = ''") + (string-append "iptables_exe = '" + (assoc-ref inputs "iptables") + "/sbin/iptables'"))) + (substitute* "setup.py" + (("iptables_dir = ''") + (string-append "iptables_dir = '" + (assoc-ref inputs "iptables") + "/sbin/'")))))))) + (home-page "https://launchpad.net/ufw") + (synopsis "Uncomplicated firewall") + (description "Uncomplicated Firewall (UFW) is a program for managing a +netfilter firewall designed to be easy to use. It uses a command-line +interface consisting of a small number of simple commands, and uses iptables +for configuration.") + (license license:gpl3)))) -- 2.18.0