<commit_before>require 'formula'

class Sslscan < Formula
  homepage 'https://github.com/rbsec/sslscan'
  url 'https://github.com/rbsec/sslscan/archive/1.10.0-rbsec.tar.gz'
  sha1 '746db4d2efabf487348c9ffd407ad527a5e0fe06'
  version '1.10.0'

  depends_on "openssl"

  # Fix compilation and statically link against OpenSSL 1.0.2 rather than 1.0.1
  patch :DATA

  def install
    ENV.deparallelize
    system "make"
    bin.install "sslscan"
    man1.install "sslscan.1"
  end

  test do
    system "#{bin}/sslscan"
  end
end

__END__
diff --git a/Makefile b/Makefile
index 8a38e4c..d18743f 100644
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,8 @@ LIBS      = -lssl -lcrypto
 # 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 -ldl
 GIT_VERSION  := $(GIT_VERSION)-static
 else
@@ -51,7 +51,7 @@ uninstall:
  rm -f $(MANPATH)man1/sslscan.1
 
 openssl/Makefile:
- [ -d openssl -a -d openssl/.git ] && true || git clone https://github.com/openssl/openssl ./openssl && cd ./openssl && git checkout OpenSSL_1_0_1-stable
+ [ -d openssl -a -d openssl/.git ] && true || git clone https://github.com/openssl/openssl ./openssl && cd ./openssl && git checkout OpenSSL_1_0_2-stable
 
 openssl/libcrypto.a: openssl/Makefile
  cd ./openssl; ./config no-shares
<commit_msg>Updated to sslscan 1.11.0<commit_after>require 'formula'

class Sslscan < Formula
  homepage 'https://github.com/rbsec/sslscan'
  url 'https://github.com/rbsec/sslscan/archive/1.11.0-rbsec.tar.gz'
  sha1 'f5b3600b33181097f0afd49a3d1e894948da3d9c'
  version '1.11.0'

  depends_on "openssl"

  # Fix compilation and statically link against OpenSSL 1.0.2 rather than 1.0.1
  #patch :DATA

  def install
    ENV.deparallelize
    system "make"
    bin.install "sslscan"
    man1.install "sslscan.1"
  end

  test do
    system "#{bin}/sslscan"
  end
end

__END__
{'fraction_non_alphanumeric': 0.1437037037037037, 'fraction_numerical': 0.05975308641975308, 'mean_word_length': 3.0278330019880717, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5026074', 'n_tokens_mistral': 859, 'n_tokens_neox': 781, 'n_words': 176}