diff options
author | cjep <cjep@pkgsrc.org> | 2003-12-30 17:34:45 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2003-12-30 17:34:45 +0000 |
commit | a4cf45284355c0f541d2a3499bbc3cfbdded1dac (patch) | |
tree | 1898c9753f6371f1956c77643b27b9275f9f7b0a /misc/bsdiff | |
parent | bea8e342919c647cdad4a6f5330d53361fa6605b (diff) | |
download | pkgsrc-a4cf45284355c0f541d2a3499bbc3cfbdded1dac.tar.gz |
Initial import of bsdiff (and bspatch) version 4.1 into the NetBSD
packages collection as misc/bsdiff.
Bsdiff and bspatch are tools for building and applying patches to binary
files. By using suffix sorting (specifically, Larsson and Sadakane's
qsufsort) and taking advantage of how executable files change, bsdiff
routinely produces binary patches 50-80% smaller than those produced by
Xdelta, and 15% smaller than those produced by .RTPatch (a $2750/seat
commercial patch tool).
Diffstat (limited to 'misc/bsdiff')
-rw-r--r-- | misc/bsdiff/DESCR | 11 | ||||
-rw-r--r-- | misc/bsdiff/Makefile | 19 | ||||
-rw-r--r-- | misc/bsdiff/PLIST | 5 | ||||
-rw-r--r-- | misc/bsdiff/distinfo | 4 |
4 files changed, 39 insertions, 0 deletions
diff --git a/misc/bsdiff/DESCR b/misc/bsdiff/DESCR new file mode 100644 index 00000000000..dbd52d88937 --- /dev/null +++ b/misc/bsdiff/DESCR @@ -0,0 +1,11 @@ +Bsdiff and bspatch are tools for building and applying patches to binary +files. By using suffix sorting (specifically, Larsson and Sadakane's +qsufsort) and taking advantage of how executable files change, bsdiff +routinely produces binary patches 50-80% smaller than those produced by +Xdelta, and 15% smaller than those produced by .RTPatch (a $2750/seat +commercial patch tool). + +If n is the size of the old file and m is the size of the new file, bsdiff +runs in O((n+m) log n) time; on a 200MHz Pentium Pro, building a binary +patch for a 4MB file takes about 90 seconds. bspatch runs in O(n+m) time; +on the same machine, applying that patch takes about two seconds. diff --git a/misc/bsdiff/Makefile b/misc/bsdiff/Makefile new file mode 100644 index 00000000000..55879ab6a01 --- /dev/null +++ b/misc/bsdiff/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/12/30 17:34:45 cjep Exp $ +# + +DISTNAME= bsdiff-4.1 +CATEGORIES= misc +MASTER_SITES= http://www.daemonology.net/bsdiff/ + +MAINTAINER= cjep@NetBSD.org +HOMEPAGE= http://www.daemonology.net/bsdiff/ +COMMENT= Size efficient binary diff and patch tools + +USE_BUILDLINK2= yes + +.if !exists(/usr/bin/bzip2) +MAKE_ENV+= BZIP2=${LOCALBASE}/bin/bzip2 +.endif + +.include "../../archivers/bzip2/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/misc/bsdiff/PLIST b/misc/bsdiff/PLIST new file mode 100644 index 00000000000..4f3b2e7d7fc --- /dev/null +++ b/misc/bsdiff/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/30 17:34:45 cjep Exp $ +bin/bsdiff +bin/bspatch +man/man1/bsdiff.1 +man/man1/bspatch.1 diff --git a/misc/bsdiff/distinfo b/misc/bsdiff/distinfo new file mode 100644 index 00000000000..93405ea40fb --- /dev/null +++ b/misc/bsdiff/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/12/30 17:34:45 cjep Exp $ + +SHA1 (bsdiff-4.1.tar.gz) = 0c24b121916704069f23199da0689b3e49b77796 +Size (bsdiff-4.1.tar.gz) = 7721 bytes |