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