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 sbEKIGMuW2EypQAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 18:40:03 +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 uFshG2MuW2HuEwAA1q6Kng (envelope-from ) for ; Mon, 04 Oct 2021 16:40:03 +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 E368EB593 for ; Mon, 4 Oct 2021 18:40:02 +0200 (CEST) Received: from localhost ([::1]:49392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXR0U-0007X7-0C for larch@yhetil.org; Mon, 04 Oct 2021 12:40:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXQqp-0005U5-Lt for guix-patches@gnu.org; Mon, 04 Oct 2021 12:30:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXQqp-0004mk-Ab for guix-patches@gnu.org; Mon, 04 Oct 2021 12:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXQqp-0002i6-1D for guix-patches@gnu.org; Mon, 04 Oct 2021 12:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51015] [PATCH] Add Random Identity Generator (rig) Resent-From: Chuan Wei Foo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Oct 2021 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51015@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163336497110339 (code B ref -1); Mon, 04 Oct 2021 16:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2021 16:29:31 +0000 Received: from localhost ([127.0.0.1]:38198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXQqF-0002gd-UT for submit@debbugs.gnu.org; Mon, 04 Oct 2021 12:29:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:49140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXQ5D-0007gk-4D for submit@debbugs.gnu.org; Mon, 04 Oct 2021 11:40:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXQ5C-0004JH-AY for guix-patches@gnu.org; Mon, 04 Oct 2021 11:40:50 -0400 Received: from mail-pu1apc01olkn081f.outbound.protection.outlook.com ([2a01:111:f400:febe::81f]:35168 helo=APC01-PU1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXQ59-0002y4-Gv for guix-patches@gnu.org; Mon, 04 Oct 2021 11:40:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gd/mTU2IeFsnh1cIibevy2ysQUEcDZwhMSt0f0NWK/mPHCDgvEf8KLpUR9OwKLdoJ9Cup8dUNAdIZziltyHqSiHv4UhLyMFdS6Qly57a2SN7Y/rocinh40VFIeouS+xAQsbg5ofPwuSzx3am9S3Y8a+p0iK7URlb2U6mTpn98Y6PvxUKB0FfSEYpEdbNjgh1ejyJI8JOAR0EYKy4Y/7LnHo/3AE3Ar/lmJr8eMHrJ2/ghv5i/sMNJ/g4HQqUtbC7KQ8zCdE3MVzbYGztHlEyF99p6EHB0KajLyIQqKuyE881IettjiX3Wa+0AnHOg7NdkDYgi86vcdWaheoQ2VaMoA== 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=q9UsbHRti6dGkk1ezia6Gi5UDI40K8jr4c5a8P19gGo=; b=iIe4N8O3hnMpshIXHll6wiWewuB4BdRwdZ+eOCniZxOlGN3tCd01/Fh3pRyFrntoEIRsSA9tK1yE96SmLGDFw8FAigNB0lrPJMG70CBl0uCgcbH/cIBny1/hDPZ4CljV7ou5APRiSN39A8bzgdY8xy/qC5SYH9r8nflmCAc4UKMOnsv6GwFMkIV0rATh13uH/0iKpYJYuwyIl5cuQT/vL3is+B/9jmeDhIO3cQrwZiK1abbsQK7Ks4ZlxS6glKjCU7KSpUl+tHev4r9Kc7hBFuyh6aH02QGKKBFly7ROV2jVL0UzYo7IDM1vzVRlrPLkcr3CZ7neY/vM0A+JBn5SBQ== 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=q9UsbHRti6dGkk1ezia6Gi5UDI40K8jr4c5a8P19gGo=; b=RKqMpcVeh8HJDiq/IAAb1r8xJBRM7tXLzsI+JQksTPmHTWhym3ppaxWjY1K7bLik6EfLIi4s0UwGqfPG3pEk/eXJznTw/Rt6oMTLK99U1QN/rbfhorDhGxX6iGBYolFeKy2F00xyLYMXg2QHPHDhR+Z0kH3L1YpSj0DKYTwHZirf9JXttRHYYlH6bz3kP6dJ2t6xSMlArxRtQ8mW1OENkWGUiJdaawI5vNfB+cPGbeZbzM2V79Vfl7oOrA6n494Jd/OWH1E8x9FswYQftWwzJNQ+WbKAKzslWj4r2dnK3vMnqQAs5Do1CK4Cx2B9d7uOLt5jtKN3+UzTSrXvz3AuEA== Received: from PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) by PS1PR01MB3436.apcprd01.prod.exchangelabs.com (2603:1096:300:7a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.19; Mon, 4 Oct 2021 15:35:40 +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.017; Mon, 4 Oct 2021 15:35:40 +0000 From: Chuan Wei Foo Message-ID: Date: Mon, 4 Oct 2021 23:35:38 +0800 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TMN: [IwcGIXbRwUI4ElCi1i2KqRGMFeJ57Z7Y] X-ClientProxiedBy: HK2P15301CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::19) To PU1PR01MB2155.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::21) X-Microsoft-Original-Message-ID: <56a7ff52-778e-c4c4-b522-48823115f981@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.0.2.15] (61.6.253.94) by HK2P15301CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.1 via Frontend Transport; Mon, 4 Oct 2021 15:35:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0f6dfbd5-6d64-4748-d8fc-08d9874c9f00 X-MS-TrafficTypeDiagnostic: PS1PR01MB3436: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v1oVKcJNariysihdFFFOo+sRCK35DwS+0IDJ1VmL73kn+3cwFq207cwruNfakVeUQP2r7MV1MnaRUhPHO6OweeVgRXe9UXliIwQ0tlZtJErR3GEazkLS+eRjTAigNHd3O3SboRcznOGzi78ggdSGi8eumEvybrCyGi36o/gZsr/ufrdvXWK6LOHXd6EyXjBv3DhIADJy4H5RCLuQzp6ScxpIDGPJDTuX+tWgR3Zyijyix7H5t+Cr4VzU0qHn7qvNGThZEp9fKMKrbT7pgEqLIGRE2igcvFD83sSpTIuL/oXAqazRqqJwznYqgaWg06W7+B8u4t9eCWILEvzDfngU7pfF6kYzZf3SA+YXC4vTV3EnWphAP/Q6GHKeZvwRXFELAV5X8rSbz6cga5g9KXujyBZXJy5SXo96c5TzM0IthDI7s4+ETu1NfOIpAvVg1dQs X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QrfQwFLLyjzGzmPTpvMoxwEyR+tK6hh9UlhpY20zA4ldQm3QrCki3fml1bHW78+BEUHywB0aRw3Rudsl56SaiernO3/EyMvixoxI9Ga5ga+uQ7x8GpdMRiWrKcycl7ZclWcwpYp98rqXKQqZeCgvmg== X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-5c337.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 0f6dfbd5-6d64-4748-d8fc-08d9874c9f00 X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB2155.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2021 15:35:40.6601 (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: PS1PR01MB3436 Received-SPF: pass client-ip=2a01:111:f400:febe::81f; envelope-from=chuanwei.foo@hotmail.com; helo=APC01-PU1-obe.outbound.protection.outlook.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 04 Oct 2021 12:29:26 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 04 Oct 2021 12:39:39 -0400 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=1633365603; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=q9UsbHRti6dGkk1ezia6Gi5UDI40K8jr4c5a8P19gGo=; b=A7q70GIw0wVxQpSJKnJLuByvBfFvtrXJ5UDpXTx6pOZdJYRqNDwmE6luL8oj7d36F9Dj/w aJVQlejMo9dLgZXYWCQ2nRVOf8mSaTbwm10J6y33Iy6EDWULVxsATumX2pMkfzi1MoYx8m vYsyqofW4pOjZMIBfTeFBNqeW0OAR0qAzwwKoH56D8YjVu8LmnEyDrv43DWSCEMwHbGioL qaSV/ViDOo4UT3A8TT9Tm+E56Bw5QBUwAYhPJMqhehY40Q4UOHXBpgKO5GgXaqt76vTXIc eE8OgHa9FcuyPp9b8KJBs34LPua8Hg5X5J3jU4DUbBQ8nMZTPGpX+wnLpcHQ3g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1633365603; a=rsa-sha256; cv=fail; b=IFJxxjXqUlo14H1s7BnFVO+KEAzJq5zDJB0M/sYA4CcRvfTH+3YPNjSJ82CmNHqH3FVtcM 4RbShzG8cUrmsx3TIu2+BjIO/1q6T8T8biF4pNfT2ef4qpkfY1hXrtLaRBVa/UVotL8Ign SDcz+fwiVg3Hwykm2dxdQlTsT8blWYd9yu24uSoIr8h7rSQzdBFaofVG5xb+Sx25eDpUMx DQPirCfsWQgWzokQs8+bc/xSwNBa+McAeYcaF1wjKrb/KmjWJB0RnAbDZFzEbrSweD6CkU q6xWwmQ0YB1PO47UN0bM8KOECLaQPlw9iMgt0LqJ6N0oaAWIMM8wVGamRy5SRA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=RKqMpcVe; 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.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hotmail.com header.s=selector1 header.b=RKqMpcVe; 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: E368EB593 X-Spam-Score: 0.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: /uXl+CDjww49 --- 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..ef93977eb9 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)) -- 2.25.1