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/johnjumbo | |
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/johnjumbo')
-rw-r--r-- | homebrew/johnjumbo/.beer | 68 | ||||
-rw-r--r-- | homebrew/johnjumbo/.make.sh-auto | 5 | ||||
-rw-r--r-- | homebrew/johnjumbo/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/johnjumbo/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/johnjumbo/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/johnjumbo/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/johnjumbo/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/johnjumbo/patches.sh | 25 |
8 files changed, 103 insertions, 0 deletions
diff --git a/homebrew/johnjumbo/.beer b/homebrew/johnjumbo/.beer new file mode 100644 index 000000000..baea0de04 --- /dev/null +++ b/homebrew/johnjumbo/.beer @@ -0,0 +1,68 @@ +{ + "name": "JohnJumbo", + "description": "Enhanced version of john, a UNIX password cracker", + "url": "https://openwall.com/john/j/john-1.8.0-jumbo-1.tar.xz", + "mirror": null, + "homepage": "https://www.openwall.com/john/", + "depends": [ + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "gmp", + "build-depend": false + }, + { + "depend": "openssl", + "build-depend": false + } + ], + "resource": [], + "conflicts": [ + { + "conflict": "john", + "reason": "both install the same binaries" + } + ], + "patches": [ + { + "url": "https://github.com/magnumripper/JohnTheRipper/commit/d29ad8aabaa9726eb08f440001c37611fa072e0c.diff?full_index=1", + "strip": "1" + }, + { + "url": null, + "data": [ + "--- a/src/params.h\t2012-08-30 13:24:18.000000000 -0500\n", + "+++ b/src/params.h\t2012-08-30 13:25:13.000000000 -0500\n", + "@@ -70,15 +70,15 @@\n", + " * notes above.\n", + " */\n", + " #ifndef JOHN_SYSTEMWIDE\n", + "-#define JOHN_SYSTEMWIDE\t\t\t0\n", + "+#define JOHN_SYSTEMWIDE\t\t\t1\n", + " #endif\n", + "\n", + " #if JOHN_SYSTEMWIDE\n", + " #ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */\n", + "-#define JOHN_SYSTEMWIDE_EXEC\t\t\"/usr/libexec/john\"\n", + "+#define JOHN_SYSTEMWIDE_EXEC\t\t\"HOMEBREW_PREFIX/share/john\"\n", + " #endif\n", + " #ifndef JOHN_SYSTEMWIDE_HOME\n", + "-#define JOHN_SYSTEMWIDE_HOME\t\t\"/usr/share/john\"\n", + "+#define JOHN_SYSTEMWIDE_HOME\t\t\"HOMEBREW_PREFIX/share/john\"\n", + " #endif\n", + " #define JOHN_PRIVATE_HOME\t\t\"~/.john\"\n", + " #endif\n" + ] + } + ], + "install": [ + "cd \"src\" do", + "system \"./configure\", \"--disable-native-tests\", \"--disable-native-macro\"", + "system \"make\", \"clean\"", + "system \"make\", \"-s\", \"CC=#{ENV.cc}\"" + ], + "version": "1.8.0", + "file": "john-jumbo.rb" +}
\ No newline at end of file diff --git a/homebrew/johnjumbo/.make.sh-auto b/homebrew/johnjumbo/.make.sh-auto new file mode 100644 index 000000000..ec26055bf --- /dev/null +++ b/homebrew/johnjumbo/.make.sh-auto @@ -0,0 +1,5 @@ +pkg:setup +cd "src" +pkg:configure --disable-native-tests --disable-native-macro +make clean +make -s CC=${PKG_TARG}-clang diff --git a/homebrew/johnjumbo/_metadata/description b/homebrew/johnjumbo/_metadata/description new file mode 100644 index 000000000..2ca4be9df --- /dev/null +++ b/homebrew/johnjumbo/_metadata/description @@ -0,0 +1 @@ +Enhanced version of john, a UNIX password cracker diff --git a/homebrew/johnjumbo/_metadata/homepage b/homebrew/johnjumbo/_metadata/homepage new file mode 100644 index 000000000..6ca096469 --- /dev/null +++ b/homebrew/johnjumbo/_metadata/homepage @@ -0,0 +1 @@ +https://www.openwall.com/john/ diff --git a/homebrew/johnjumbo/_metadata/name b/homebrew/johnjumbo/_metadata/name new file mode 100644 index 000000000..6039bff76 --- /dev/null +++ b/homebrew/johnjumbo/_metadata/name @@ -0,0 +1 @@ +JohnJumbo diff --git a/homebrew/johnjumbo/_metadata/version b/homebrew/johnjumbo/_metadata/version new file mode 100644 index 000000000..27f9cd322 --- /dev/null +++ b/homebrew/johnjumbo/_metadata/version @@ -0,0 +1 @@ +1.8.0 diff --git a/homebrew/johnjumbo/download.sh b/homebrew/johnjumbo/download.sh new file mode 100755 index 000000000..54a6e1875 --- /dev/null +++ b/homebrew/johnjumbo/download.sh @@ -0,0 +1 @@ +wget https://openwall.com/john/j/john-1.8.0-jumbo-1.tar.xz
\ No newline at end of file diff --git a/homebrew/johnjumbo/patches.sh b/homebrew/johnjumbo/patches.sh new file mode 100755 index 000000000..5d3b3418a --- /dev/null +++ b/homebrew/johnjumbo/patches.sh @@ -0,0 +1,25 @@ +wget https://github.com/magnumripper/JohnTheRipper/commit/d29ad8aabaa9726eb08f440001c37611fa072e0c.diff?full_index=1 +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 |