From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kPQrIt50wmLviwAAbAwnHQ (envelope-from ) for ; Mon, 04 Jul 2022 07:04:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4Ow4It50wmKTqwAA9RJhRA (envelope-from ) for ; Mon, 04 Jul 2022 07:04:30 +0200 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 DB03C353E8 for ; Mon, 4 Jul 2022 07:04:29 +0200 (CEST) Received: from localhost ([::1]:50356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8EG5-0008GN-2C for larch@yhetil.org; Mon, 04 Jul 2022 01:04:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8EFf-0008G9-3F for guix-patches@gnu.org; Mon, 04 Jul 2022 01:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8EFe-00083x-BT for guix-patches@gnu.org; Mon, 04 Jul 2022 01:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o8EFe-0004Ub-5H for guix-patches@gnu.org; Mon, 04 Jul 2022 01:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56378] [PATCH v2] gnu: Add pw. References: <20220704040248.942540-1-paul@apatience.com> In-Reply-To: <20220704040248.942540-1-paul@apatience.com> Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Jul 2022 05:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56378 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56378@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 56378-submit@debbugs.gnu.org id=B56378.165691103717258 (code B ref 56378); Mon, 04 Jul 2022 05:04:02 +0000 Received: (at 56378) by debbugs.gnu.org; 4 Jul 2022 05:03:57 +0000 Received: from localhost ([127.0.0.1]:45837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8EFY-0004UH-Qb for submit@debbugs.gnu.org; Mon, 04 Jul 2022 01:03:57 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]:44926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8EFV-0004U4-TX for 56378@debbugs.gnu.org; Mon, 04 Jul 2022 01:03:55 -0400 Date: Mon, 04 Jul 2022 05:03:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1656911028; x=1657170228; bh=HohzRBZUGdLVJijPg8VYUR33OZqnDzt3QkcfEh+yQ+o=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=jZl8xjXunrS1dwtXnfX52JRyM/K/ISymLFz89OUfJz8KvGTgKWt5n6z8+/Mu9Y8Cx VD1L3PUeDFqRNFwnOaBNx83rYoyAqulyAjAiJjrA21pJSd77M2zGzeMxs6jabSYUsa 8QIB+4YfqcdHZvFPNsF3GE60O9dBjmJ3pnkln7NXKOcQeqQuea2ib+516uGAHB5q2W UwIyO72M6GYf5IZ2tLl/LCR94NwpiWWgi5siciDvCyFdhufpIRwTmPgjlDfREOB6J6 KNq0XsUeN23HO+YgiWNa957bBMzcD61IBUhTZqNVQJkfR+QX0mEY7tvKZhtPqtvUrV GT6OdMvvzGJ+A== From: "Paul A. Patience" Message-ID: <20220704050340.975019-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656911070; h=from:from:sender:sender:reply-to: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=HohzRBZUGdLVJijPg8VYUR33OZqnDzt3QkcfEh+yQ+o=; b=BqMkDENqwa83csM282BAmWEcdHdh9jUKL1teRe8QnNmDH1yJqTGVjAH8nwbxBd2qz7C/Nd XVT4/poCykdrJmyA1v7UclxTHbG6VlkYuICTVWB/6J+qSdy/9aX7d16AuWvNm9RX/HlGrJ kE7horto2HW/XAyal7YZZIxv/S6Km5u16lr7tX8OmHPRo4AZpxcZ34W9uTFnchzzS6OVGe m8JnAPpyU88LzFyV1bmDpN9CPqCMUBpprSRGn4JWXDhHQX9WARi/1/IjCJ8oGj21Tsj5GF VPc3cBgcQXVkNrXpMAxc9zvSRrDrHNcezBbQYEyISgPfiIyhdVMKzM+cv7Q6LA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656911070; a=rsa-sha256; cv=none; b=JCNx33NPDiyQ6QB1iYTn8eqUTsNTs1mRGcZPvSiTAlbQ4bf5KrMTGIsNhBd6aYugB9JVpu +W7Ism+P2xnEbV09ErqOL6y5L+nS4eg/8MIN0Hqn3iVFS+gXnlu5pmo61z6mSHGXUlrzDr vpWjBp7sUvxy/naY4xo3ATKwFIDHMhv0YR0st7Z7cRkTibABEPgA6MuhFVrU01nkof2WZZ Zgw3B2QhEEbv+KbK816/csiVuuCcbgo8HDCbYHSWYryDLN8ElC7RdHpJNprXt2vj0hT0+Q n38w0w0+IOSyvzttB5tARTkJippWCalP4kFudkd7xKmQNjcGSsu5EpuUvNQBFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=jZl8xjXu; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=jZl8xjXu; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DB03C353E8 X-Spam-Score: 1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: kLx5DWpTDY4a * gnu/packages/monitoring.scm (pw): New variable. --- Fixed the git url (different from homepage url). gnu/packages/monitoring.scm | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index 1544efb614..eb552cff8e 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -682,3 +682,63 @@ (define-public fatrace power saving.") (home-page "https://github.com/martinpitt/fatrace") (license license:gpl3+))) + +(define-public pw + (package + (name "pw") + (version "2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://www.kylheku.com/git/pw") + (commit (string-append "pw-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xn3qnzz48xan78cp83hfrcifrxx9lgnm14134qhyr5wvj7dk246")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; There are no tests + #:make-flags + #~(list (string-append "CC=3D" #$(cc-for-target)) + (string-append "DESTDIR=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-makefile + (lambda _ + (substitute* "Makefile" + (("/share/man/man1 \\\\") "/share/man/man1; \\")))) + (delete 'configure) + (add-before 'install 'make-install-dirs + (lambda _ + (mkdir-p (string-append #$output "/bin")) + (mkdir-p (string-append #$output "/share/man/man1")) + (mkdir-p (string-append #$output "/share/man/man5")))))= )) + (home-page "https://www.kylheku.com/cgit/pw/") + (synopsis "Monitor recent lines of output from pipe") + (description + "@command{pw} is Pipe Watch, a utility that continuously reads lines = of +text from a pipe or pipe-like source, passes them through a FIFO buffer, a= nd +maintains a display based on the occasional sampling of the contents of th= e +FIFO buffer, with useful features such as triggering and filtering. + +With @command{pw} you can: + +@itemize +@item Interactively apply and remove filters on-the-fly, without interrupt= ing +the source. + +@item Make recurring patterns in the stream appear to ``freeze'' on the +screen, using triggers. + +@item Prevent the overwhelming amount of output from a program from floodi= ng +the terminal, while consuming all of that output so that the program isn't +blocked. @command{pw} can pause its display updates entirely. + +@item Juggle multiple shell background jobs that produce output, yet execu= te +indefinitely without blocking. When @command{pw} runs as part of a shell +background job, it continues to consume input, process filters and take +snapshots, without displaying anything. When put into the foreground agai= n, +display resumes. +@end itemize") + (license license:bsd-2))) -- 2.36.1