summaryrefslogtreecommitdiff
path: root/homebrew/mcrypt
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/mcrypt')
-rw-r--r--homebrew/mcrypt/.beer52
-rw-r--r--homebrew/mcrypt/.make.sh-auto4
-rw-r--r--homebrew/mcrypt/_metadata/description1
-rw-r--r--homebrew/mcrypt/_metadata/homepage1
-rw-r--r--homebrew/mcrypt/_metadata/name1
-rw-r--r--homebrew/mcrypt/_metadata/version1
-rwxr-xr-xhomebrew/mcrypt/download.sh1
-rwxr-xr-xhomebrew/mcrypt/patches.sh20
8 files changed, 81 insertions, 0 deletions
diff --git a/homebrew/mcrypt/.beer b/homebrew/mcrypt/.beer
new file mode 100644
index 000000000..02eee51e1
--- /dev/null
+++ b/homebrew/mcrypt/.beer
@@ -0,0 +1,52 @@
+{
+ "name": "Mcrypt",
+ "description": "Replacement for the old crypt package and crypt(1) command",
+ "url": "https://downloads.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz",
+ "mirror": null,
+ "homepage": "https://mcrypt.sourceforge.io",
+ "depends": [
+ {
+ "depend": "mhash",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "libmcrypt",
+ "url": "https://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/src/rfc2440.c b/src/rfc2440.c\n",
+ "index 5a1f296..aeb501c 100644\n",
+ "--- a/src/rfc2440.c\n",
+ "+++ b/src/rfc2440.c\n",
+ "@@ -23,7 +23,12 @@\n",
+ " #include <zlib.h>\n",
+ " #endif\n",
+ " #include <stdio.h>\n",
+ "+\n",
+ "+#ifdef __APPLE__\n",
+ "+#include <malloc/malloc.h>\n",
+ "+#else\n",
+ " #include <malloc.h>\n",
+ "+#endif\n",
+ "\n",
+ " #include \"xmalloc.h\"\n",
+ " #include \"keys.h\"\n"
+ ]
+ }
+ ],
+ "install": [
+ "resource(\"libmcrypt\").stage do",
+ "system \"./configure\", \"--prefix=#{prefix}\",",
+ "\"--mandir=#{man}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "2.6.8",
+ "file": "mcrypt.rb"
+} \ No newline at end of file
diff --git a/homebrew/mcrypt/.make.sh-auto b/homebrew/mcrypt/.make.sh-auto
new file mode 100644
index 000000000..5f4b99031
--- /dev/null
+++ b/homebrew/mcrypt/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+resource("libmcrypt").stage do
+pkg:configure
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/mcrypt/_metadata/description b/homebrew/mcrypt/_metadata/description
new file mode 100644
index 000000000..45081516e
--- /dev/null
+++ b/homebrew/mcrypt/_metadata/description
@@ -0,0 +1 @@
+Replacement for the old crypt package and crypt(1) command
diff --git a/homebrew/mcrypt/_metadata/homepage b/homebrew/mcrypt/_metadata/homepage
new file mode 100644
index 000000000..c57b2c117
--- /dev/null
+++ b/homebrew/mcrypt/_metadata/homepage
@@ -0,0 +1 @@
+https://mcrypt.sourceforge.io
diff --git a/homebrew/mcrypt/_metadata/name b/homebrew/mcrypt/_metadata/name
new file mode 100644
index 000000000..99bd04806
--- /dev/null
+++ b/homebrew/mcrypt/_metadata/name
@@ -0,0 +1 @@
+Mcrypt
diff --git a/homebrew/mcrypt/_metadata/version b/homebrew/mcrypt/_metadata/version
new file mode 100644
index 000000000..743af5e12
--- /dev/null
+++ b/homebrew/mcrypt/_metadata/version
@@ -0,0 +1 @@
+2.6.8
diff --git a/homebrew/mcrypt/download.sh b/homebrew/mcrypt/download.sh
new file mode 100755
index 000000000..3158cc3b8
--- /dev/null
+++ b/homebrew/mcrypt/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz \ No newline at end of file
diff --git a/homebrew/mcrypt/patches.sh b/homebrew/mcrypt/patches.sh
new file mode 100755
index 000000000..7f23e99ff
--- /dev/null
+++ b/homebrew/mcrypt/patches.sh
@@ -0,0 +1,20 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/src/rfc2440.c b/src/rfc2440.c
+index 5a1f296..aeb501c 100644
+--- a/src/rfc2440.c
++++ b/src/rfc2440.c
+@@ -23,7 +23,12 @@
+ #include <zlib.h>
+ #endif
+ #include <stdio.h>
++
++#ifdef __APPLE__
++#include <malloc/malloc.h>
++#else
+ #include <malloc.h>
++#endif
+
+ #include "xmalloc.h"
+ #include "keys.h"
+EOF