From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GNlRHqeae2GFcQAAgWs5BA (envelope-from ) for ; Fri, 29 Oct 2021 08:54:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6ANkGaeae2FfSQAA1q6Kng (envelope-from ) for ; Fri, 29 Oct 2021 06:54:31 +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 88CAF19F36 for ; Fri, 29 Oct 2021 08:54:30 +0200 (CEST) Received: from localhost ([::1]:45374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgLmX-00028c-4f for larch@yhetil.org; Fri, 29 Oct 2021 02:54:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgLm6-00028O-7X for guix-patches@gnu.org; Fri, 29 Oct 2021 02:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgLm5-0003gD-Uo for guix-patches@gnu.org; Fri, 29 Oct 2021 02:54:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgLm5-0002i4-SU for guix-patches@gnu.org; Fri, 29 Oct 2021 02:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51015] [PATCH v4] gnu: Add Random Identity Generator (rig) Resent-From: Foo Chuan Wei Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Oct 2021 06:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 51015@debbugs.gnu.org Received: via spool by 51015-submit@debbugs.gnu.org id=B51015.163549042710394 (code B ref 51015); Fri, 29 Oct 2021 06:54:01 +0000 Received: (at 51015) by debbugs.gnu.org; 29 Oct 2021 06:53:47 +0000 Received: from localhost ([127.0.0.1]:53900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgLlq-0002ha-Sj for submit@debbugs.gnu.org; Fri, 29 Oct 2021 02:53:47 -0400 Received: from mail-oln040092253023.outbound.protection.outlook.com ([40.92.253.23]:45801 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgLll-0002hI-Kc for 51015@debbugs.gnu.org; Fri, 29 Oct 2021 02:53:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NHx2Occ+nrIIIgjBIzEgmVVol2IwfK80cR+30LrGbwxGTvb+gf+zLUWOjLDEHkT4KL+rJQUW8VCinpm+NoDwhGWopuT38tG3RaE843memp5xd8WJDzEGD0ec3EyZ5RvjqXUDnvZ+8BEQQu+8zFNrWZbbMYeC1LD+5gflIcRX29y8n8jooxzIB60T9Cr1/dVY0RitGv2RY9vV0y7S+nq5d10rnMZTtRF7qXlbLp+iazLCwQDbM2ELkbqntJMplROr6gBNgu8hQU8bvYYGDQBoBW1jxMAnZ5qvqb0DbHnBKHDB7iKXvqYTvdAou89dF98KtaG+5YeALWptdq7IOHDmfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lixbaBw7Tv0INukDJ0YnqoplogAqQc6UVV4j68VzmMg=; b=jb6LeL2a34rQmwoqR6AKeD+NBGGA1XTcDU/e5Sg2rAAxc8D5inWMlhhJu2TF5M/pAqdrXZgwwj1SsTNyo2tcRr4DulJaJvUJ9ujs4RhnUsNvMwA0B/s2ruzGdL7EkBmyHsyG2ogqgGf6BFi5OtnJxVvUeH0/a6v7i4PcTGTvqWmphOULrgMpDG99BrlTUPHtRY0H8J2vQPEtKyL8qwN7AhBvl/fkubyZUekUkFKjypbCvobiE5HOGAXEieSGO1on3uvXaCfal7CjO9m5GTN7oWw70bB1Sy1qubYygzcAh9/bpIU1RQGYVQij2S03BHIXQb5ov0qoAgLiFt8YKpL54A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lixbaBw7Tv0INukDJ0YnqoplogAqQc6UVV4j68VzmMg=; b=WuIoAANbXM+4sSKGYgsCLTOB+lNhZEHnnRty3KESIYHJuwRjzjEmOIunVpCGTQAuqWdINdXK+j9u48lIno0+ZizASHqC3m/smACwy+MTNyDBjxpZzEUJO/sRf7T2oe6XOqexsCDcr6dvvd3q5MQaxK/OGe1dXRMua8mwSwOt+22FRLyD4jIFAHSEXFdu6YctbFpZ32g2Cdl43Jso/mEoRzdIke6dQn8qB27X77jgc0gOiLtsw5e343U+Ts5+66hv1PEAsYanIY5SbwyA9/d2Yuvu3ZlEEVQHPLcuPMJTgS4bFJKIvUXLdZRT5iY1o3NM3ocHjInoW35MaLP55oZTvA== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by PU1PR01MB2026.apcprd01.prod.exchangelabs.com (2603:1096:803:21::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Fri, 29 Oct 2021 06:53:33 +0000 Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::b81b:9b11:fede:9015]) by PU1PR01MB2155.apcprd01.prod.exchangelabs.com ([fe80::b81b:9b11:fede:9015%6]) with mapi id 15.20.4628.020; Fri, 29 Oct 2021 06:53:33 +0000 Date: Fri, 29 Oct 2021 06:53:28 +0000 From: Foo Chuan Wei Message-ID: Mail-Followup-To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 51015@debbugs.gnu.org References: <87v91khxrf.fsf_-_@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87v91khxrf.fsf_-_@gnu.org> X-TMN: [4ylrx4BSxXbLr/xAZOf6HDL2WsmabhfBnnPNY+kCXnA=] X-ClientProxiedBy: SG2P153CA0002.APCP153.PROD.OUTLOOK.COM (2603:1096::12) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <20211029065328.l6ew5huxjl56rzbb@main> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from main (119.160.168.152) by SG2P153CA0002.APCP153.PROD.OUTLOOK.COM (2603:1096::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.6 via Frontend Transport; Fri, 29 Oct 2021 06:53:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4f68217f-33ed-4b3b-878c-08d99aa8d283 X-MS-TrafficTypeDiagnostic: PU1PR01MB2026: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j9Q9maCN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AK4QEPp1ug4VKzUR+9586faWC4wUb00HfUSbFUa4XppAijwEUfNkSji9fqL2a9vGDQ62GAEKcxhMkdgnTV8eR51Ya9M04l5d+YxGt0GrE6ZokBCU7Abga/gfyD0skRaCZlCshhquYRJbGTJiM0gGameHcZS4L2en8tbRoOOHieoztJrQDAsiJwZlyypbT5sRbw76wbbtktxdrdRbdZ3kZb5+pRekpcYDxxwux5oFTx98KCdIVstEDOg+R//3N2nNg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-5c337.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 4f68217f-33ed-4b3b-878c-08d99aa8d283 X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB2155.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2021 06:53:33.2341 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1PR01MB2026 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635490471; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lixbaBw7Tv0INukDJ0YnqoplogAqQc6UVV4j68VzmMg=; b=C4r5STPEhjtEZjLwXng+bVtetHWqXtW4lzYlDZvaBQb5XawDebILMCCaFwXMmLFZBfVt/M 13YUpvk9bn740Zu+pRkI+NDPnbHfdZZWwPYg0QhV7q/L+DcvTQjW7AhoBtzUj9QRw6lMxM a05iZjOwkwxO/yGpQ/uALjDEGI9VVkW0WWsUaSh/Palu3t1x/wnA0s9w3R6mwiQlETUEtn YxVBv5IdWwjGVIto8pSQM6f3F2xgqzGf/bk+FXn3Ur0Hfh3MRdcrHu8DWPCOlXFep7PKOX 24di4RmKMIzvkn4ZetC54eezJJzf2hFzzM6YPad9xKkoxm2Ti96xGy+RrXnfBg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1635490471; a=rsa-sha256; cv=fail; b=eSVpy38DIW5L51bfEN0vuoZqOGxsd9DYpgxOEnS+XfRWAaBspruWQbanPl2Aw7ywvviAtf kTFzBDjaGmdInEc/2NgJ/ZSuePQajimTx8hbg8WS9Zpjj4S2BXsJnfD3V19/qtfz97FDXt /R/EpoydU1LdbI9o1fwvtBfz4c4gBHicrrhcoDgq5zPUzVUTgmSJfyMM0VGbdAWWDDFqm4 OVMqsZENu59H3dz+DOh8vPnxXqvsu4roSM1SrgbRLUE3bLjod9cBwUD1ghtFVLUjNhYUaZ hjRlYVju4XNSl81tubqVotdRxHhwFKtioN8O2xf/5y5HZJp6FkHHBH3DXx9CAg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=WuIoAANb; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=hotmail.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-Migadu-Spam-Score: 0.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=WuIoAANb; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=hotmail.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-Migadu-Queue-Id: 88CAF19F36 X-Spam-Score: 0.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: TdtR6IbLU90E * gnu/packages/shellutils.scm (rig): New variable. --- gnu/packages/shellutils.scm | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 3ded0ee897..6271b6e375 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2021 Alexandr Vityazev ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2021 Foo Chuan Wei ;;; ;;; This file is part of GNU Guix. ;;; @@ -37,6 +38,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system python) + #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bison) @@ -463,3 +465,51 @@ the UNIX philosophy, these commands are designed to be composed via pipes. A large collection of functions such as basename, replace, contains or is_dir are provided as arguments to these commands.") (license license:expat))) + +(define-public rig + (package + (name "rig") + (version "1.11") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/rig/rig/" + version "/rig-" + version ".tar.gz")) + (sha256 + (base32 + "1f3snysjqqlpk2kgvm5p2icrj4lsdymccmn3igkc2f60smqckgq0")))) + (build-system gnu-build-system) + (arguments `(#:make-flags + (list (string-append "CXX=" ,(cxx-for-target)) + (string-append "PREFIX=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-build + (lambda _ + (substitute* "rig.cc" + (("^#include ") + "#include ")) + (substitute* "Makefile" + (("g\\+\\+") + "${CXX} -O2") + (("install -g 0 -m 755 -o 0 -s rig \\$\\(BINDIR\\)") + "install -m 755 -d $(DESTDIR)$(BINDIR)\n\t\ +install -m 755 rig $(DESTDIR)$(BINDIR)/rig") + (("install -g 0 -m 644 -o 0 rig.6 \\$\\(MANDIR\\)/man6/rig.6") + "install -m 755 -d $(DESTDIR)$(MANDIR)/man6/\n\t\ +install -m 644 rig.6 $(DESTDIR)$(MANDIR)/man6/rig.6") + (("install -g 0 -m 755 -o 0 -d \\$\\(DATADIR\\)") + "install -m 755 -d $(DESTDIR)$(DATADIR)") + (("install -g 0 -m 644 -o 0 data/\\*.idx \\$\\(DATADIR\\)") + "install -m 644 data/*.idx $(DESTDIR)$(DATADIR)"))))) + #:tests? #f)) + (home-page "http://rig.sourceforge.net") + (synopsis "Random identity generator") + (description + "RIG (Random Identity Generator) generates random, yet real-looking, +personal data. It is useful if you need to feed a name to a Web site, BBS, or +real person, and are too lazy to think of one yourself. Also, if the Web +site/BBS/person you are giving the information to tries to cross-check the +city, state, zip, or area code, it will check out.") + (license license:gpl2+))) base-commit: ad39268cdf075f4c4eeb87ed78ce46ca6f817675 -- 2.25.1