2014-05-04 09:51:10 +02:00
|
|
|
{stdenv, fetchurl, openssl, bison, flex, pam, usePAM ? stdenv.isLinux }:
|
2009-08-26 18:22:20 +02:00
|
|
|
|
2014-05-04 09:51:10 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-20 02:21:25 +02:00
|
|
|
name = "monit-5.8.1";
|
2014-05-04 09:51:10 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}dist/${name}.tar.gz";
|
2014-05-20 02:21:25 +02:00
|
|
|
sha256 = "1rbhr3aff8pbiz60r73607hci4yngv5xq1b6yjx9xhks4mwlnpm2";
|
2014-05-04 09:51:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
buildInputs = [ openssl ] ++ stdenv.lib.optionals usePAM [ pam ];
|
|
|
|
|
2014-05-09 22:47:45 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-ssl-incl-dir=${openssl}/include"
|
|
|
|
"--with-ssl-lib-dir=${openssl}/lib"
|
|
|
|
] ++ 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 ];
|
2009-08-26 18:22:20 +02:00
|
|
|
};
|
|
|
|
}
|