summaryrefslogtreecommitdiff
path: root/homebrew/john/patches.sh
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/john/patches.sh
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (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/john/patches.sh')
-rwxr-xr-xhomebrew/john/patches.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/homebrew/john/patches.sh b/homebrew/john/patches.sh
new file mode 100755
index 000000000..b61fde2d9
--- /dev/null
+++ b/homebrew/john/patches.sh
@@ -0,0 +1,24 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/src/params.h 2012-08-30 13:24:18.000000000 -0500
++++ b/src/params.h 2012-08-30 13:25:13.000000000 -0500
+@@ -70,15 +70,15 @@
+ * notes above.
+ */
+ #ifndef JOHN_SYSTEMWIDE
+-#define JOHN_SYSTEMWIDE 0
++#define JOHN_SYSTEMWIDE 1
+ #endif
+
+ #if JOHN_SYSTEMWIDE
+ #ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */
+-#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john"
++#define JOHN_SYSTEMWIDE_EXEC "HOMEBREW_PREFIX/share/john"
+ #endif
+ #ifndef JOHN_SYSTEMWIDE_HOME
+-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john"
++#define JOHN_SYSTEMWIDE_HOME "HOMEBREW_PREFIX/share/john"
+ #endif
+ #define JOHN_PRIVATE_HOME "~/.john"
+ #endif
+EOF