From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eleu7-0000w9-Db for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eleu3-00053n-GA for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eleu3-00053e-Bg for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eleu3-0006A9-1g for guix-patches@gnu.org; Tue, 13 Feb 2018 13:02:03 -0500 Subject: [bug#30446] [PATCH 3/3] gnu: Add me-cleaner. Resent-Message-ID: From: Danny Milosavljevic Date: Tue, 13 Feb 2018 19:01:45 +0100 Message-Id: <20180213180145.4412-3-dannym@scratchpost.org> In-Reply-To: <20180213180145.4412-1-dannym@scratchpost.org> References: <20180213180001.4339-1-dannym@scratchpost.org> <20180213180145.4412-1-dannym@scratchpost.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30446@debbugs.gnu.org * gnu/packages/flashing-tools.scm (me-cleaner): New variable. --- gnu/packages/flashing-tools.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index 78981f4b6..1c32d0745 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -31,6 +31,7 @@ #:use-module (gnu packages) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (gnu packages bison) #:use-module (gnu packages compression) #:use-module (gnu packages flex) @@ -406,3 +407,33 @@ Management Engine (ME). You need to @code{sudo rmmod mei_me} and @code{sudo rmmod mei} before using this tool. Also pass @code{iomem=relaxed} to the Linux kernel command line.") (license license:gpl2)))) + +(define-public me-cleaner + (package + (name "me-cleaner") + (version "1.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/corna/me_cleaner/" + "archive/v" version ".tar.gz")) + (sha256 + (base32 + "1pgwdqy0jly80nhxmlmyibs343497yjzs6dwfbkcw0l1gjm8i5hw")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'create-setup.py + (lambda _ + (call-with-output-file "setup.py" + (lambda (port) + (format port "\ +from setuptools import setup +setup(name='me_cleaner', version='~a', scripts=['me_cleaner.py']) +" ,version)))))))) + (home-page "https://github.com/corna/me_cleaner") + (synopsis "Intel ME cleaner") + (description "This package provides tools for disabling Intel +ME as far as possible (in image files).") + (license license:gpl3+)))