From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aCprKqDFXWHCjQAAgWs5BA (envelope-from ) for ; Wed, 06 Oct 2021 17:49:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0PdxJaDFXWF5CAAAB5/wlQ (envelope-from ) for ; Wed, 06 Oct 2021 15:49:52 +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 5E53471F7 for ; Wed, 6 Oct 2021 17:49:52 +0200 (CEST) Received: from localhost ([::1]:42854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mY9B1-0002sA-Gh for larch@yhetil.org; Wed, 06 Oct 2021 11:49:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY8m2-0008VK-Td for guix-patches@gnu.org; Wed, 06 Oct 2021 11:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mY8m2-0002Er-Dr for guix-patches@gnu.org; Wed, 06 Oct 2021 11:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mY8m2-0005Jm-8Z for guix-patches@gnu.org; Wed, 06 Oct 2021 11:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51015] [PATCH v2] gnu: Add Random Identity Generator (rig) References: In-Reply-To: Resent-From: Foo Chuan Wei Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Oct 2021 15:24:02 +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: 51015@debbugs.gnu.org Received: via spool by 51015-submit@debbugs.gnu.org id=B51015.163353380520393 (code B ref 51015); Wed, 06 Oct 2021 15:24:02 +0000 Received: (at 51015) by debbugs.gnu.org; 6 Oct 2021 15:23:25 +0000 Received: from localhost ([127.0.0.1]:45336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY8lQ-0005Iq-Nm for submit@debbugs.gnu.org; Wed, 06 Oct 2021 11:23:25 -0400 Received: from mail-oln040092253076.outbound.protection.outlook.com ([40.92.253.76]:8544 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY8lO-0005IZ-5n for 51015@debbugs.gnu.org; Wed, 06 Oct 2021 11:23:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QcQKpandt+bmazKehM7sm1ER4Be3nVJX8hvrUaOAsCqOn4n/NzyZwDKfSx9ecu43MGGTkIGaVg32BP51adq2DRwxbyciob5GPoYqeTb3Yk4iw3DFNLBQdIgTBWvDHfZ/1XTiyd7Jp+ALXcxSdXeG0hdFOGlnvTcsCqHVmFfMjC2MafO5ze/r2A86nEnFY6kX0Z3IUWOc+tDuavSJkN1j+WhEtv+s8tA83AbXPu76RN4Dcmz5UA46qKQbZ1QQ4q7GCuVB+bbndWqCaUNCMtANR9l0hibuE39KVSbRE18Tdw76SZJiXHOfE8lMzEVEs/sz23RvAPo8FNLY1zevcyGLcQ== 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=AAVPlshJfBlIhPAEHxsOWwbnCII7UOXmUCT2tsQbDcY=; b=GyD3hxHjk0jecmy1PDJU6Igq90+fJdEy564myEF900BRxS/95RgNySLOgTTFmN29JW5oqUVJLUYqokaMLicOJzplggZz9HimHDO3bACGnd8mVPEmzbv03iKrPFhzRgQhdLJueDCHZRXs8GR4xCc2N657puinmNFzx73lNHXRYyEF0wSTmhhmW4UtVpU0s1hmPZk8e2801/VSYDH4vX2QPycShMKNTlVNVyme0G5YcWbTosVLOzuVkRMdxDZJMdtnMg2vQEPMYNi5Z1F1OaPfqfzvLsg4rZvHqT6ukosLOEdO/Y7p2dlhtG5sBJ1wGx7ps41Yq1NPO99qIwy5rXQsxg== 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=AAVPlshJfBlIhPAEHxsOWwbnCII7UOXmUCT2tsQbDcY=; b=L1IUM8J5nWqp44NU9BvkgPA/QS/YiUflKgj26JQU6E0zHhOh+Yt4KQIcXT2YF7QneC4jTFZEZDlcYq0b0p8bZtSy0YGHT1vMVCRKWGFsaLq5G6qlRMXow998y3V6/M88JDqQw9wWrdRLE4rqDqPtprTuXIq/6ZNc9+32DmZrIHOLGVUL1AVPzeDlDDQE3JJoA0kVZqqkskZPWWP/JsTQNS2+tnJCUox3FE8j+/V/5A/4/pt0C8EnbVo6zhL/uKCmxG29zjhKgYTOJcWZp3SuxKzOrcQrCSi/NgeXJRJtPWM9Hk//EvfeGISwRClbo5bezXBNVKDcXgw16mvp4fCaeQ== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by PS2PR01MB2184.apcprd01.prod.exchangelabs.com (2603:1096:300:31::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18; Wed, 6 Oct 2021 15:23:13 +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.4566.022; Wed, 6 Oct 2021 15:23:13 +0000 Date: Wed, 6 Oct 2021 15:23:10 +0000 From: Foo Chuan Wei Message-ID: Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-TMN: [y1U6C9++hvP4G2D9+nWknPDQWOzgPYXK] X-ClientProxiedBy: HK2PR02CA0181.apcprd02.prod.outlook.com (2603:1096:201:21::17) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <20211006152310.fhfcye34k5ugnaar@localhost> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (202.160.33.17) by HK2PR02CA0181.apcprd02.prod.outlook.com (2603:1096:201:21::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Wed, 6 Oct 2021 15:23:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 87b3c87f-0561-490c-ffbd-08d988dd3642 X-MS-TrafficTypeDiagnostic: PS2PR01MB2184: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1vbdxrOYMXqmX6gB8XE1JzwldB5rauUFTimyX2merA/UNyPvOGm+g4eh69oqx1Ps01ncNuHKMKWZHY+TjGRR6ntdcnLW/faonnQjhROAhsF/W7CyYpX3eUaJSEchPO1cgTzLQ1zfbPtuO6hMS/fkwwLE91YBfAG18xPXYwxmJQLnCpSRBBuYZsGnrU+BNsOtHazO1m48XI7NacJOzsm6SV9t5kg5v9FGA6DCt5lFOynIieqHGdrFnHfG1n3315+lzYgCusUbMsFT2xqZ3hQSqVPbDhzv0jmjN8DspvRAiopRGkKGv0My9zp2FJdIgiws9EYqmufb5bGd7DKkBwUeVygkjuj7060hKBnY6GKqzCho8HgiVkCvY2OO4LoO0aN2rjCsmy+RF+lZ5Rgz1ppbQD1Mk3ZWXWRoCt81nxXuy0W+vfx8o8H3nShwEWT0h3fa X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MoNDNlAXHzhw5tMvm/QQztu7T0QKbqq07PMDIqJVdXr7fwmI30iRY9u/CoVc4wTl+55A9JaGrjwCfCLxH5r5vbMAo2vXYOxtxg9wTanvjLgWY3Q0KvrGcLdHzEKvqrmFl7ndpr8g/Y4XqmiBC2sQdA== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-5c337.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 87b3c87f-0561-490c-ffbd-08d988dd3642 X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB2155.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2021 15:23:13.1874 (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: PS2PR01MB2184 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=1633535392; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=AAVPlshJfBlIhPAEHxsOWwbnCII7UOXmUCT2tsQbDcY=; b=nSXh7w2Y8P69vHyFjOaN6QDnV8HGDmzLfbMooL00lzJ9LkWvIJ3cyn1z/emXUogJYNkvFC 54Qmceu6/vGsxvU41D6JSLk0FQ5rkz/AWRfvYuh9lhAhIuogh7aKLzgIvfswnucdBeDXA6 nsqkkOC77Kj4tOE2HzGA5MYaorlhapEotikfuDUSUKLXQtlxeUoM+bfKHJBWERJFCW1kpK LccLbCwJ+LNehX0GfLLiBH1pa8tkd22w5t6Djdvoq/UJb795aRRsbC16ANSepkdF7rajFA xGiM0m3jekDGJB7vk3j0QWJQ8KulQl9UPpzKPzZBi9PXh8SsTst0Pqra08Wbfw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1633535392; a=rsa-sha256; cv=fail; b=FkYSS7zKzJtipH4pVrFsujp4z5wjneLsiINDEy8oIumoCUUABjiFjqB9ZlTd35Mzmt+Evm 9l848u7z7WK2TKR+NgQsDllnHhhUw42mvds+9DqHD29I2TDAef0mO8zy9s1KtJ6sWIF2m7 I0+6begd8BncA+eWaZkXiGjEId1XvdwdWvgJvbR/2szDdUM8N5QIhn6XWTxXrdHGIpyvKZ Jbcc1vTO3MQwAHjwA+cBkTM/8ijbkMZRzknRtT4moIardBWx/GJHzc1xWP6BKLT7Mb3VaS oMviAw6IRcDsXJl9eYUr/vrTV2MRvf8fyLzAChZ75LykV5HkoKMsDzDFfTLtJg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=L1IUM8J5; 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=L1IUM8J5; 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: 5E53471F7 X-Spam-Score: 0.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: UEq+XbBNXIMw * gnu/packages/shellutils.scm (rig): New public variable. --- gnu/packages/patches/rig.patch | 42 ++++++++++++++++++++++++++++++++++ gnu/packages/shellutils.scm | 29 +++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 gnu/packages/patches/rig.patch diff --git a/gnu/packages/patches/rig.patch b/gnu/packages/patches/rig.patch new file mode 100644 index 0000000000..34b4ff6533 --- /dev/null +++ b/gnu/packages/patches/rig.patch @@ -0,0 +1,42 @@ +--- rig-1.11.orig/Makefile ++++ rig-1.11/Makefile +@@ -1,20 +1,23 @@ +-PREFIX=/usr/local ++PREFIX=${out} + BINDIR=${PREFIX}/bin + MANDIR=${PREFIX}/man + DATADIR=${PREFIX}/share/rig ++CXX=g++ + + all: rig rig.6 + rig: rig.cc +- g++ -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\"" ++ ${CXX} -O2 -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\"" + + rig.6: rig.6.in + sed s@DATADIR@"$(DATADIR)"@g < rig.6.in > rig.6 + + install: rig rig.6 +- install -g 0 -m 755 -o 0 -s rig $(BINDIR) +- install -g 0 -m 644 -o 0 rig.6 $(MANDIR)/man6/rig.6 +- install -g 0 -m 755 -o 0 -d $(DATADIR) +- install -g 0 -m 644 -o 0 data/*.idx $(DATADIR) ++ install -m 755 -d $(DESTDIR)$(BINDIR) ++ install -m 755 -d $(DESTDIR)$(DATADIR) ++ install -m 755 -d $(DESTDIR)$(MANDIR)/man6/ ++ install -m 755 rig $(DESTDIR)$(BINDIR)/rig ++ install -m 644 data/*.idx $(DESTDIR)$(DATADIR) ++ install -m 644 rig.6 $(DESTDIR)$(MANDIR)/man6/rig.6 + + clean: + rm -rf *~ *.rej *.orig *.o rig rig.6 +--- rig-1.11.orig/rig.cc ++++ rig-1.11/rig.cc +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + using namespace std; + diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 94b5536df7..662ca84d94 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -35,6 +35,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) @@ -398,3 +399,31 @@ 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")) + (patches (search-patches "rig.patch")))) + (build-system gnu-build-system) + (arguments '(#:phases (modify-phases %standard-phases + (delete 'configure)) + #:tests? #f)) + (synopsis "Random identity generator") + (description + "RIG (Random Identity Generator) is a free replacement for a shareware +program out there called 'fake'. It 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.") + (home-page "http://rig.sourceforge.net") + (license license:gpl2+))) base-commit: f868ed2a75b55400107b80fcc1e41dcfb6b3c28c -- 2.25.1