summaryrefslogtreecommitdiff
path: root/homebrew/ssldump
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/ssldump
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/ssldump')
-rw-r--r--homebrew/ssldump/.beer61
-rw-r--r--homebrew/ssldump/.make.sh-auto6
-rw-r--r--homebrew/ssldump/_metadata/description1
-rw-r--r--homebrew/ssldump/_metadata/homepage1
-rw-r--r--homebrew/ssldump/_metadata/name1
-rw-r--r--homebrew/ssldump/_metadata/version1
-rwxr-xr-xhomebrew/ssldump/download.sh1
-rwxr-xr-xhomebrew/ssldump/patches.sh28
8 files changed, 100 insertions, 0 deletions
diff --git a/homebrew/ssldump/.beer b/homebrew/ssldump/.beer
new file mode 100644
index 000000000..df577a20d
--- /dev/null
+++ b/homebrew/ssldump/.beer
@@ -0,0 +1,61 @@
+{
+ "name": "Ssldump",
+ "description": "SSLv3/TLS network protocol analyzer",
+ "url": "https://downloads.sourceforge.net/project/ssldump/ssldump/0.9b3/ssldump-0.9b3.tar.gz",
+ "mirror": null,
+ "homepage": "https://ssldump.sourceforge.io/",
+ "depends": [
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "--- a/base/pcap-snoop.c\t2010-03-18 22:59:13.000000000 -0700\n",
+ "+++ b/base/pcap-snoop.c\t2010-03-18 22:59:30.000000000 -0700\n",
+ "@@ -46,10 +46,9 @@\n",
+ "\n",
+ " static char *RCSSTRING=\"$Id: pcap-snoop.c,v 1.14 2002/09/09 21:02:58 ekr Exp $\";\n",
+ "\n",
+ "-\n",
+ "+#include <net/bpf.h>\n",
+ " #include <pcap.h>\n",
+ " #include <unistd.h>\n",
+ "-#include <net/bpf.h>\n",
+ " #ifndef _WIN32\n",
+ " #include <sys/param.h>\n",
+ " #endif\n",
+ "--- a/base/pcap-snoop.c\t2012-04-06 10:35:06.000000000 -0700\n",
+ "+++ b/base/pcap-snoop.c\t2012-04-06 10:45:31.000000000 -0700\n",
+ "@@ -286,7 +286,7 @@\n",
+ " err_exit(\"Aborting\",-1);\n",
+ " }\n",
+ " }\n",
+ "- if(!(p=pcap_open_live(interface_name,5000,!no_promiscuous,1000,errbuf))){\n",
+ "+ if(!(p=pcap_open_live(interface_name,18432,!no_promiscuous,1000,errbuf))){\n",
+ " \tfprintf(stderr,\"PCAP: %s\\n\",errbuf);\n",
+ " \terr_exit(\"Aborting\",-1);\n",
+ " }\n"
+ ]
+ }
+ ],
+ "install": [
+ "ENV[\"LIBS\"] = \"-lssl -lcrypto\"",
+ "inreplace \"configure\", \"if test -f $dir/libpcap.a; then\",",
+ "\"if test -f $dir/libpcap.dylib; then\"",
+ "system \"./configure\", \"--disable-debug\",",
+ "\"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--mandir=#{man}\",",
+ "\"osx\"",
+ "system \"make\"",
+ "system \"make\", \"install\", \"-B\""
+ ],
+ "version": "0.9",
+ "file": "ssldump.rb"
+} \ No newline at end of file
diff --git a/homebrew/ssldump/.make.sh-auto b/homebrew/ssldump/.make.sh-auto
new file mode 100644
index 000000000..b69fa2fe4
--- /dev/null
+++ b/homebrew/ssldump/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+ENV["LIBS"] = "-lssl -lcrypto"
+inreplace "configure", "if test -f $dir/libpcap.a; then", "if test -f $dir/libpcap.dylib; then"
+pkg:configure --disable-dependency-tracking osx
+make
+make DESTDIR=${PKG_DEST} install -B
diff --git a/homebrew/ssldump/_metadata/description b/homebrew/ssldump/_metadata/description
new file mode 100644
index 000000000..18934d94b
--- /dev/null
+++ b/homebrew/ssldump/_metadata/description
@@ -0,0 +1 @@
+SSLv3/TLS network protocol analyzer
diff --git a/homebrew/ssldump/_metadata/homepage b/homebrew/ssldump/_metadata/homepage
new file mode 100644
index 000000000..baec1a42e
--- /dev/null
+++ b/homebrew/ssldump/_metadata/homepage
@@ -0,0 +1 @@
+https://ssldump.sourceforge.io/
diff --git a/homebrew/ssldump/_metadata/name b/homebrew/ssldump/_metadata/name
new file mode 100644
index 000000000..b3519868b
--- /dev/null
+++ b/homebrew/ssldump/_metadata/name
@@ -0,0 +1 @@
+Ssldump
diff --git a/homebrew/ssldump/_metadata/version b/homebrew/ssldump/_metadata/version
new file mode 100644
index 000000000..b63ba696b
--- /dev/null
+++ b/homebrew/ssldump/_metadata/version
@@ -0,0 +1 @@
+0.9
diff --git a/homebrew/ssldump/download.sh b/homebrew/ssldump/download.sh
new file mode 100755
index 000000000..7ee91154c
--- /dev/null
+++ b/homebrew/ssldump/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/ssldump/ssldump/0.9b3/ssldump-0.9b3.tar.gz \ No newline at end of file
diff --git a/homebrew/ssldump/patches.sh b/homebrew/ssldump/patches.sh
new file mode 100755
index 000000000..13976956e
--- /dev/null
+++ b/homebrew/ssldump/patches.sh
@@ -0,0 +1,28 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/base/pcap-snoop.c 2010-03-18 22:59:13.000000000 -0700
++++ b/base/pcap-snoop.c 2010-03-18 22:59:30.000000000 -0700
+@@ -46,10 +46,9 @@
+
+ static char *RCSSTRING="$Id: pcap-snoop.c,v 1.14 2002/09/09 21:02:58 ekr Exp $";
+
+-
++#include <net/bpf.h>
+ #include <pcap.h>
+ #include <unistd.h>
+-#include <net/bpf.h>
+ #ifndef _WIN32
+ #include <sys/param.h>
+ #endif
+--- a/base/pcap-snoop.c 2012-04-06 10:35:06.000000000 -0700
++++ b/base/pcap-snoop.c 2012-04-06 10:45:31.000000000 -0700
+@@ -286,7 +286,7 @@
+ err_exit("Aborting",-1);
+ }
+ }
+- if(!(p=pcap_open_live(interface_name,5000,!no_promiscuous,1000,errbuf))){
++ if(!(p=pcap_open_live(interface_name,18432,!no_promiscuous,1000,errbuf))){
+ fprintf(stderr,"PCAP: %s\n",errbuf);
+ err_exit("Aborting",-1);
+ }
+EOF