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