From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2OquGgUx3V4UdAAA0tVLHw (envelope-from ) for ; Sun, 07 Jun 2020 18:25:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sOCtFgUx3V7nUQAAbx9fmQ (envelope-from ) for ; Sun, 07 Jun 2020 18:25:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0594994051C for ; Sun, 7 Jun 2020 18:25:08 +0000 (UTC) Received: from localhost ([::1]:38256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhzyl-0006tj-Ff for larch@yhetil.org; Sun, 07 Jun 2020 14:25:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhzyh-0006sl-GR for guix-patches@gnu.org; Sun, 07 Jun 2020 14:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhzyh-0007Yw-6E for guix-patches@gnu.org; Sun, 07 Jun 2020 14:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhzyh-0005JK-2H for guix-patches@gnu.org; Sun, 07 Jun 2020 14:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41752] [PATCH] gnu: Add bash-hosts. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Jun 2020 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41752 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41752@debbugs.gnu.org Cc: Oleg Pykhalov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159155428220335 (code B ref -1); Sun, 07 Jun 2020 18:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jun 2020 18:24:42 +0000 Received: from localhost ([127.0.0.1]:54857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhzy9-0005Hg-Cr for submit@debbugs.gnu.org; Sun, 07 Jun 2020 14:24:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:39194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhzy7-0005HY-6B for submit@debbugs.gnu.org; Sun, 07 Jun 2020 14:24:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhzy6-0006IO-V9 for guix-patches@gnu.org; Sun, 07 Jun 2020 14:24:26 -0400 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]:36199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhzy6-0007TV-5Y for guix-patches@gnu.org; Sun, 07 Jun 2020 14:24:26 -0400 Received: by mail-lj1-x244.google.com with SMTP id a25so17708336ljp.3 for ; Sun, 07 Jun 2020 11:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D+xxJeXiaEXlxNmIIr32vL8T0oOPh6+8KJTNbYdxbFI=; b=BOLaftroxs6Vu51f1IdeP4DjXzQMlcW/dJJYzApyl+HEf/pw6bLyRZX+alvzb7b4Hm 8aGwFvmz2Lp16BrUNoaEREYNJe6knKTts3Y3sVU8yMGWP+zLoyxshPTK0cffwI3j+p40 mfjlZ5lE6llp7aeH2of8ZfyZfSoxU6yLF+RL+LBmtS/Iqq8nQs6aHLfhhc4B41ulv3Lk U3gmnuZzrHxfZxba0fnHREBTmJOOG+yUM5+VIrxnhOrUzemOJ/Hv+rMSVS7KpqgfsVhR C2ftemc2Yc03oLa6hIXFFRniCwSZ43xo/XXwjE4vbU/GeqReQIfon+vrnoGZk1tw+M7r //VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D+xxJeXiaEXlxNmIIr32vL8T0oOPh6+8KJTNbYdxbFI=; b=hstCK50iaG23C84CWfkWqV9nB5SI0lBAsqgWhKsgaNV7Pdk0bYS47zf+gOYkk4UPsM YkUdcUBaazlq6Kax4KMZfwLoqU7OIxLnN4G+exmaxjvcscekHoHOHHSs9+14tFVsl1yH Tp+G9dE75LOh2ip2Ccbw2589blPwmn9OHiEMQlVkgNalpA91g+v3V+73h8mxRpmdSShu NrVZFEXpNJ7gSFJd3ZUtrNOawxIG0QlypcHyvD9nDM1hiI7LP5a26uNba0mw/THy+Jr3 AIwwxaYIa5RbJlux9Cz3SuoXgMyeuy0x13IkND9HOJVg9kyZBipNb76QckXvM+uCTkD4 EMbQ== X-Gm-Message-State: AOAM5313g6tmvYxnPk2x5dXFh9ZcyxA9hv9fU9baOZcW4kZJ23qEZxAH bHHBsViHh62Vjvp9rbgpmHtW6xcy X-Google-Smtp-Source: ABdhPJwRhZ4w6Vjo7vid3jkbpIQwGl8/BBccbT+u6is7mursOGoQFqVF7f1PBIAIU/6+rjUqvXd3CA== X-Received: by 2002:a2e:7f10:: with SMTP id a16mr5109832ljd.69.1591554264366; Sun, 07 Jun 2020 11:24:24 -0700 (PDT) Received: from localhost.localdomain (92-100-136-169.dynamic.avangarddsl.ru. [92.100.136.169]) by smtp.gmail.com with ESMTPSA id l14sm258267lja.2.2020.06.07.11.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2020 11:24:23 -0700 (PDT) From: Oleg Pykhalov Date: Sun, 7 Jun 2020 21:24:10 +0300 Message-Id: <20200607182410.4594-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::244; envelope-from=go.wigust@gmail.com; helo=mail-lj1-x244.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.0 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=BOLaftro; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: +3S/Lnl7My3L * gnu/packages/admin.scm (bash-hosts): New variable. --- gnu/packages/admin.scm | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index bb93f7efb1..dd0ada0422 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -3841,3 +3841,46 @@ It supports mounting local filesystems of any kind the normal mount utility supports. It can also mount encrypted LUKS volumes using the password supplied by the user when logging in.") (license (list license:gpl2+ license:lgpl2.1+)))) + +(define-public bash-hosts + (package + (name "bash-hosts") + (version "3.5.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xwmx/hosts.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0q02n28sng0757cgkkc7r45krs07j993k6sgyyp27n8v0l8q6fv4")))) + (build-system trivial-build-system) + (inputs + `(("bash" ,bash))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (copy-recursively (assoc-ref %build-inputs "source") ".") + (substitute* "hosts" + (("/usr/bin/env bash") + (string-append (assoc-ref %build-inputs "bash") + "/bin/bash"))) + (install-file "hosts" (string-append %output "/bin")) + (let ((bash-completion (string-append %output + "/etc/bash_completion.d"))) + (mkdir-p bash-completion) + (copy-file "etc/hosts-completion.bash" + (string-append bash-completion "/hosts"))) + #t))) + (home-page "https://github.com/xwmx/hosts/") + (synopsis "Command line hosts file editor in a single portable script") + (description "@code{hosts} is a command line program for managing hosts +file entries. @code{hosts} works with existing hosts files and entries, +making it easier to add, remove, comment, and search hosts file entries using +simple, memorable commands. @code{hosts} is designed to be lightweight, easy +to use, and contained in a single, portable script that can be curled into any +environment.") + (license license:expat))) -- 2.26.2