pmacct: 1.7.5 -> 1.7.6

This commit is contained in:
0x4A6F 2021-02-13 14:17:33 +00:00
parent 986159b823
commit fa3378e9c4
No known key found for this signature in database
GPG Key ID: 8DEDBA5BE07080E1

View File

@ -1,55 +1,56 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, pkg-config , pkg-config
, autoreconfHook , autoreconfHook
, libtool , libtool
, libpcap , libpcap
, libcdada
# Optional Dependencies # Optional Dependencies
, zlib ? null , withJansson ? true, jansson
, withJansson ? true, jansson ? null , withNflog ? true, libnetfilter_log
, withNflog ? true, libnetfilter_log ? null , withSQLite ? true, sqlite
, withSQLite ? true, sqlite ? null , withPgSQL ? true, postgresql
, withPgSQL ? true, postgresql ? null , withMysql ? true, libmysqlclient, zlib
, withMysql ? true, libmysqlclient ? null }: , gnutlsSupport ? false, gnutls
}:
assert withJansson -> jansson != null;
assert withNflog -> libnetfilter_log != null;
assert withSQLite -> sqlite != null;
assert withPgSQL -> postgresql != null;
assert withMysql -> libmysqlclient != null;
let inherit (lib) getDev optional optionalString; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.7.5"; version = "1.7.6";
pname = "pmacct"; pname = "pmacct";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pmacct"; owner = "pmacct";
repo = pname; repo = "pmacct";
rev = "v${version}"; rev = "v${version}";
sha256 = "17p5isrq5w58hvmzhc6akbd37ins3c95g0rvhhdm0v33khzxmran"; sha256 = "0x1i75hwz44siqvn4i58jgji0zwrqgn6ayv89s9m9nh3b423nsiv";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config libtool ]; nativeBuildInputs = [
buildInputs = [ libpcap ] autoreconfHook
++ optional withJansson jansson pkg-config
++ optional withNflog libnetfilter_log libtool
++ optional withSQLite sqlite ];
++ optional withPgSQL postgresql buildInputs = [
++ optional withMysql [ libmysqlclient zlib ]; libcdada
libpcap
] ++ lib.optional withJansson jansson
++ lib.optional withNflog libnetfilter_log
++ lib.optional withSQLite sqlite
++ lib.optional withPgSQL postgresql
++ lib.optionals withMysql [ libmysqlclient zlib ]
++ lib.optional gnutlsSupport gnutls;
MYSQL_CONFIG = MYSQL_CONFIG = lib.optionalString withMysql "${lib.getDev libmysqlclient}/bin/mysql_config";
optionalString withMysql "${getDev libmysqlclient}/bin/mysql_config";
configureFlags = [ configureFlags = [
"--with-pcap-includes=${libpcap}/include" "--with-pcap-includes=${libpcap}/include"
] ++ optional withJansson "--enable-jansson" ] ++ lib.optional withJansson "--enable-jansson"
++ optional withNflog "--enable-nflog" ++ lib.optional withNflog "--enable-nflog"
++ optional withSQLite "--enable-sqlite3" ++ lib.optional withSQLite "--enable-sqlite3"
++ optional withPgSQL "--enable-pgsql" ++ lib.optional withPgSQL "--enable-pgsql"
++ optional withMysql "--enable-mysql"; ++ lib.optional withMysql "--enable-mysql"
++ lib.optional gnutlsSupport "--enable-gnutls";
meta = with lib; { meta = with lib; {
description = "A small set of multi-purpose passive network monitoring tools"; description = "A small set of multi-purpose passive network monitoring tools";