burp: new package (backup program)

This commit is contained in:
Daniel Frank 2015-11-03 21:37:19 +01:00
parent 84afac6b89
commit b2a958157d
5 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ stdenv, fetchgit,
acl,
librsync_0_9,
ncurses,
openssl,
zlib
}:
stdenv.mkDerivation rec {
name = "burp-1.3.48";
src = fetchgit {
url = "https://github.com/grke/burp.git";
rev = "3636ce0a992904a374234d68170fc1c265bff357";
sha256 = "708e06b758e8f918aaf7cc8f7517a7eadd456263fe34618e32330e5ad69438c0";
};
patches = [ ./burp_1.3.48.patch ];
buildInputs = [ librsync_0_9 ncurses openssl zlib ]
# next two lines copied from bacula, as burp needs acl as well
# acl relies on attr, which I can't get to build on darwin
++ stdenv.lib.optional (!stdenv.isDarwin) acl;
configureFlags = [
"--sbindir=$out/bin"
];
#installPhase = ''make install'';
meta = with stdenv.lib; {
description = "BURP - BackUp and Restore Program";
homepage = http://burp.grke.org;
license = licenses.agpl3;
maintainers = with maintainers; [ tokudan ];
platforms = platforms.all;
};
}

View File

@ -0,0 +1,22 @@
diff -Naur burp~/CHANGELOG burp/CHANGELOG
--- burp~/CHANGELOG 2015-11-01 21:14:52.621376413 +0000
+++ burp/CHANGELOG 2015-11-01 21:31:44.718110435 +0000
@@ -1,3 +1,6 @@
+2015-11-01 NixOS Patch:
+ * remove dependency on /var and use localstatedir instead
+
2014-01-27 Changes in burp-1.3.48:
* Bug fix for restoring correct file times on Windows clients.
diff -Naur burp~/Makefile.in burp/Makefile.in
--- burp~/Makefile.in 2015-11-01 21:14:52.621376413 +0000
+++ burp/Makefile.in 2015-11-01 22:09:25.098997115 +0000
@@ -90,8 +90,6 @@
$(MKDIR) $(DESTDIR)$(sbindir)
$(MKDIR) $(DESTDIR)$(sysconfdir)
$(MKDIR) $(DESTDIR)$(sysconfdir)/CA-client
- $(MKDIR) $(DESTDIR)/var/run
- $(MKDIR) $(DESTDIR)/var/spool/burp
@if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir ; cp configs/server/clientconfdir/testclient $(DESTDIR)$(sysconfdir)/clientconfdir/testclient ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ; cp configs/server/clientconfdir/incexc $(DESTDIR)$(sysconfdir)/clientconfdir/incexc/example ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/client ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/client ; fi

View File

@ -0,0 +1,12 @@
diff -Naur burp~/Makefile.in burp/Makefile.in
--- burp~/Makefile.in 2015-11-01 21:14:52.621376413 +0000
+++ burp/Makefile.in 2015-11-01 22:09:25.098997115 +0000
@@ -90,8 +90,6 @@
$(MKDIR) $(DESTDIR)$(sbindir)
$(MKDIR) $(DESTDIR)$(sysconfdir)
$(MKDIR) $(DESTDIR)$(sysconfdir)/CA-client
- $(MKDIR) $(DESTDIR)/var/run
- $(MKDIR) $(DESTDIR)/var/spool/burp
@if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir ; cp configs/server/clientconfdir/testclient $(DESTDIR)$(sysconfdir)/clientconfdir/testclient ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ; cp configs/server/clientconfdir/incexc $(DESTDIR)$(sysconfdir)/clientconfdir/incexc/example ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/client ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/client ; fi

View File

@ -0,0 +1,38 @@
{ stdenv, fetchgit,
acl,
librsync,
ncurses,
openssl,
zlib
}:
stdenv.mkDerivation rec {
name = "burp-1.4.40";
src = fetchgit {
url = "https://github.com/grke/burp.git";
rev = "1e8eebac420f2b0dc29102602b7e5e437d58d5b7";
sha256 = "201fe6daf598543eaf3c8cf3495812b3a65695c6841f555410aaaab1098b8f03";
};
patches = [ ./burp_1.4.40.patch ];
buildInputs = [ librsync ncurses openssl zlib ]
# next two lines copied from bacula, as burp needs acl as well
# acl relies on attr, which I can't get to build on darwin
++ stdenv.lib.optional (!stdenv.isDarwin) acl;
configureFlags = [
"--sbindir=$out/bin"
];
#installPhase = ''make install'';
meta = with stdenv.lib; {
description = "BURP - BackUp and Restore Program";
homepage = http://burp.grke.org;
license = licenses.agpl3;
maintainers = with maintainers; [ tokudan ];
platforms = platforms.all;
};
}

View File

@ -985,6 +985,10 @@ let
par2Support = (config.bup.par2Support or false);
};
burp_1_3 = callPackage ../tools/backup/burp/1.3.48.nix { };
burp = callPackage ../tools/backup/burp { };
byzanz = callPackage ../applications/video/byzanz {};
ori = callPackage ../tools/backup/ori { };