From 12335518ab39608d58370c85ff9f5384ad2aa5f7 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 20 Apr 2019 20:49:46 -0500 Subject: Ported in the homebrew-marauder for a hacky update/import system. TODO: Maybe add a license & fix up messy code. --- homebrew/bsdiff/.beer | 41 +++++++++++++++++++++++++++++++++++ homebrew/bsdiff/.make.sh-auto | 4 ++++ homebrew/bsdiff/_metadata/description | 1 + homebrew/bsdiff/_metadata/homepage | 1 + homebrew/bsdiff/_metadata/name | 1 + homebrew/bsdiff/_metadata/version | 1 + homebrew/bsdiff/download.sh | 1 + homebrew/bsdiff/patches.sh | 15 +++++++++++++ 8 files changed, 65 insertions(+) create mode 100644 homebrew/bsdiff/.beer create mode 100644 homebrew/bsdiff/.make.sh-auto create mode 100644 homebrew/bsdiff/_metadata/description create mode 100644 homebrew/bsdiff/_metadata/homepage create mode 100644 homebrew/bsdiff/_metadata/name create mode 100644 homebrew/bsdiff/_metadata/version create mode 100755 homebrew/bsdiff/download.sh create mode 100755 homebrew/bsdiff/patches.sh (limited to 'homebrew/bsdiff') 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 \n", + " #include \n", + " #include \n", + " #include \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 + #include + #include + #include +EOF -- cgit v1.2.3