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