2011-03-10 05:11:03 +00:00
|
|
|
class Bsdiff < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Generate and apply patches to binary files"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.daemonology.net/bsdiff"
|
|
|
|
url "http://www.daemonology.net/bsdiff/bsdiff-4.3.tar.gz"
|
|
|
|
sha256 "18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48"
|
2010-07-15 11:22:15 +00:00
|
|
|
|
2014-12-05 06:32:34 +00:00
|
|
|
depends_on "bsdmake" => :build
|
2012-03-16 18:49:56 +00:00
|
|
|
|
2014-03-18 03:44:54 +00:00
|
|
|
patch :DATA
|
2010-07-15 11:22:15 +00:00
|
|
|
|
|
|
|
def install
|
2012-03-16 18:49:56 +00:00
|
|
|
system "bsdmake"
|
2010-10-21 14:54:17 +00:00
|
|
|
bin.install "bsdiff"
|
|
|
|
man1.install "bsdiff.1"
|
2010-07-15 11:22:15 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/bspatch.c b/bspatch.c
|
|
|
|
index 643c60b..543379c 100644
|
|
|
|
--- a/bspatch.c
|
|
|
|
+++ b/bspatch.c
|
|
|
|
@@ -28,6 +28,7 @@
|
|
|
|
__FBSDID("$FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59:06 cperciva Exp $");
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
#include <bzlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|