Merge pull request #37674 from obsidiansystems/syslogng-smtp

syslog-ng: enable SMTP destination
This commit is contained in:
John Ericson 2018-04-05 18:58:47 -04:00 committed by GitHub
commit b4eeafd82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

@ -0,0 +1,18 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libESMTP-${version}";
version = "1.0.6";
src = fetchurl {
url = "http://brianstafford.info/libesmtp/libesmtp-1.0.6.tar.bz2";
sha256 = "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh";
};
meta = with stdenv.lib; {
homepage = http://brianstafford.info/libesmtp/index.html;
description = "A Library for Posting Electronic Mail";
license = licenses.lgpl21;
};
}

@ -1,7 +1,9 @@
{ stdenv, fetchurl, openssl, libcap, curl, which
, eventlog, pkgconfig, glib, python, systemd, perl
, riemann_c_client, protobufc, pcre, libnet
, json_c, libuuid, libivykis, mongoc, rabbitmq-c }:
, json_c, libuuid, libivykis, mongoc, rabbitmq-c
, libesmtp
}:
let
pname = "syslog-ng";
@ -36,12 +38,14 @@ stdenv.mkDerivation rec {
libivykis
mongoc
rabbitmq-c
libesmtp
];
configureFlags = [
"--enable-manpages"
"--enable-dynamic-linking"
"--enable-systemd"
"--enable-smtp"
"--with-ivykis=system"
"--with-librabbitmq-client=system"
"--with-mongoc=system"

@ -8717,6 +8717,8 @@ with pkgs;
esdl = callPackage ../development/libraries/esdl { };
libesmtp = callPackage ../development/libraries/libesmtp { };
exiv2 = callPackage ../development/libraries/exiv2 { };
expat = callPackage ../development/libraries/expat { };