Merge pull request #37365 from proteansec/pkgs/bacula
bacula: 5.2.13 -> 9.2.1
This commit is contained in:
commit
38b2520b96
@ -346,8 +346,12 @@ in {
|
|||||||
description = "Bacula File Daemon";
|
description = "Bacula File Daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.bacula ];
|
path = [ pkgs.bacula ];
|
||||||
serviceConfig.ExecStart = "${pkgs.bacula}/sbin/bacula-fd -f -u root -g bacula -c ${fd_conf}";
|
serviceConfig = {
|
||||||
serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecStart = "${pkgs.bacula}/sbin/bacula-fd -f -u root -g bacula -c ${fd_conf}";
|
||||||
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
|
LogsDirectory = "bacula";
|
||||||
|
StateDirectory = "bacula";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.bacula-sd = mkIf sd_cfg.enable {
|
systemd.services.bacula-sd = mkIf sd_cfg.enable {
|
||||||
@ -355,8 +359,12 @@ in {
|
|||||||
description = "Bacula Storage Daemon";
|
description = "Bacula Storage Daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.bacula ];
|
path = [ pkgs.bacula ];
|
||||||
serviceConfig.ExecStart = "${pkgs.bacula}/sbin/bacula-sd -f -u bacula -g bacula -c ${sd_conf}";
|
serviceConfig = {
|
||||||
serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecStart = "${pkgs.bacula}/sbin/bacula-sd -f -u bacula -g bacula -c ${sd_conf}";
|
||||||
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
|
LogsDirectory = "bacula";
|
||||||
|
StateDirectory = "bacula";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresql.enable = dir_cfg.enable == true;
|
services.postgresql.enable = dir_cfg.enable == true;
|
||||||
@ -366,8 +374,12 @@ in {
|
|||||||
description = "Bacula Director Daemon";
|
description = "Bacula Director Daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.bacula ];
|
path = [ pkgs.bacula ];
|
||||||
serviceConfig.ExecStart = "${pkgs.bacula}/sbin/bacula-dir -f -u bacula -g bacula -c ${dir_conf}";
|
serviceConfig = {
|
||||||
serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecStart = "${pkgs.bacula}/sbin/bacula-dir -f -u bacula -g bacula -c ${dir_conf}";
|
||||||
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
|
LogsDirectory = "bacula";
|
||||||
|
StateDirectory = "bacula";
|
||||||
|
};
|
||||||
preStart = ''
|
preStart = ''
|
||||||
if ! test -e "${libDir}/db-created"; then
|
if ! test -e "${libDir}/db-created"; then
|
||||||
${pkgs.postgresql}/bin/createuser --no-superuser --no-createdb --no-createrole bacula
|
${pkgs.postgresql}/bin/createuser --no-superuser --no-createdb --no-createrole bacula
|
||||||
|
@ -1,20 +1,28 @@
|
|||||||
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
|
{ stdenv, fetchurl, sqlite, postgresql, zlib, acl, ncurses, openssl, readline }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "bacula-5.2.13";
|
name = "bacula-9.2.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/bacula/${name}.tar.gz";
|
url = "mirror://sourceforge/bacula/${name}.tar.gz";
|
||||||
sha256 = "1n3sc0kd7r0afpyi708y3md0a24rbldnfcdz0syqj600pxcd9gm4";
|
sha256 = "1mv6axdlv246yww9g2ra76hir1km36cv8lk2gal8kv71i64vafmf";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ postgresql sqlite zlib ncurses openssl readline ]
|
buildInputs = [ postgresql sqlite zlib ncurses openssl readline ]
|
||||||
# acl relies on attr, which I can't get to build on darwin
|
# acl relies on attr, which I can't get to build on darwin
|
||||||
++ stdenv.lib.optional (!stdenv.isDarwin) acl;
|
++ stdenv.lib.optional (!stdenv.isDarwin) acl;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-sqlite3=${sqlite.dev}"
|
"--with-sqlite3=${sqlite.dev}"
|
||||||
"--with-postgresql=${postgresql}"
|
"--with-postgresql=${postgresql}"
|
||||||
|
"--with-logdir=/var/log/bacula"
|
||||||
|
"--with-working-dir=/var/lib/bacula"
|
||||||
|
"--mandir=\${out}/share/man"
|
||||||
|
];
|
||||||
|
|
||||||
|
installFlags = [
|
||||||
|
"logdir=\${out}/logdir"
|
||||||
|
"working_dir=\${out}/workdir"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -26,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Enterprise ready, Network Backup Tool";
|
description = "Enterprise ready, Network Backup Tool";
|
||||||
homepage = http://bacula.org/;
|
homepage = http://bacula.org/;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ domenkozar lovek323 ];
|
maintainers = with maintainers; [ domenkozar lovek323 eleanor ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user