From patchwork Tue Apr 21 20:22:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 21403 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 0F2D927BBE4; Tue, 21 Apr 2020 21:23:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id CCE4727BBE1 for ; Tue, 21 Apr 2020 21:23:21 +0100 (BST) Received: from localhost ([::1]:35814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQzQP-00028n-7E for patchwork@mira.cbaines.net; Tue, 21 Apr 2020 16:23:21 -0400 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 X-Loop: help-debbugs@gnu.org Subject: [bug#40752] gnu: Add eject. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Apr 2020 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40752 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 40752@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158750055014817 (code B ref -1); Tue, 21 Apr 2020 20:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Apr 2020 20:22:30 +0000 Received: from localhost ([127.0.0.1]:50835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQzPa-0003qv-6f for submit@debbugs.gnu.org; Tue, 21 Apr 2020 16:22:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:49217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQzPY-0003qm-G0 for submit@debbugs.gnu.org; Tue, 21 Apr 2020 16:22:28 -0400 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) X-Virus-Scanned: Debian amavisd-new at disroot.org 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1587500539; bh=PIFY9maiW2YaQwXhJcgHEKEryWs30WmXA6fGDauz/vQ=; h=Date:From:To:Subject; b=VW7+vRGG7oGvXbHktOY0M45aJLdZgcSa/M9RCBfxs8HdKY17pli6MX/emIejByYpp 0FXFO/RIFWDn48kpR1CtntUt7S3oj6QgbpGAKM/NcZlx3tE2xxDA/1VLyIkRw+HPxI qnUdvaivjsxOE529NEvOVmy4Lgg/StJh+gCwD9ptnp2JCJaPWXn2ukkQCWeFs5KApn QzrgZslxnfAVlyftxKN9x/wZzWYltlSe8OgBrUe9BMOzeL1yisPOGQLPkQDBN/IOfg aeomfitbxE+gxfCqjm8n2COApi5r8OUVibM/NuxHwJD360A6f0ljay7C0ni05mECUT 93ctq0g48iNvQ== From: Raghav Gururajan Message-ID: <20200421162206.527fd8c8.raghavgururajan@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=raghavgururajan@disroot.org; helo=knopi.disroot.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/21 16:22:21 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches 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