GNU bug report logs - #47798
[PATCH] gnu: Add collectl.

Previous Next

Package: guix-patches;

Reported by: Roel Janssen <roel <at> gnu.org>

Date: Thu, 15 Apr 2021 13:41:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 47798 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#47798; Package guix-patches. (Thu, 15 Apr 2021 13:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roel Janssen <roel <at> gnu.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 15 Apr 2021 13:41:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roel Janssen <roel <at> gnu.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add collectl.
Date: Thu, 15 Apr 2021 15:40:43 +0200
[Message part 1 (text/plain, inline)]
Hi Guix,

Here's a patch to add collectl.

Cheers,
Roel

[0001-gnu-Add-collectl.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#47798; Package guix-patches. (Wed, 03 Nov 2021 11:04:02 GMT) Full text and rfc822 format available.

Message #8 received at 47798 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Roel Janssen <roel <at> gnu.org>
Cc: 47798 <at> debbugs.gnu.org
Subject: Re: bug#47798: [PATCH] gnu: Add collectl.
Date: Wed, 03 Nov 2021 11:16:37 +0100
Hi Roel,

On Thu, 15 Apr 2021 at 15:40, Roel Janssen <roel <at> gnu.org> wrote:

>>From b03d5b84bb8c68b08d25a2e243b405b58ac4c047 Mon Sep 17 00:00:00 2001
> From: Roel Janssen <roel <at> gnu.org>
> Date: Thu, 15 Apr 2021 15:38:37 +0200
> Subject: [PATCH] gnu: Add collectl.
>
> * gnu/packages/admin.scm (collectl): New variable.
> ---
>  gnu/packages/admin.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 42 insertions(+)

I have not built this patch myself but it LGTM.  If it builds fine for
you and “guix lint” does not report, feel free to push. :-)

Cheers,
simon




Information forwarded to guix-patches <at> gnu.org:
bug#47798; Package guix-patches. (Fri, 05 Nov 2021 06:07:02 GMT) Full text and rfc822 format available.

Message #11 received at 47798 <at> debbugs.gnu.org (full text, mbox):

From: phodina <phodina <at> protonmail.com>
To: "47798 <at> debbugs.gnu.org" <47798 <at> debbugs.gnu.org>
Subject: [PATCH v2] gnu: Add collectl.
Date: Fri, 05 Nov 2021 06:05:51 +0000
Hi zimoun and Roel,

I've build and used the package. The only issue was with the copyright line, therefore I'm sending this patch.

Petr

----8>------------cut here------------------->8-----------

* gnu/packages/admin.scm (collectl): New variable.

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 86b6b7ce50..33aebfecfe 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -44,6 +44,7 @@
 ;;; Copyright © 2021 Brice Waegeneire <brice <at> waegenei.re>
 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
 ;;; Copyright © 2021 Maxime Devos <maximedevos <at> telenet.be>
+;;; Copyright © 2021 Roel Janssen <roel <at> gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -430,6 +431,47 @@ (define-public cloud-utils
 @end itemize")
     (license license:gpl3)))

+(define-public collectl
+  (package
+   (name "collectl")
+   (version "4.3.1")
+   (source (origin
+             (method url-fetch)
+             (uri (string-append
+                   "mirror://sourceforge/collectl/collectl/collectl-" version
+                   "/collectl-" version ".src.tar.gz"))
+             (sha256
+              (base32
+               "1wc9k3rmhqzh6cx5dcpqhlc3xcpadsn2ic54r19scdjbjx6jd1r1"))))
+   (build-system gnu-build-system)
+   (arguments
+    `(#:tests? #f ; There are no tests.
+      #:phases
+      (modify-phases %standard-phases
+        (delete 'build) ; There's nothing to build.
+        (replace 'configure
+          (lambda* (#:key outputs #:allow-other-keys)
+            (substitute* "INSTALL"
+              (("DESTDIR:=\"/\"") (format #f "DESTDIR:=~s"
+                                          (assoc-ref outputs "out")))
+              (("DESTDIR/usr") "DESTDIR"))))
+        (replace 'install
+          (lambda* (#:key outputs #:allow-other-keys)
+            (substitute* "collectl"
+             (("\\$configFile='';")
+              (string-append "$configFile='"
+                             (assoc-ref outputs "out")
+                             "/etc';")))
+            (invoke "./INSTALL"))))))
+   (inputs
+    `(("perl" ,perl)))
+   (home-page "http://collectl.sourceforge.net")
+   (synopsis "Performance data collector")
+   (description "This package provides a program that collects various
+performance measurement data like CPU, memory, disk and network performance
+numbers.")
+   (license license:artistic2.0)))
+
 (define-public daemontools
   (package
     (name "daemontools")
--
2.33.1




This bug report was last modified 2 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.