Monit: Bump to 5.8
- Use callPackage etc - Make PAM optional
This commit is contained in:
parent
e017139e70
commit
6ab576b702
@ -1,30 +1,22 @@
|
|||||||
a :
|
{stdenv, fetchurl, openssl, bison, flex, pam, usePAM ? stdenv.isLinux }:
|
||||||
let
|
|
||||||
s = import ./src-for-default.nix;
|
|
||||||
buildInputs = with a; [
|
|
||||||
bison flex openssl
|
|
||||||
];
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchUrlFromSrcInfo s;
|
|
||||||
|
|
||||||
inherit (s) name;
|
stdenv.mkDerivation rec {
|
||||||
inherit buildInputs;
|
name = "monit-5.8";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "${meta.homepage}dist/${name}.tar.gz";
|
||||||
|
sha256 = "1xa7i29ma81jjxac0qc29wcxxvbv58n3jbwmllscamh1phz5f00c";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ bison flex ];
|
||||||
|
buildInputs = [ openssl ] ++ stdenv.lib.optionals usePAM [ pam ];
|
||||||
|
|
||||||
|
configureFlags = stdenv.lib.optionals (! usePAM) [ "--without-pam" ];
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
|
||||||
configureFlags = [
|
|
||||||
"--with-ssl-incl-dir=${a.openssl}/include"
|
|
||||||
"--with-ssl-lib-dir=${a.openssl}/lib"
|
|
||||||
];
|
|
||||||
preConfigure = a.fullDepEntry (''
|
|
||||||
sed -e 's@/bin/@@' -i Makefile.in
|
|
||||||
'') ["doUnpack" "minInit"];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
homepage = http://mmonit.com/monit/;
|
||||||
description = "Monitoring system";
|
description = "Monitoring system";
|
||||||
maintainers = [
|
license = stdenv.lib.licenses.agpl3;
|
||||||
a.lib.maintainers.raskin
|
maintainer = with stdenv.lib.maintainers; [ raskin wmertens ];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
rec {
|
|
||||||
version="5.5";
|
|
||||||
name="monit-5.5";
|
|
||||||
hash="0lvw9llsnaj72dp6di74sc4sxpa4q3g23m28jwy4brphndhb0xl2";
|
|
||||||
url="http://mmonit.com/monit/download/../dist/monit-${version}.tar.gz";
|
|
||||||
advertisedUrl="http://mmonit.com/monit/download/../dist/monit-5.5.tar.gz";
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
downloadPage = "http://mmonit.com/monit/download/";
|
|
||||||
baseName = "monit";
|
|
||||||
}
|
|
@ -1430,9 +1430,7 @@ let
|
|||||||
|
|
||||||
modemmanager = callPackage ../tools/networking/modemmanager {};
|
modemmanager = callPackage ../tools/networking/modemmanager {};
|
||||||
|
|
||||||
monit = builderDefsPackage ../tools/system/monit {
|
monit = callPackage ../tools/system/monit { };
|
||||||
inherit openssl flex bison;
|
|
||||||
};
|
|
||||||
|
|
||||||
mosh = callPackage ../tools/networking/mosh {
|
mosh = callPackage ../tools/networking/mosh {
|
||||||
boost = boostHeaders;
|
boost = boostHeaders;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user