2016-11-17 14:45:56 +01:00
|
|
|
{stdenv, fetchurl, openssl, bison, flex, pam, zlib, usePAM ? stdenv.isLinux }:
|
2009-08-26 18:22:20 +02:00
|
|
|
|
2014-05-04 09:51:10 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-04 18:27:20 +02:00
|
|
|
name = "monit-5.23.0";
|
2016-09-24 09:42:42 +02:00
|
|
|
|
2014-05-04 09:51:10 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}dist/${name}.tar.gz";
|
2017-08-04 18:27:20 +02:00
|
|
|
sha256 = "04v7sp2vc1q6h8c5j8h4izffn9d97cdj0k64m4ml00lw6wxgwffx";
|
2014-05-04 09:51:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
2016-11-17 14:45:56 +01:00
|
|
|
buildInputs = [ openssl zlib.dev ] ++ stdenv.lib.optionals usePAM [ pam ];
|
2014-05-04 09:51:10 +02:00
|
|
|
|
2014-05-09 22:47:45 +02:00
|
|
|
configureFlags = [
|
2016-04-16 19:44:32 +02:00
|
|
|
"--with-ssl-incl-dir=${openssl.dev}/include"
|
2016-01-24 08:30:05 +01:00
|
|
|
"--with-ssl-lib-dir=${openssl.out}/lib"
|
2014-05-09 22:47:45 +02:00
|
|
|
] ++ stdenv.lib.optionals (! usePAM) [ "--without-pam" ];
|
2009-08-26 18:22:20 +02:00
|
|
|
|
|
|
|
meta = {
|
2014-05-04 09:51:10 +02:00
|
|
|
homepage = http://mmonit.com/monit/;
|
2009-08-26 18:22:20 +02:00
|
|
|
description = "Monitoring system";
|
2014-05-04 09:51:10 +02:00
|
|
|
license = stdenv.lib.licenses.agpl3;
|
2014-07-22 23:45:18 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin wmertens ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-08-26 18:22:20 +02:00
|
|
|
};
|
|
|
|
}
|