* Added bsdiff 4.2. Wow, this is even better than zdelta (which in

turn appears to be better than vdelta).

svn path=/nixpkgs/trunk/; revision=1819
This commit is contained in:
Eelco Dolstra 2004-11-29 21:17:29 +00:00
parent 9ebbbd25cc
commit 1d9072670b
5 changed files with 46 additions and 0 deletions

View file

@ -106,6 +106,10 @@ rec {
inherit fetchurl stdenv;
};
bsdiff = (import ../tools/compression/bsdiff) {
inherit fetchurl stdenv;
};
which = (import ../tools/system/which) {
inherit fetchurl stdenv;
};

View file

@ -15,6 +15,7 @@ let {
gzip
bzip2
zdelta
bsdiff
wget
par2cmdline
cksfv

View file

@ -0,0 +1,8 @@
. $stdenv/setup
installFlags="PREFIX=$out INSTALL=install"
ensureDir "$out/bin"
ensureDir "$out/man/man1"
genericBuild

View file

@ -0,0 +1,11 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "bsdiff-4.2";
builder = ./builder.sh;
src = fetchurl {
url = http://www.daemonology.net/bsdiff/bsdiff-4.2.tar.gz;
md5 = "9f582a77eb76d116d82d1ad268ef48fa";
};
patches = [./makefile.patch];
}

View file

@ -0,0 +1,22 @@
diff -rc bsdiff-orig/Makefile bsdiff-4.2/Makefile
*** bsdiff-orig/Makefile 2004-07-11 20:10:02.000000000 +0200
--- bsdiff-4.2/Makefile 2004-11-29 22:15:05.000000000 +0100
***************
*** 1,7 ****
CFLAGS += -O3
- .ifdef BZIP2
- CFLAGS += -DBZIP2=\"${BZIP2}\"
- .endif
PREFIX ?= /usr/local
INSTALL_PROGRAM ?= ${INSTALL} -c -s -m 555
--- 1,4 ----
***************
*** 13,18 ****
install:
${INSTALL_PROGRAM} bsdiff bspatch ${PREFIX}/bin
- .ifndef WITHOUT_MAN
${INSTALL_MAN} bsdiff.1 bspatch.1 ${PREFIX}/man/man1
- .endif
--- 10,13 ----