From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42256) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQzQ8-00028e-2v for guix-patches@gnu.org; Tue, 21 Apr 2020 16:23:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQzQ6-00073P-TE for guix-patches@gnu.org; Tue, 21 Apr 2020 16:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQzQ6-000730-FZ for guix-patches@gnu.org; Tue, 21 Apr 2020 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQzQ6-0003s2-79 for guix-patches@gnu.org; Tue, 21 Apr 2020 16:23:02 -0400 Subject: [bug#40752] gnu: Add eject. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:40824) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQzPY-0001jn-14 for guix-patches@gnu.org; Tue, 21 Apr 2020 16:22:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQzPW-0005ye-Hm for guix-patches@gnu.org; Tue, 21 Apr 2020 16:22:27 -0400 Received: from knopi.disroot.org ([178.21.23.139]:35198) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1jQzPV-0005ny-MT for guix-patches@gnu.org; Tue, 21 Apr 2020 16:22:26 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BBA19260FD for ; Tue, 21 Apr 2020 22:22:20 +0200 (CEST) Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wNIxS_xnTAQm for ; Tue, 21 Apr 2020 22:22:19 +0200 (CEST) Date: Tue, 21 Apr 2020 16:22:06 -0400 From: Raghav Gururajan Message-ID: <20200421162206.527fd8c8.raghavgururajan@disroot.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/oJMLL6jK4o645m41+V38jBv" 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: 40752@debbugs.gnu.org --MP_/oJMLL6jK4o645m41+V38jBv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline --MP_/oJMLL6jK4o645m41+V38jBv Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0002-gnu-Add-eject.patch >From a7fcab4e6ea2e61c4a18520a1a462250a503eba7 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Tue, 21 Apr 2020 16:20:27 -0400 Subject: [PATCH 2/2] gnu: Add eject. * gnu/packages/disk.scm (eject): New variable. --- gnu/packages/disk.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 573cc88c34..8b2a432e9c 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -66,6 +66,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) #:use-module (gnu packages samba) + #:use-module (gnu packages scsi) #:use-module (gnu packages sphinx) #:use-module (gnu packages sqlite) #:use-module (gnu packages swig) @@ -86,6 +87,41 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) +(define-public eject + (package + (name "eject") + (version "2019.08.22") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://git.code.sf.net/p/eject/git") + (commit "12a22e"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dxj0zn32l8k16j5innh8y4snambx1b702ny37114drddqcqac6h")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No target + #:make-flags + (list + (string-append "PREFIX=" (assoc-ref %outputs "out"))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("gettext" ,gettext-minimal))) + (inputs + `(("lvm2" ,lvm2) + ("sg3-utils" ,sg3-utils))) + (synopsis "Utility for Removable Media") + (description "Eject allows removable media (typically a CD-ROM, floppy disk, +tape, or JAZ or ZIP disk) to be ejected under software control. The command can +also control some multi-disc CD-ROM changers, the auto-eject feature supported +by some devices, and close the disc tray of some CD-ROM drives. ") + (home-page "http://eject.sourceforge.net") + (license license:gpl2+))) + (define-public udevil (package (name "udevil") -- 2.26.1 --MP_/oJMLL6jK4o645m41+V38jBv--