diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-07-17 11:33:57 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:28 +0200 |
commit | 17eabf477b035ff4590640ebdfd69ca558437c51 (patch) | |
tree | ce7f4b107f12ffad2ee3a221682779502e392ad3 /pkgs/naemon-livestatus | |
parent | b3244321d6919229a7778f47f61b0df9afee3435 (diff) | |
download | NUR-17eabf477b035ff4590640ebdfd69ca558437c51.tar.gz NUR-17eabf477b035ff4590640ebdfd69ca558437c51.tar.zst NUR-17eabf477b035ff4590640ebdfd69ca558437c51.zip |
Add monitoring modules via naemon
Diffstat (limited to 'pkgs/naemon-livestatus')
-rw-r--r-- | pkgs/naemon-livestatus/default.nix | 23 | ||||
-rw-r--r-- | pkgs/naemon-livestatus/naemon-livestatus.json | 15 |
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/naemon-livestatus/default.nix b/pkgs/naemon-livestatus/default.nix new file mode 100644 index 00000000..46ef51ac --- /dev/null +++ b/pkgs/naemon-livestatus/default.nix | |||
@@ -0,0 +1,23 @@ | |||
1 | { stdenv, mylibs, autoconf, automake, | ||
2 | libtool, pkg-config, naemon, | ||
3 | varDir ? "/var/lib/naemon", | ||
4 | etcDir ? "/etc/naemon" | ||
5 | }: | ||
6 | stdenv.mkDerivation (mylibs.fetchedGithub ./naemon-livestatus.json // { | ||
7 | preConfigure = '' | ||
8 | ./autogen.sh || true | ||
9 | ''; | ||
10 | |||
11 | configureFlags = [ | ||
12 | "--localstatedir=${varDir}" | ||
13 | "--sysconfdir=${etcDir}" | ||
14 | ]; | ||
15 | |||
16 | preInstall = '' | ||
17 | substituteInPlace Makefile --replace \ | ||
18 | '@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am' \ | ||
19 | '@$(MAKE) $(AM_MAKEFLAGS) install-exec-am' | ||
20 | ''; | ||
21 | |||
22 | buildInputs = [ autoconf automake libtool pkg-config naemon ]; | ||
23 | }) | ||
diff --git a/pkgs/naemon-livestatus/naemon-livestatus.json b/pkgs/naemon-livestatus/naemon-livestatus.json new file mode 100644 index 00000000..c648d2bb --- /dev/null +++ b/pkgs/naemon-livestatus/naemon-livestatus.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "tag": "33dbcfe-master", | ||
3 | "meta": { | ||
4 | "name": "naemon-livestatus", | ||
5 | "url": "https://github.com/naemon/naemon-livestatus", | ||
6 | "branch": "master" | ||
7 | }, | ||
8 | "github": { | ||
9 | "owner": "naemon", | ||
10 | "repo": "naemon-livestatus", | ||
11 | "rev": "33dbcfe18e42158f25c27cff95a1e07b73be53b0", | ||
12 | "sha256": "16jk0c6pwr7ck0g6s12hj6czbhgdr7c7f74zzsp5279af86y8fd6", | ||
13 | "fetchSubmodules": true | ||
14 | } | ||
15 | } | ||