summary refs log tree commit diff
path: root/pkgs/tools/backup/burp
diff options
context:
space:
mode:
authorDaniel Frank <git@danielfrank.net>2015-11-03 21:37:19 +0100
committerDaniel Frank <git@danielfrank.net>2015-11-03 21:40:14 +0100
commitb2a958157d2bdab4fe045930fec9c24388ad7730 (patch)
treea04721fecc83c5e996449b8cc0e7a4a03f0404f3 /pkgs/tools/backup/burp
parent84afac6b899ff6eff176b5576cd7867e15082d84 (diff)
downloadnixpkgs-b2a958157d2bdab4fe045930fec9c24388ad7730.tar
nixpkgs-b2a958157d2bdab4fe045930fec9c24388ad7730.tar.gz
nixpkgs-b2a958157d2bdab4fe045930fec9c24388ad7730.tar.bz2
nixpkgs-b2a958157d2bdab4fe045930fec9c24388ad7730.tar.lz
nixpkgs-b2a958157d2bdab4fe045930fec9c24388ad7730.tar.xz
nixpkgs-b2a958157d2bdab4fe045930fec9c24388ad7730.tar.zst
nixpkgs-b2a958157d2bdab4fe045930fec9c24388ad7730.zip
burp: new package (backup program)
Diffstat (limited to 'pkgs/tools/backup/burp')
-rw-r--r--pkgs/tools/backup/burp/1.3.48.nix38
-rw-r--r--pkgs/tools/backup/burp/burp_1.3.48.patch22
-rw-r--r--pkgs/tools/backup/burp/burp_1.4.40.patch12
-rw-r--r--pkgs/tools/backup/burp/default.nix38
4 files changed, 110 insertions, 0 deletions
diff --git a/pkgs/tools/backup/burp/1.3.48.nix b/pkgs/tools/backup/burp/1.3.48.nix
new file mode 100644
index 00000000000..f680b9826cf
--- /dev/null
+++ b/pkgs/tools/backup/burp/1.3.48.nix
@@ -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;
+  };
+}
diff --git a/pkgs/tools/backup/burp/burp_1.3.48.patch b/pkgs/tools/backup/burp/burp_1.3.48.patch
new file mode 100644
index 00000000000..4349a861a9a
--- /dev/null
+++ b/pkgs/tools/backup/burp/burp_1.3.48.patch
@@ -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
diff --git a/pkgs/tools/backup/burp/burp_1.4.40.patch b/pkgs/tools/backup/burp/burp_1.4.40.patch
new file mode 100644
index 00000000000..fe57202bc34
--- /dev/null
+++ b/pkgs/tools/backup/burp/burp_1.4.40.patch
@@ -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
diff --git a/pkgs/tools/backup/burp/default.nix b/pkgs/tools/backup/burp/default.nix
new file mode 100644
index 00000000000..a81a659eada
--- /dev/null
+++ b/pkgs/tools/backup/burp/default.nix
@@ -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;
+  };
+}