2017-02-14 16:49:51 -08:00
|
|
|
{ stdenv, fetchurl, openssl, libcap, curl, which
|
2017-02-13 08:46:05 -08:00
|
|
|
, eventlog, pkgconfig, glib, python, systemd, perl
|
2017-02-14 16:49:51 -08:00
|
|
|
, riemann_c_client, protobufc, pcre, libnet
|
2018-03-22 11:54:22 -07:00
|
|
|
, json_c, libuuid, libivykis, mongoc, rabbitmq-c
|
|
|
|
, libesmtp
|
|
|
|
}:
|
2017-02-14 16:49:51 -08:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "syslog-ng";
|
|
|
|
in
|
2009-02-05 08:50:45 -08:00
|
|
|
|
2014-08-06 03:10:07 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-14 16:49:51 -08:00
|
|
|
name = "${pname}-${version}";
|
2019-03-02 20:01:37 -08:00
|
|
|
version = "3.20.1";
|
2014-08-06 03:10:07 -07:00
|
|
|
|
2017-02-14 16:49:51 -08:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/balabit/${pname}/releases/download/${name}/${name}.tar.gz";
|
2019-03-02 20:01:37 -08:00
|
|
|
sha256 = "185xixf48rp6isg2bs2y0hm6kf6a8ncncqgz4fd12jf6x6pmhn56";
|
2010-09-08 06:28:05 -07:00
|
|
|
};
|
|
|
|
|
2017-02-14 16:49:51 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig which ];
|
|
|
|
|
2017-02-13 08:46:05 -08:00
|
|
|
buildInputs = [
|
2017-02-14 16:49:51 -08:00
|
|
|
libcap
|
|
|
|
curl
|
2017-02-13 08:46:05 -08:00
|
|
|
openssl
|
|
|
|
eventlog
|
|
|
|
glib
|
2017-02-14 16:49:51 -08:00
|
|
|
perl
|
2017-02-13 08:46:05 -08:00
|
|
|
python
|
|
|
|
systemd
|
|
|
|
riemann_c_client
|
|
|
|
protobufc
|
|
|
|
pcre
|
2017-02-14 16:49:51 -08:00
|
|
|
libnet
|
|
|
|
json_c
|
|
|
|
libuuid
|
|
|
|
libivykis
|
|
|
|
mongoc
|
|
|
|
rabbitmq-c
|
2018-03-22 11:54:22 -07:00
|
|
|
libesmtp
|
2017-02-13 08:46:05 -08:00
|
|
|
];
|
|
|
|
|
2014-06-24 14:52:54 -07:00
|
|
|
configureFlags = [
|
2017-02-14 16:49:51 -08:00
|
|
|
"--enable-manpages"
|
2014-06-24 14:52:54 -07:00
|
|
|
"--enable-dynamic-linking"
|
|
|
|
"--enable-systemd"
|
2018-03-22 11:54:22 -07:00
|
|
|
"--enable-smtp"
|
2017-02-14 16:49:51 -08:00
|
|
|
"--with-ivykis=system"
|
|
|
|
"--with-librabbitmq-client=system"
|
|
|
|
"--with-mongoc=system"
|
|
|
|
"--with-jsonc=system"
|
|
|
|
"--with-systemd-journal=system"
|
2014-06-24 14:52:54 -07:00
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
|
|
|
];
|
2010-09-08 06:28:05 -07:00
|
|
|
|
2017-02-14 16:49:51 -08:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2018-09-25 04:53:18 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-08-06 03:10:07 -07:00
|
|
|
meta = with stdenv.lib; {
|
2018-07-05 18:35:28 -07:00
|
|
|
homepage = https://www.balabit.com/network-security/syslog-ng/;
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
2014-08-06 03:10:07 -07:00
|
|
|
license = licenses.gpl2;
|
2017-02-14 16:49:51 -08:00
|
|
|
maintainers = with maintainers; [ rickynils fpletz ];
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = platforms.linux;
|
2009-02-05 08:50:45 -08:00
|
|
|
};
|
|
|
|
}
|