ntopng: 5.2.1 -> 5.6
Changelog: https://github.com/ntop/ntopng/blob/5.6/CHANGELOG.md
This commit is contained in:
parent
0d88b0dac6
commit
31cb9b0840
|
@ -1,38 +1,77 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, autoreconfHook
|
{ lib
|
||||||
, zeromq, ndpi, json_c, openssl, libpcap, libcap, curl, libmaxminddb
|
, stdenv
|
||||||
, rrdtool, sqlite, libmysqlclient, expat, net-snmp
|
, autoreconfHook
|
||||||
|
, curl
|
||||||
|
, expat
|
||||||
|
, fetchFromGitHub
|
||||||
|
, git
|
||||||
|
, json_c
|
||||||
|
, libcap
|
||||||
|
, libmaxminddb
|
||||||
|
, libmysqlclient
|
||||||
|
, libpcap
|
||||||
|
, libsodium
|
||||||
|
, ndpi
|
||||||
|
, net-snmp
|
||||||
|
, openssl
|
||||||
|
, pkg-config
|
||||||
|
, rdkafka
|
||||||
|
, gtest
|
||||||
|
, rrdtool
|
||||||
|
, hiredis
|
||||||
|
, sqlite
|
||||||
|
, which
|
||||||
|
, zeromq
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ntopng";
|
pname = "ntopng";
|
||||||
version = "5.2.1";
|
version = "5.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ntop";
|
owner = "ntop";
|
||||||
repo = "ntopng";
|
repo = "ntopng";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-FeRERSq8F3HEelUCkA6pgNNcP94xrWy6EbJgk+cEdqc=";
|
hash = "sha256-iGqrS0AneKYwGMEpbKy9if8bnaEu6aEV+QaH+JrF9xs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
preConfigure = ''
|
||||||
(fetchpatch {
|
substituteInPlace Makefile.in \
|
||||||
url = "https://github.com/ntop/ntopng/commit/0aa580e1a45f248fffe6d11729ce40571f08e187.patch";
|
--replace "/bin/rm" "rm"
|
||||||
sha256 = "sha256-xqEVwfGgkNS+akbJnLZsVvEQdp9GxxUen8VkFomtcPI=";
|
'';
|
||||||
})
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
|
git
|
||||||
|
pkg-config
|
||||||
|
which
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zeromq ndpi json_c openssl libpcap curl libmaxminddb rrdtool sqlite
|
curl
|
||||||
libmysqlclient expat net-snmp libcap
|
expat
|
||||||
|
json_c
|
||||||
|
libcap
|
||||||
|
libmaxminddb
|
||||||
|
libmysqlclient
|
||||||
|
libpcap
|
||||||
|
gtest
|
||||||
|
hiredis
|
||||||
|
libsodium
|
||||||
|
net-snmp
|
||||||
|
openssl
|
||||||
|
rdkafka
|
||||||
|
rrdtool
|
||||||
|
sqlite
|
||||||
|
zeromq
|
||||||
];
|
];
|
||||||
|
|
||||||
autoreconfPhase = "bash autogen.sh";
|
autoreconfPhase = "bash autogen.sh";
|
||||||
|
|
||||||
preConfigure = ''
|
configureFlags = [
|
||||||
substituteInPlace Makefile.in --replace "/bin/rm" "rm"
|
"--with-ndpi-includes=${ndpi}/include/ndpi"
|
||||||
'';
|
"--with-ndpi-static-lib=${ndpi}/lib/"
|
||||||
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
sed -e "s|\(#define CONST_BIN_DIR \).*|\1\"$out/bin\"|g" \
|
sed -e "s|\(#define CONST_BIN_DIR \).*|\1\"$out/bin\"|g" \
|
||||||
|
@ -44,10 +83,10 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "High-speed web-based traffic analysis and flow collection tool";
|
description = "High-speed web-based traffic analysis and flow collection tool";
|
||||||
homepage = "http://www.ntop.org/products/ntop/";
|
homepage = "https://www.ntop.org/products/traffic-analysis/ntop/";
|
||||||
changelog = "https://github.com/ntop/ntopng/blob/${version}/CHANGELOG.md";
|
changelog = "https://github.com/ntop/ntopng/blob/${version}/CHANGELOG.md";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = [ maintainers.bjornfor ];
|
maintainers = with maintainers; [ bjornfor ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue