summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorcjep <cjep>2003-12-30 17:34:45 +0000
committercjep <cjep>2003-12-30 17:34:45 +0000
commit065bed5d853e0a9bec18976036be9fb153c96e3a (patch)
tree1898c9753f6371f1956c77643b27b9275f9f7b0a /misc
parenta9cff35a9cd342ec74c4255f4b6f403c54ae9fb5 (diff)
downloadpkgsrc-065bed5d853e0a9bec18976036be9fb153c96e3a.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')
-rw-r--r--misc/bsdiff/DESCR11
-rw-r--r--misc/bsdiff/Makefile19
-rw-r--r--misc/bsdiff/PLIST5
-rw-r--r--misc/bsdiff/distinfo4
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