diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/bsdiff | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/bsdiff')
-rw-r--r-- | homebrew/bsdiff/.beer | 41 | ||||
-rw-r--r-- | homebrew/bsdiff/.make.sh-auto | 4 | ||||
-rw-r--r-- | homebrew/bsdiff/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/bsdiff/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/bsdiff/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/bsdiff/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/bsdiff/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/bsdiff/patches.sh | 15 |
8 files changed, 65 insertions, 0 deletions
diff --git a/homebrew/bsdiff/.beer b/homebrew/bsdiff/.beer new file mode 100644 index 000000000..370c43672 --- /dev/null +++ b/homebrew/bsdiff/.beer @@ -0,0 +1,41 @@ +{ + "name": "Bsdiff", + "description": "Generate and apply patches to binary files", + "url": "https://www.daemonology.net/bsdiff/bsdiff-4.3.tar.gz", + "mirror": null, + "homepage": "https://www.daemonology.net/bsdiff", + "depends": [ + { + "depend": "bsdmake", + "build-depend": true + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/bspatch.c b/bspatch.c\n", + "index 643c60b..543379c 100644\n", + "--- a/bspatch.c\n", + "+++ b/bspatch.c\n", + "@@ -28,6 +28,7 @@\n", + " __FBSDID(\"$FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59:06 cperciva Exp $\");\n", + " #endif\n", + "\n", + "+#include <sys/types.h>\n", + " #include <bzlib.h>\n", + " #include <stdlib.h>\n", + " #include <stdio.h>\n" + ] + } + ], + "install": [ + "system \"bsdmake\"", + "bin.install \"bsdiff\"", + "man1.install \"bsdiff.1\"" + ], + "version": "4.3", + "file": "bsdiff.rb" +}
\ No newline at end of file diff --git a/homebrew/bsdiff/.make.sh-auto b/homebrew/bsdiff/.make.sh-auto new file mode 100644 index 000000000..ef3dead1d --- /dev/null +++ b/homebrew/bsdiff/.make.sh-auto @@ -0,0 +1,4 @@ +pkg:setup +bsdmake +bin.install "bsdiff" +man1.install "bsdiff.1" diff --git a/homebrew/bsdiff/_metadata/description b/homebrew/bsdiff/_metadata/description new file mode 100644 index 000000000..faee1aec9 --- /dev/null +++ b/homebrew/bsdiff/_metadata/description @@ -0,0 +1 @@ +Generate and apply patches to binary files diff --git a/homebrew/bsdiff/_metadata/homepage b/homebrew/bsdiff/_metadata/homepage new file mode 100644 index 000000000..7fc7fc1e5 --- /dev/null +++ b/homebrew/bsdiff/_metadata/homepage @@ -0,0 +1 @@ +https://www.daemonology.net/bsdiff diff --git a/homebrew/bsdiff/_metadata/name b/homebrew/bsdiff/_metadata/name new file mode 100644 index 000000000..15508fa91 --- /dev/null +++ b/homebrew/bsdiff/_metadata/name @@ -0,0 +1 @@ +Bsdiff diff --git a/homebrew/bsdiff/_metadata/version b/homebrew/bsdiff/_metadata/version new file mode 100644 index 000000000..69df05f33 --- /dev/null +++ b/homebrew/bsdiff/_metadata/version @@ -0,0 +1 @@ +4.3 diff --git a/homebrew/bsdiff/download.sh b/homebrew/bsdiff/download.sh new file mode 100755 index 000000000..6294e94d1 --- /dev/null +++ b/homebrew/bsdiff/download.sh @@ -0,0 +1 @@ +wget https://www.daemonology.net/bsdiff/bsdiff-4.3.tar.gz
\ No newline at end of file diff --git a/homebrew/bsdiff/patches.sh b/homebrew/bsdiff/patches.sh new file mode 100755 index 000000000..4149cf86d --- /dev/null +++ b/homebrew/bsdiff/patches.sh @@ -0,0 +1,15 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +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> +EOF |