From 342f70ad9a244f6e8f283af032feca5bbc39305c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 8 May 2014 22:03:03 -0500 Subject: Remove justniffer Closes #27021. --- Library/Formula/justniffer.rb | 62 -------------------------------------- Library/Homebrew/tap_migrations.rb | 1 + 2 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 Library/Formula/justniffer.rb (limited to 'Library') diff --git a/Library/Formula/justniffer.rb b/Library/Formula/justniffer.rb deleted file mode 100644 index 811e86f93..000000000 --- a/Library/Formula/justniffer.rb +++ /dev/null @@ -1,62 +0,0 @@ -require 'formula' - -class Justniffer < Formula - homepage 'http://justniffer.sourceforge.net/' - url 'https://downloads.sourceforge.net/project/justniffer/justniffer/justniffer%200.5.11/justniffer_0.5.11.tar.gz' - sha1 '3f3222361794a6f79f47567753550995c318a037' - - depends_on "boost" - - fails_with :clang do - cause "Missing ext/stdio_filebuf.h; this is a GCC-specific header" - end - - # Patch lib/libnids-1.21_patched/configure.gnu so that CFLAGS and/or - # CXXFLAGS with multiple words doesn't cause an error -- e.g.: - # - # === configuring in lib/libnids-1.21_patched - # (/private/tmp/homebrew-justniffer-0.5.11-yNmj/justniffer-0.5.11/lib/libnids-1.21_patched) - # configure: running /bin/sh ./configure.gnu --disable-option-checking - # '--prefix=/usr/local/Cellar/justniffer/0.5.11' 'CXX=/usr/bin/llvm-g++' - # 'CXXFLAGS=-O3 -w -pipe -march=core2 -msse4' 'CC=/usr/bin/llvm-gcc' - # 'CFLAGS=-O3 -w -pipe -march=core2 -msse4' --cache-file=/dev/null--srcdir=. - # configure: error: unrecognized option: `-w' - # Try `./configure --help' for more information - # configure: error: ./configure.gnu failed for lib/libnids-1.21_patched - # - # I submitted this patch to the upstream author, Oreste Notelli, on - # 2011-12-22, so this patch will probably not be necessary with future - # justniffer versions after 0.5.11. - patch :DATA - - def install - system "./configure", "--prefix=#{prefix}" - system "make install" - end - - test do - require 'open3' - Open3.popen3("#{bin}/justniffer", "--version") do |_, stdout, _| - assert_match /justniffer #{Regexp.escape(version)}/, stdout.read - end - end - - def caveats; <<-EOS.undent - Sample invocation to get you started: - justniffer -i en1 -p "port 80" - - "en1" is my wireless inteface; "en0" is Ethernet; see output of ifconfig - EOS - end -end - - -__END__ ---- a/lib/libnids-1.21_patched/configure.gnu 2011-12-21 22:48:23.000000000 -0800 -+++ b/lib/libnids-1.21_patched/configure.gnu 2011-12-21 22:54:37.000000000 -0800 -@@ -1,3 +1,3 @@ - #!/bin/sh - --./configure --disable-libnet --disable-libglib $@ -\ No newline at end of file -+./configure --disable-libnet --disable-libglib "$@" diff --git a/Library/Homebrew/tap_migrations.rb b/Library/Homebrew/tap_migrations.rb index 00f5fcaf2..80af02236 100644 --- a/Library/Homebrew/tap_migrations.rb +++ b/Library/Homebrew/tap_migrations.rb @@ -19,6 +19,7 @@ TAP_MIGRATIONS = { "iulib" => "homebrew/boneyard", "jscoverage" => "homebrew/boneyard", "jsl" => "homebrew/binary", + "justniffer" => "homebrew/boneyard", "kerl" => "homebrew/headonly", "kismet" => "homebrew/boneyard", "libgtextutils" => "homebrew/science", -- cgit v1.2.3