Merge pull request #107793 from devhell/iptraf-ng

iptraf-ng: 1.1.4 -> 1.2.1
This commit is contained in:
stigo 2021-01-03 20:13:33 +01:00 committed by GitHub
commit bc1b117218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,27 @@
{ stdenv, fetchurl, ncurses }: { stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.1.4"; version = "1.2.1";
pname = "iptraf-ng"; pname = "iptraf-ng";
src = fetchurl { src = fetchFromGitHub {
url = "https://fedorahosted.org/releases/i/p/iptraf-ng/${pname}-${version}.tar.gz"; owner = pname;
sha256 = "02gb8z9h2s6s1ybyikywz7jgb1mafdx88hijfasv3khcgkq0q53r"; repo = pname;
rev = "v${version}";
sha256 = "1f91w1bjaayr6ld95z2q55ny983bb0m05k1jrw2bcddvcihaiqb1";
}; };
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
configurePhase = '' makeFlags = [
./configure --prefix=$out/usr --sysconfdir=$out/etc \ "DESTDIR=$(out)"
--localstatedir=$out/var --sbindir=$out/bin "prefix=/usr"
''; "sbindir=/bin"
];
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
meta = { meta = with stdenv.lib; {
description = "A console-based network monitoring utility (fork of iptraf)"; description = "A console-based network monitoring utility (fork of iptraf)";
longDescription = '' longDescription = ''
IPTraf-ng is a console-based network monitoring utility. IPTraf-ng IPTraf-ng is a console-based network monitoring utility. IPTraf-ng
@ -38,9 +41,9 @@ stdenv.mkDerivation rec {
of the Linux kernel, so it can be used on a wide variety of supported of the Linux kernel, so it can be used on a wide variety of supported
network cards. network cards.
''; '';
homepage = "https://fedorahosted.org/iptraf-ng/"; homepage = "https://github.com/iptraf-ng/iptraf-ng";
license = stdenv.lib.licenses.gpl2; license = licenses.gpl2Only;
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
maintainers = [ stdenv.lib.maintainers.devhell ]; maintainers = with maintainers; [ devhell ];
}; };
} }