forked from sidaf/homebrew-pentest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsslscan-static.rb
42 lines (36 loc) · 921 Bytes
/
sslscan-static.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'formula'
class SslscanStatic < Formula
homepage 'https://github.com/rbsec/sslscan'
url 'https://github.com/rbsec/sslscan', :using => :git, :revision => '1f798b8'
version '1.11.11'
depends_on "makedepend" => :build
depends_on "zlib"
depends_on "perl" => :build
# Fix compilation
patch :DATA
def install
ENV.deparallelize
system "make static"
bin.install "sslscan"
man1.install "sslscan.1"
end
test do
system "#{bin}/sslscan"
end
end
__END__
diff --git a/Makefile b/Makefile
index 91f183f..dba91dd 100644
--- a/Makefile
+++ b/Makefile
@@ -31,8 +31,8 @@ endif
# for static linking
ifeq ($(STATIC_BUILD), TRUE)
PWD = $(shell pwd)/openssl
-LDFLAGS += -L${PWD}/
-CFLAGS += -I${PWD}/include/ -I${PWD}/
+LDFLAGS = -L${PWD}/
+CFLAGS = -I${PWD}/include/ -I${PWD}/
LIBS = -lssl -lcrypto -lz
ifneq ($(OS), FreeBSD)
LIBS += -ldl