mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
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
|
||||
, 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 {
|
||||
name = "syslog-ng-${version}";
|
||||
name = "${pname}-${version}";
|
||||
version = "3.9.1";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/balabit/syslog-ng.git";
|
||||
rev = "59aa4e5d9396d293aae021746214b97d7fe0a8ee"; # tag: syslog-ng-3.9.1
|
||||
sha256 = "15lalqf6dmpm4nr1pp0f2p0a6wbckkrh1k83vhp9ws0by5m8m66r";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/balabit/${pname}/releases/download/${name}/${name}.tar.gz";
|
||||
sha256 = "05qaqw115py5iz55vmc0j1xcwcpr8wa9vpmbixhr1rqaamm8ay2n";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig which ];
|
||||
|
||||
buildInputs = [
|
||||
autoconf
|
||||
autoconf-archive
|
||||
automake
|
||||
libtool
|
||||
which
|
||||
flex
|
||||
libcap
|
||||
curl
|
||||
openssl
|
||||
eventlog
|
||||
pkgconfig
|
||||
glib
|
||||
perl
|
||||
python
|
||||
systemd
|
||||
perl
|
||||
riemann_c_client
|
||||
protobufc
|
||||
yacc
|
||||
pcre
|
||||
libnet
|
||||
json_c
|
||||
libuuid
|
||||
libivykis
|
||||
mongoc
|
||||
rabbitmq-c
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--enable-manpages"
|
||||
"--enable-dynamic-linking"
|
||||
"--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"
|
||||
];
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.balabit.com/network-security/syslog-ng/";
|
||||
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.rickynils ];
|
||||
maintainers = with maintainers; [ rickynils fpletz ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user