diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-15 01:49:51 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-15 01:58:47 +0100 |
commit | e38f7c625e58a05f0c461599183da6511e7613cd (patch) | |
tree | 430ff875e90a0f123c0614c925f19be15a943159 /pkgs | |
parent | 020fb2cce1684e84da2b584374a85e4d5f36fae1 (diff) | |
download | nixlib-e38f7c625e58a05f0c461599183da6511e7613cd.tar nixlib-e38f7c625e58a05f0c461599183da6511e7613cd.tar.gz nixlib-e38f7c625e58a05f0c461599183da6511e7613cd.tar.bz2 nixlib-e38f7c625e58a05f0c461599183da6511e7613cd.tar.lz nixlib-e38f7c625e58a05f0c461599183da6511e7613cd.tar.xz nixlib-e38f7c625e58a05f0c461599183da6511e7613cd.tar.zst nixlib-e38f7c625e58a05f0c461599183da6511e7613cd.zip |
syslog-ng: refactor
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/system/syslog-ng/default.nix | 52 |
1 files changed, 31 insertions, 21 deletions
diff --git a/pkgs/tools/system/syslog-ng/default.nix b/pkgs/tools/system/syslog-ng/default.nix index 01aa0d1b01bd..4e1fb6719573 100644 --- a/pkgs/tools/system/syslog-ng/default.nix +++ b/pkgs/tools/system/syslog-ng/default.nix @@ -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; }; } |