1 { stdenv, mylibs, help2man, monitoring-plugins, autoconf, automake,
2 libtool, glib, pkg-config, gperf,
3 varDir ? "/var/lib/naemon",
4 etcDir ? "/etc/naemon",
5 cacheDir ? "/var/cache/naemon",
6 logDir ? "/var/log/naemon",
7 runDir ? "/run/naemon",
11 stdenv.mkDerivation (mylibs.fetchedGithub ./naemon.json // {
12 passthru.status_engine_version = "1-1-0";
18 "--localstatedir=${varDir}"
19 "--sysconfdir=${etcDir}"
20 "--with-pkgconfdir=${etcDir}"
21 "--with-pluginsdir=${monitoring-plugins}/libexec"
22 "--with-tempdir=${cacheDir}"
23 "--with-checkresultdir=${cacheDir}/checkresults"
24 "--with-logdir=${logDir}"
25 "--with-naemon-user=${user}"
26 "--with-naemon-group=${group}"
27 "--with-lockfile=${runDir}/naemon.pid"
31 substituteInPlace Makefile --replace '$(MAKE) $(AM_MAKEFLAGS) install-exec-hook' ""
34 buildInputs = [ autoconf automake help2man libtool glib pkg-config gperf ];