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 6KfFJ/ftmF8MPQAA0tVLHw (envelope-from ) for ; Wed, 28 Oct 2020 04:05:11 +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 CJqZI/ftmF9+PwAAbx9fmQ (envelope-from ) for ; Wed, 28 Oct 2020 04:05:11 +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 78A6A9403E7 for ; Wed, 28 Oct 2020 04:05:10 +0000 (UTC) Received: from localhost ([::1]:59754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXchw-0006H4-PJ for larch@yhetil.org; Wed, 28 Oct 2020 00:05:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXchq-0006Gb-9N for guix-patches@gnu.org; Wed, 28 Oct 2020 00:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXchp-0002FG-VB for guix-patches@gnu.org; Wed, 28 Oct 2020 00:05:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXchp-0003JQ-Oz for guix-patches@gnu.org; Wed, 28 Oct 2020 00:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44271] [PATCH] gnu: Add atop. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Oct 2020 04:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44271 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44271@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160385785112655 (code B ref -1); Wed, 28 Oct 2020 04:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Oct 2020 04:04:11 +0000 Received: from localhost ([127.0.0.1]:46717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXcgu-0003Hs-R5 for submit@debbugs.gnu.org; Wed, 28 Oct 2020 00:04:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:48496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXcgt-0003Hh-Ux for submit@debbugs.gnu.org; Wed, 28 Oct 2020 00:04:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXcgt-0006Cq-K5 for guix-patches@gnu.org; Wed, 28 Oct 2020 00:04:03 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:41799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXcgp-0001tG-90 for guix-patches@gnu.org; Wed, 28 Oct 2020 00:04:01 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 19254B06; Wed, 28 Oct 2020 00:03:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 28 Oct 2020 00:03:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=TG8C2o3qOkVGy1C4y/EmJ7b ++ZvfAdCJhqvE792/2q4=; b=Ni3kbHxgo1pBea25fZNzIoeRpAKqNG/iW5CGZPH zBOkWUU6ZAysjJ1modwWO9VtjfMpzULN9p4HSUBMCKtgWyGe+laB5W8q0tnD3IB+ HElQCV2HopQ8Kfm6kdlcur3PQ1PzMkmwgcTyZvM7FyMRYBVc3TkayfFIq8V/5MPm kfGs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=TG8C2o 3qOkVGy1C4y/EmJ7b++ZvfAdCJhqvE792/2q4=; b=aJAjfRbEjze9WfHqicRgMx ZEi4objzqx4ObC1U/EiS1OpCRwru4RkWaGLmTzYFpVtTxCZru1KzGROr4lWhc7kG d3Ohyj+jEe0RP8bQm1JyOZyFLukZaHKKp3PtgNrQRmENQNVJcxf591gUQ2fi3sy+ tdWgCqfrr5RUzVHMZRpQ+26CnEefGNzRDSmJkwVdZpliWaF1fBq9cfXIJOXdaxu8 PnHN3lvFeNzDo/Q3qbAhUdsK5htctvxI5Sj5R5reYwlPv+ozFDzh+39hRBYfQiHF yeMe77d2f4Sguzrn0Q5W/2ScR6qqOnYxeMSN6VTf5An97caVQBTsVC5NMocRvz/w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrledtgdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtre dtjeenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhi rdhnrghmvgeqnecuggftrfgrthhtvghrnhepjedvjeevjeelledujeeujedvheetkeevle ekhfduteeljeffjeevhfeltdffieetnecuffhomhgrihhnpegrthhophhtohholhdrnhhl necukfhppeejfedrudeguddruddvjedrudegieenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: from jasmine.lan (c-73-141-127-146.hsd1.pa.comcast.net [73.141.127.146]) by mail.messagingengine.com (Postfix) with ESMTPA id 69714306467D for ; Wed, 28 Oct 2020 00:03:54 -0400 (EDT) From: Leo Famulari Date: Wed, 28 Oct 2020 00:03:46 -0400 Message-Id: <9ef211e34eeaf487e3be9c70a6fc0c45269b4f0b.1603857825.git.leo@famulari.name> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.24; envelope-from=leo@famulari.name; helo=wout1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/28 00:03:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.1 (/) 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=famulari.name header.s=mesmtp header.b=Ni3kbHxg; dkim=fail (rsa verify failed) header.d=messagingengine.com header.s=fm1 header.b=aJAjfRbE; dmarc=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: 0.99 X-TUID: jiwnur3CbgFR * gnu/packages/admin.scm (atop): New variable. --- gnu/packages/admin.scm | 60 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 8dcf8afd843..d54b1df8255 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2015, 2016 Taylan Ulrich Bayırlı/Kammer ;;; Copyright © 2015 Alex Sassmannshausen ;;; Copyright © 2015 Eric Dvorsak -;;; Copyright © 2016, 2017 Leo Famulari +;;; Copyright © 2016, 2017, 2020 Leo Famulari ;;; Copyright © 2016 Pjotr Prins ;;; Copyright © 2016, 2017 Ricardo Wurmus ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner @@ -4122,3 +4122,61 @@ EX6150v2, DNG3700v2, R6100, R6220, R7000, D7000, WNR3500, R6400, R6800, R8000, R8500, WNDR3800, but is likely to be compatible with many other Netgear devices.") (license license:gpl3+))) + +(define-public atop + (package + (name "atop") + (version "2.5.0") + (source (origin + (method url-fetch) + (uri (string-append "https://www.atoptool.nl/download/atop-" + version ".tar.gz")) + (sha256 + (base32 + "0crzz4i2nabyh7d6xg7fvl65qls87nbca5ihidp3nijhrrbi14ab")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no test suite + #:make-flags + (list (string-append "CC=" ,(cc-for-target)) + ;; The installer requires a choice between systemd or SysV. + "systemdinstall" + (string-append "DESTDIR=" (assoc-ref %outputs "out")) + (string-append "BINPATH=/bin") + (string-append "SBINPATH=/sbin") + (string-append "SYSDPATH=/etc/systemd/system") + (string-append "PMPATHD=/etc/systemd/system-sleep") + (string-append "MAN1PATH=/share/man/man1") + (string-append "MAN5PATH=/share/man/man5") + (string-append "MAN8PATH=/share/man/man8") + ;; Or else it tries to create /var/log/atop... + (string-append "LOGPATH=")) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; No ./configure script + (add-before 'build 'patch-build + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + ;; We don't need to chown things in the build environment. + (("chown.*$") "") + ;; We can't toggle the setuid bit in the build environment. + (("chmod 04711") "chmod 0711") + ;; Otherwise, it creates a blank configuration file as a "default". + (("touch.*DEFPATH)/atop") "") + (("chmod.*DEFPATH)/atop") "")) + #t))))) + (inputs + `(("ncurses" ,ncurses) + ("python" ,python-wrapper) ; for `atopgpud` + ("zlib" ,zlib))) + (home-page "https://www.atoptool.nl/") + (synopsis "Linux performance monitoring console") + (description "Atop is an ASCII full-screen performance monitor for Linux +that is capable of reporting the activity of all processes (even if processes +have finished during the interval), daily logging of system and process activity +for long-term analysis, highlighting overloaded system resources by using +colors, etc. At regular intervals, it shows system-level activity related to +the CPU, memory, swap, disks (including LVM) and network layers, and for every +process (and thread) it shows e.g. the CPU utilization, memory growth, disk +utilization, priority, username, state, and exit code.") + (license license:gpl2+))) -- 2.29.1