summaryrefslogtreecommitdiff
path: root/homebrew/amap
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/amap')
-rw-r--r--homebrew/amap/.beer25
-rw-r--r--homebrew/amap/.make.sh-auto6
-rw-r--r--homebrew/amap/_metadata/description1
-rw-r--r--homebrew/amap/_metadata/homepage1
-rw-r--r--homebrew/amap/_metadata/name1
-rw-r--r--homebrew/amap/_metadata/version1
-rwxr-xr-xhomebrew/amap/download.sh1
7 files changed, 36 insertions, 0 deletions
diff --git a/homebrew/amap/.beer b/homebrew/amap/.beer
new file mode 100644
index 000000000..dcfaaf2d5
--- /dev/null
+++ b/homebrew/amap/.beer
@@ -0,0 +1,25 @@
+{
+ "name": "Amap",
+ "description": "Perform application protocol detection",
+ "url": "https://www.thc.org/releases/amap-5.4.tar.gz",
+ "mirror": "https://downloads.sourceforge.net/project/slackbuildsdirectlinks/amap/amap-5.4.tar.gz",
+ "homepage": "https://www.thc.org/thc-amap/",
+ "depends": [
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "openssl = Formula[\"openssl\"]",
+ "inreplace \"configure\" do |s|",
+ "s.gsub! 'SSL_IPATH=\"\"', \"SSL_IPATH=\\\"#{openssl.opt_include}/openssl\\\"\"",
+ "s.gsub! 'SSL_PATH=\"\"', \"SSL_PATH=\\\"#{openssl.opt_lib}\\\"\"",
+ "s.gsub! 'CRYPTO_PATH=\"\"', \"CRYPTO_PATH=\\\"#{openssl.opt_lib}\\\"\""
+ ],
+ "version": "5.4",
+ "file": "amap.rb"
+} \ No newline at end of file
diff --git a/homebrew/amap/.make.sh-auto b/homebrew/amap/.make.sh-auto
new file mode 100644
index 000000000..0d0fb3959
--- /dev/null
+++ b/homebrew/amap/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+openssl = Formula["openssl"]
+inreplace "configure" do |s|
+s.gsub! 'SSL_IPATH=""', "SSL_IPATH=\"#{openssl.opt_include}/openssl\""
+s.gsub! 'SSL_PATH=""', "SSL_PATH=\"#{openssl.opt_lib}\""
+s.gsub! 'CRYPTO_PATH=""', "CRYPTO_PATH=\"#{openssl.opt_lib}\""
diff --git a/homebrew/amap/_metadata/description b/homebrew/amap/_metadata/description
new file mode 100644
index 000000000..8a8d805b3
--- /dev/null
+++ b/homebrew/amap/_metadata/description
@@ -0,0 +1 @@
+Perform application protocol detection
diff --git a/homebrew/amap/_metadata/homepage b/homebrew/amap/_metadata/homepage
new file mode 100644
index 000000000..d10d751cd
--- /dev/null
+++ b/homebrew/amap/_metadata/homepage
@@ -0,0 +1 @@
+https://www.thc.org/thc-amap/
diff --git a/homebrew/amap/_metadata/name b/homebrew/amap/_metadata/name
new file mode 100644
index 000000000..26a5dd12d
--- /dev/null
+++ b/homebrew/amap/_metadata/name
@@ -0,0 +1 @@
+Amap
diff --git a/homebrew/amap/_metadata/version b/homebrew/amap/_metadata/version
new file mode 100644
index 000000000..37c2d9960
--- /dev/null
+++ b/homebrew/amap/_metadata/version
@@ -0,0 +1 @@
+5.4
diff --git a/homebrew/amap/download.sh b/homebrew/amap/download.sh
new file mode 100755
index 000000000..ef844abc1
--- /dev/null
+++ b/homebrew/amap/download.sh
@@ -0,0 +1 @@
+wget https://www.thc.org/releases/amap-5.4.tar.gz || wget https://downloads.sourceforge.net/project/slackbuildsdirectlinks/amap/amap-5.4.tar.gz \ No newline at end of file