From patchwork Tue May 23 14:25:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Timotej Lazar X-Patchwork-Id: 50250 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 99C5127BBE2; Tue, 23 May 2023 15:27:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2EDCB27BBE9 for ; Tue, 23 May 2023 15:27:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1Syi-0002la-Kg; Tue, 23 May 2023 10:27:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1Syd-0002aj-N0 for guix-patches@gnu.org; Tue, 23 May 2023 10:27:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1Syd-0003nI-Dj for guix-patches@gnu.org; Tue, 23 May 2023 10:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1Syc-0005bC-1g for guix-patches@gnu.org; Tue, 23 May 2023 10:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63664] [PATCH] gnu: Add nwipe. Resent-From: Timotej Lazar Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 May 2023 14:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63664 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63664@debbugs.gnu.org Cc: Timotej Lazar X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168485200421494 (code B ref -1); Tue, 23 May 2023 14:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2023 14:26:44 +0000 Received: from localhost ([127.0.0.1]:40091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1SyK-0005ac-7W for submit@debbugs.gnu.org; Tue, 23 May 2023 10:26:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:52518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1SyH-0005aR-Im for submit@debbugs.gnu.org; Tue, 23 May 2023 10:26:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1SyH-0002Ci-6Z for guix-patches@gnu.org; Tue, 23 May 2023 10:26:41 -0400 Received: from araneo.si ([2001:15c0:2110:3400::2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1SyF-0003gX-80 for guix-patches@gnu.org; Tue, 23 May 2023 10:26:40 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id eff7155e for ; Tue, 23 May 2023 14:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20180623; bh=cYgxcLsLo7W+Qh/t6Vwy7 5BFOKs=; b=ZbDIE7Jj8Pnp99iymYUVvUj4VoBT/OIV1JFZ5DxqjPugDiAIr+WuZ k+BoVRB4deL9EhDRKPE5tODkHiSkyoSTqGZnleEPJATFRaJCGZtMe2OAyTnf/hfM DFmfHjGZlgw1+D9qu/5QnLZTLsgq20/2eBFPkJhsKHu/k5OC+CgI6blMb6p68d7Y SFiuVB3JXeKb1tAKoeEmR1k0pIzqyen3yM8Xnpbq4YvDdPxy798BovlVZFrqLTPt x2SaxSLQvchFkSUrwGuDS8ieS93fntZvudyh2RHTK7LW35wdI6ascnF64wxz7+aI i8yQ4J9Q6N+7CPkwtCPU/eD5HIIJ9Xp0A== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 07fcec5a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 23 May 2023 14:26:33 +0000 (UTC) From: Timotej Lazar Date: Tue, 23 May 2023 16:25:28 +0200 Message-Id: <268552c80920f4d455ec493cb1c143f734a876bb.1684851853.git.timotej.lazar@araneo.si> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2001:15c0:2110:3400::2; envelope-from=timotej.lazar@araneo.si; helo=araneo.si X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/disk.scm (nwipe): New variable. --- gnu/packages/disk.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) base-commit: 36ea29115cd53f63017b61fc4f6633bb5e1d7542 diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 894a542171..abbc87a95a 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2014, 2022 Ludovic Courtès ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Disseminate Dissent +;;; Copyright © 2023 Timotej Lazar ;;; ;;; This file is part of GNU Guix. ;;; @@ -43,6 +44,7 @@ (define-module (gnu packages disk) #:use-module (gnu packages) + #:use-module (gnu packages admin) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) @@ -1502,6 +1504,46 @@ (define-public qdirstat (home-page "https://github.com/shundhammer/qdirstat") (license license:gpl2))) +(define-public nwipe + (package + (name "nwipe") + (version "0.34") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/martijnvanbrummelen/nwipe") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1frwjgz4mpzwr9sigr693crmxsjl08wcikh6ik7dm0x40l1kqqpd")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (search-input-file outputs "bin/nwipe") + (list "PATH" ":" 'prefix + (map (lambda (p) (dirname (search-input-file inputs p))) + '("sbin/dmidecode" + "sbin/hdparm" + "sbin/smartctl"))))))))) + (inputs + (list bash-minimal dmidecode hdparm ncurses parted smartmontools)) + (native-inputs + (list autoconf automake libtool pkg-config)) + (home-page "https://github.com/martijnvanbrummelen/nwipe") + (synopsis "Secure disk wiping utility") + (description + "@command{nwipe} securely erases disks using a variety of methods to +ensure the data cannot be recovered. It can wipe multiple drives in parallel +and can be used noninteractively or with a text-based user interface.") + (license + (list license:gpl2 + license:bsd-3 ; mt19937ar-cok + license:public-domain)))) ; {isaac_rand,PDFGen} + (define-public wipe (package (name "wipe")