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/default.nix | |
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/default.nix')
-rw-r--r-- | pkgs/naemon-livestatus/default.nix | 23 |
1 files changed, 23 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 | }) | ||