syslog-ng: refactor
This commit is contained in:
parent
020fb2cce1
commit
e38f7c625e
@ -1,52 +1,62 @@
|
|||||||
{ stdenv, fetchgit, autoconf, autoconf-archive, automake, libtool, flex, openssl
|
{ stdenv, fetchurl, openssl, libcap, curl, which
|
||||||
, eventlog, pkgconfig, glib, python, systemd, perl
|
, eventlog, pkgconfig, glib, python, systemd, perl
|
||||||
, riemann_c_client, protobufc, pcre, yacc, which }:
|
, riemann_c_client, protobufc, pcre, libnet
|
||||||
|
, json_c, libuuid, libivykis, mongoc, rabbitmq-c }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "syslog-ng";
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "syslog-ng-${version}";
|
name = "${pname}-${version}";
|
||||||
version = "3.9.1";
|
version = "3.9.1";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchurl {
|
||||||
url = "https://github.com/balabit/syslog-ng.git";
|
url = "https://github.com/balabit/${pname}/releases/download/${name}/${name}.tar.gz";
|
||||||
rev = "59aa4e5d9396d293aae021746214b97d7fe0a8ee"; # tag: syslog-ng-3.9.1
|
sha256 = "05qaqw115py5iz55vmc0j1xcwcpr8wa9vpmbixhr1rqaamm8ay2n";
|
||||||
sha256 = "15lalqf6dmpm4nr1pp0f2p0a6wbckkrh1k83vhp9ws0by5m8m66r";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig which ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
autoconf
|
libcap
|
||||||
autoconf-archive
|
curl
|
||||||
automake
|
|
||||||
libtool
|
|
||||||
which
|
|
||||||
flex
|
|
||||||
openssl
|
openssl
|
||||||
eventlog
|
eventlog
|
||||||
pkgconfig
|
|
||||||
glib
|
glib
|
||||||
|
perl
|
||||||
python
|
python
|
||||||
systemd
|
systemd
|
||||||
perl
|
|
||||||
riemann_c_client
|
riemann_c_client
|
||||||
protobufc
|
protobufc
|
||||||
yacc
|
|
||||||
pcre
|
pcre
|
||||||
|
libnet
|
||||||
|
json_c
|
||||||
|
libuuid
|
||||||
|
libivykis
|
||||||
|
mongoc
|
||||||
|
rabbitmq-c
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
./autogen.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--enable-manpages"
|
||||||
"--enable-dynamic-linking"
|
"--enable-dynamic-linking"
|
||||||
"--enable-systemd"
|
"--enable-systemd"
|
||||||
|
"--with-ivykis=system"
|
||||||
|
"--with-librabbitmq-client=system"
|
||||||
|
"--with-mongoc=system"
|
||||||
|
"--with-jsonc=system"
|
||||||
|
"--with-systemd-journal=system"
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://www.balabit.com/network-security/syslog-ng/";
|
homepage = "http://www.balabit.com/network-security/syslog-ng/";
|
||||||
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.rickynils ];
|
maintainers = with maintainers; [ rickynils fpletz ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user