2013-09-06 02:33:28 +02:00
|
|
|
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
|
2011-08-05 21:18:02 +02:00
|
|
|
|
2013-02-22 21:24:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-01 23:28:37 +01:00
|
|
|
name = "bacula-9.6.2";
|
2011-08-05 21:18:02 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-09-06 02:33:28 +02:00
|
|
|
url = "mirror://sourceforge/bacula/${name}.tar.gz";
|
2020-03-01 23:28:37 +01:00
|
|
|
sha256 = "0hw7wvgh7ymyyar5diqjn9kflhcb8a9kjgz6phb0x9r06j8yahaw";
|
2011-08-05 21:18:02 +02:00
|
|
|
};
|
|
|
|
|
2013-09-06 02:33:28 +02:00
|
|
|
buildInputs = [ postgresql sqlite zlib ncurses openssl readline ]
|
|
|
|
# acl relies on attr, which I can't get to build on darwin
|
|
|
|
++ stdenv.lib.optional (!stdenv.isDarwin) acl;
|
2011-08-05 21:18:02 +02:00
|
|
|
|
2018-03-19 10:26:46 +01:00
|
|
|
configureFlags = [
|
2016-04-16 19:47:23 +02:00
|
|
|
"--with-sqlite3=${sqlite.dev}"
|
2017-09-27 21:48:39 +02:00
|
|
|
"--with-postgresql=${postgresql}"
|
2018-03-19 10:26:46 +01:00
|
|
|
"--with-logdir=/var/log/bacula"
|
|
|
|
"--with-working-dir=/var/lib/bacula"
|
|
|
|
"--mandir=\${out}/share/man"
|
2019-08-09 13:43:13 +02:00
|
|
|
] ++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "ac_cv_func_setpgrp_void=yes";
|
2018-03-19 10:26:46 +01:00
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"logdir=\${out}/logdir"
|
|
|
|
"working_dir=\${out}/workdir"
|
2013-03-22 01:53:41 +01:00
|
|
|
];
|
2011-08-05 21:18:02 +02:00
|
|
|
|
2013-03-27 02:24:55 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/sbin/* $out/bin
|
|
|
|
'';
|
|
|
|
|
2013-09-06 02:33:28 +02:00
|
|
|
meta = with stdenv.lib; {
|
2011-08-05 21:18:02 +02:00
|
|
|
description = "Enterprise ready, Network Backup Tool";
|
2020-03-01 23:28:37 +01:00
|
|
|
homepage = "http://bacula.org/";
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2;
|
2018-03-19 10:26:46 +01:00
|
|
|
maintainers = with maintainers; [ domenkozar lovek323 eleanor ];
|
2015-05-27 21:56:04 +02:00
|
|
|
platforms = platforms.all;
|
2011-08-05 21:18:02 +02:00
|
|
|
};
|
|
|
|
}
|