diff options
| author | J. Brandt Buckley | 2014-10-01 21:13:02 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-02 11:02:51 -0700 |
| commit | ee2a95d604dfda1411b267872e3f3c933576e1e2 (patch) | |
| tree | ab08146614ed4f2d8a7191735995b5dfe9c6f81d /Library | |
| parent | 19ee6039bfeeabf74edb136ba75d90dffa5f2991 (diff) | |
| download | homebrew-ee2a95d604dfda1411b267872e3f3c933576e1e2.tar.bz2 | |
Use double-quotes on all lines
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/p0f.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Library/Formula/p0f.rb b/Library/Formula/p0f.rb index d23a9eb93..acd566e14 100644 --- a/Library/Formula/p0f.rb +++ b/Library/Formula/p0f.rb @@ -1,24 +1,24 @@ -require 'formula' +require "formula" class P0f < Formula - homepage 'http://lcamtuf.coredump.cx/p0f3/' - url 'http://lcamtuf.coredump.cx/p0f3/releases/p0f-3.07b.tgz' - sha1 'ae2c4fbcddf2a5ced33abd81992405b93207e7c8' + homepage "http://lcamtuf.coredump.cx/p0f3/" + url "http://lcamtuf.coredump.cx/p0f3/releases/p0f-3.07b.tgz" + sha1 "ae2c4fbcddf2a5ced33abd81992405b93207e7c8" def install inreplace "config.h", "p0f.fp", "#{etc}/p0f/p0f.fp" - system './build.sh' - sbin.install 'p0f' - (etc + 'p0f').install 'p0f.fp' + system "./build.sh" + sbin.install "p0f" + (etc + "p0f").install "p0f.fp" end test do - require 'base64' + require "base64" - pcap = '1MOyoQIABAAAAAAAAAAAAP//AAAAAAAA92EsVI67DgBEAAAA' \ - 'RAAAAAIAAABFAABAbvpAAEAGAAB/AAABfwAAAcv8Iyjt2/Pg' \ - 'AAAAALAC///+NAAAAgQ/2AEDAwQBAQgKCyrc9wAAAAAEAgAA' - (testpath / 'test.pcap').write(Base64.decode64(pcap)) + pcap = "1MOyoQIABAAAAAAAAAAAAP//AAAAAAAA92EsVI67DgBEAAAA" \ + "RAAAAAIAAABFAABAbvpAAEAGAAB/AAABfwAAAcv8Iyjt2/Pg" \ + "AAAAALAC///+NAAAAgQ/2AEDAwQBAQgKCyrc9wAAAAAEAgAA" + (testpath / "test.pcap").write(Base64.decode64(pcap)) system "#{sbin}/p0f", "-r", "test.pcap" end end |
