2014-05-04 08:51:10 +01:00
|
|
|
{stdenv, fetchurl, openssl, bison, flex, pam, usePAM ? stdenv.isLinux }:
|
2009-08-26 17:22:20 +01:00
|
|
|
|
2014-05-04 08:51:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-03 12:27:52 +00:00
|
|
|
name = "monit-5.10";
|
2014-05-04 08:51:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}dist/${name}.tar.gz";
|
2014-11-03 12:27:52 +00:00
|
|
|
sha256 = "0lwlils6b59kr6zg328q113c7mrpggqydpq4l6j52sqv3dd1b49p";
|
2014-05-04 08:51:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex ];
|
|
|
|
buildInputs = [ openssl ] ++ stdenv.lib.optionals usePAM [ pam ];
|
|
|
|
|
2014-05-09 21:47:45 +01:00
|
|
|
configureFlags = [
|
2016-04-16 18:44:32 +01: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 21:47:45 +01:00
|
|
|
] ++ stdenv.lib.optionals (! usePAM) [ "--without-pam" ];
|
2009-08-26 17:22:20 +01:00
|
|
|
|
|
|
|
meta = {
|
2014-05-04 08:51:10 +01:00
|
|
|
homepage = http://mmonit.com/monit/;
|
2009-08-26 17:22:20 +01:00
|
|
|
description = "Monitoring system";
|
2014-05-04 08:51:10 +01:00
|
|
|
license = stdenv.lib.licenses.agpl3;
|
2014-07-22 22:45:18 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin wmertens ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-08-26 17:22:20 +01:00
|
|
|
};
|
|
|
|
}
|