From: "Stefan Reichör" <stefan@xsteve.at>
To: guix-devel@gnu.org
Subject: New package: ifstatus
Date: Mon, 14 Sep 2015 18:35:34 +0200 [thread overview]
Message-ID: <87bnd5dkmh.fsf@xsteve.at> (raw)
[-- Attachment #1: Type: text/plain, Size: 526 bytes --]
Hi there,
I am new to this list. I am already monitoring the progress of guix for
some months. I really like the idea behind it (I am a longterm emacs user).
At the moment I have installed guix on one of my Ubuntu machines.
I jump in with the description of the tool ifstatus.
I am not sure where to put it in the package tree. So I started with a
single file.
The package needs a simple patch (add #include <stdlib.h>). I decided to
do it using substitute*...
I hope ifstatus will be integrated as guix package.
Stefan.
[-- Attachment #2: ifstatus.scm --]
[-- Type: application/octet-stream, Size: 2824 bytes --]
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Stefan Reichoer <stefan@xsteve.at>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (ifstatus)
#:use-module (guix licenses)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
#:use-module (gnu packages ncurses))
(define-public ifstatus
(package
(name "ifstatus")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (string-append "http://ifstatus.sourceforge.net/download/ifstatus-v"
version ".tar.gz"))
(sha256
(base32
"045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
(modules '((guix build utils)))
(snippet
'(begin
(substitute* "Main.h"
(("#include <stdio.h>") "#include <stdio.h>\n#include <stdlib.h>"))))
))
(build-system gnu-build-system)
(arguments
'(#:tests? #f ;no "check" target
#:phases
(modify-phases %standard-phases
(delete 'configure) ;; no configure script
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(mkdir-p bin)
(copy-file "ifstatus"
(string-append bin "/ifstatus"))))))))
(inputs `(("ncurses" ,ncurses)))
(home-page "http://ifstatus.sourceforge.net/graphic/index.html")
(synopsis "Text-based network interface status monitor")
(description
"IFStatus was developed for Linux users that are usually in console mode.
It is a simple, easy to use program for displaying commonly needed / wanted statistics
in real time about ingoing and outgoing traffic of multiple network interfaces that is
usually hard to find, with a simple and effecient view. It is the substitute for
PPPStatus and EthStatus projects.")
(license bsd-2)))
next reply other threads:[~2015-09-14 16:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-14 16:35 Stefan Reichör [this message]
2015-09-14 19:25 ` New package: ifstatus Ricardo Wurmus
2015-09-16 20:06 ` Andreas Enge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnd5dkmh.fsf@xsteve.at \
--to=stefan@xsteve.at \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.