mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
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 :
|
||||
let
|
||||
s = import ./src-for-default.nix;
|
||||
buildInputs = with a; [
|
||||
bison flex openssl
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = a.fetchUrlFromSrcInfo s;
|
||||
{stdenv, fetchurl, openssl, bison, flex, pam, usePAM ? stdenv.isLinux }:
|
||||
|
||||
inherit (s) name;
|
||||
inherit buildInputs;
|
||||
stdenv.mkDerivation rec {
|
||||
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 = {
|
||||
homepage = http://mmonit.com/monit/;
|
||||
description = "Monitoring system";
|
||||
maintainers = [
|
||||
a.lib.maintainers.raskin
|
||||
];
|
||||
license = stdenv.lib.licenses.agpl3;
|
||||
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 {};
|
||||
|
||||
monit = builderDefsPackage ../tools/system/monit {
|
||||
inherit openssl flex bison;
|
||||
};
|
||||
monit = callPackage ../tools/system/monit { };
|
||||
|
||||
mosh = callPackage ../tools/networking/mosh {
|
||||
boost = boostHeaders;
|
||||
|
|
Loading…
Reference in a new issue