2015-03-12 02:49:38 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libestr, json_c, zlib, pythonPackages
|
2015-04-23 01:08:53 +02:00
|
|
|
, krb5 ? null, systemd ? null, jemalloc ? null, libmysql ? null, postgresql ? null
|
2015-03-12 02:49:38 +01:00
|
|
|
, libdbi ? null, net_snmp ? null, libuuid ? null, curl ? null, gnutls ? null
|
|
|
|
, libgcrypt ? null, liblognorm ? null, openssl ? null, librelp ? null
|
|
|
|
, libgt ? null, liblogging ? null, libnet ? null, hadoop ? null, rdkafka ? null
|
|
|
|
, libmongo-client ? null, czmq ? null, rabbitmq-c ? null, hiredis ? null
|
|
|
|
}:
|
2013-03-14 14:07:56 +01:00
|
|
|
|
2015-03-12 02:49:38 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
|
|
mkFlag = cond: name: if cond then "--enable-${name}" else "--disable-${name}";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-13 05:39:07 +02:00
|
|
|
name = "rsyslog-8.9.0";
|
2013-03-14 14:07:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-12 02:49:38 +01:00
|
|
|
url = "http://www.rsyslog.com/files/download/rsyslog/${name}.tar.gz";
|
2015-04-13 05:39:07 +02:00
|
|
|
sha256 = "1p3saxfs723479rbsdyvqwfrblcp0bw6mkz2ncrxvnccfn70xc7a";
|
2013-03-14 14:07:56 +01:00
|
|
|
};
|
|
|
|
|
2015-03-12 02:49:38 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig libestr json_c zlib pythonPackages.docutils
|
2015-04-23 01:08:53 +02:00
|
|
|
krb5 jemalloc libmysql postgresql libdbi net_snmp libuuid curl gnutls
|
2015-03-12 02:49:38 +01:00
|
|
|
libgcrypt liblognorm openssl librelp libgt liblogging libnet hadoop rdkafka
|
|
|
|
libmongo-client czmq rabbitmq-c hiredis
|
2015-04-23 01:08:53 +02:00
|
|
|
] ++ stdenv.lib.optional stdenv.isLinux systemd;
|
2013-03-14 15:27:34 +01:00
|
|
|
|
2015-03-12 02:49:38 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-systemdsystemunitdir=\${out}/etc/systemd/system"
|
|
|
|
(mkFlag true "largefile")
|
|
|
|
(mkFlag true "regexp")
|
|
|
|
(mkFlag (krb5 != null) "gssapi-krb5")
|
|
|
|
(mkFlag true "klog")
|
|
|
|
(mkFlag true "kmsg")
|
|
|
|
(mkFlag (systemd != null) "imjournal")
|
|
|
|
(mkFlag true "inet")
|
|
|
|
(mkFlag (jemalloc != null) "jemalloc")
|
|
|
|
(mkFlag true "unlimited-select")
|
|
|
|
(mkFlag true "usertools")
|
2015-04-23 01:08:53 +02:00
|
|
|
(mkFlag (libmysql != null) "mysql")
|
2015-03-12 02:49:38 +01:00
|
|
|
(mkFlag (postgresql != null) "pgsql")
|
|
|
|
(mkFlag (libdbi != null) "libdbi")
|
|
|
|
(mkFlag (net_snmp != null) "snmp")
|
|
|
|
(mkFlag (libuuid != null) "uuid")
|
|
|
|
(mkFlag (curl != null) "elasticsearch")
|
|
|
|
(mkFlag (gnutls != null) "gnutls")
|
|
|
|
(mkFlag (libgcrypt != null) "libgcrypt")
|
|
|
|
(mkFlag true "rsyslogrt")
|
|
|
|
(mkFlag true "rsyslogd")
|
|
|
|
(mkFlag true "mail")
|
|
|
|
(mkFlag (liblognorm != null) "mmnormalize")
|
|
|
|
(mkFlag true "mmjsonparse")
|
|
|
|
(mkFlag true "mmaudit")
|
|
|
|
(mkFlag true "mmanon")
|
|
|
|
(mkFlag true "mmutf8fix")
|
|
|
|
(mkFlag true "mmcount")
|
|
|
|
(mkFlag true "mmsequence")
|
|
|
|
(mkFlag true "mmfields")
|
|
|
|
(mkFlag true "mmpstrucdata")
|
|
|
|
(mkFlag (openssl != null) "mmrfc5424addhmac")
|
|
|
|
(mkFlag (librelp != null) "relp")
|
|
|
|
(mkFlag (libgt != null) "guardtime")
|
|
|
|
(mkFlag (liblogging != null) "liblogging-stdlog")
|
|
|
|
(mkFlag (liblogging != null) "rfc3195")
|
|
|
|
(mkFlag true "imfile")
|
|
|
|
(mkFlag false "imsolaris")
|
|
|
|
(mkFlag true "imptcp")
|
|
|
|
(mkFlag true "impstats")
|
|
|
|
(mkFlag true "omprog")
|
|
|
|
(mkFlag (libnet != null) "omudpspoof")
|
|
|
|
(mkFlag true "omstdout")
|
|
|
|
(mkFlag (systemd != null) "omjournal")
|
|
|
|
(mkFlag true "pmlastmsg")
|
|
|
|
(mkFlag true "pmcisconames")
|
|
|
|
(mkFlag true "pmciscoios")
|
|
|
|
(mkFlag true "pmaixforwardedfrom")
|
|
|
|
(mkFlag true "pmsnare")
|
|
|
|
(mkFlag true "omruleset")
|
|
|
|
(mkFlag true "omuxsock")
|
|
|
|
(mkFlag true "mmsnmptrapd")
|
|
|
|
(mkFlag (hadoop != null) "omhdfs")
|
|
|
|
(mkFlag (rdkafka != null) "omkafka")
|
|
|
|
(mkFlag (libmongo-client != null) "ommongodb")
|
|
|
|
(mkFlag (czmq != null) "imzmq3")
|
|
|
|
(mkFlag (czmq != null) "imczmq")
|
|
|
|
(mkFlag (czmq != null) "omzmq3")
|
|
|
|
(mkFlag (czmq != null) "omczmq")
|
|
|
|
(mkFlag (rabbitmq-c != null) "omrabbitmq")
|
|
|
|
(mkFlag (hiredis != null) "omhiredis")
|
|
|
|
(mkFlag true "generate-man-pages")
|
|
|
|
];
|
2013-03-14 14:07:56 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.rsyslog.com/";
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Enhanced syslog implementation";
|
2015-03-12 02:49:38 +01:00
|
|
|
license = licenses.gpl3;
|
2015-04-05 05:03:37 +02:00
|
|
|
platforms = platforms.linux;
|
2015-03-12 02:49:38 +01:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2013-03-14 14:07:56 +01:00
|
|
|
};
|
|
|
|
}
|