2010-03-14 03:33:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Kismet < Formula
|
2011-03-31 12:22:20 +00:00
|
|
|
url 'http://www.kismetwireless.net/code/kismet-2011-03-R1.tar.gz'
|
|
|
|
version '2011-03-R1'
|
2010-03-14 03:33:01 +00:00
|
|
|
homepage 'http://www.kismetwireless.net'
|
2011-03-31 12:22:20 +00:00
|
|
|
sha256 '4bc1ff064dccd65dacdd2db832bc209781daa482690fba444a0b79d36744ff5b'
|
2010-03-14 03:33:01 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}", "--sysconfdir=#{etc}"
|
|
|
|
|
|
|
|
# Don't chown anything.
|
|
|
|
inreplace "Makefile", "-o $(INSTUSR) -g $(INSTGRP)", ""
|
|
|
|
inreplace "Makefile", "-o $(INSTUSR) -g $(MANGRP)", ""
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2010-11-15 03:14:53 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Read http://www.kismetwireless.net/documentation.shtml and edit
|
|
|
|
#{etc}/kismet.conf
|
|
|
|
as needed.
|
2010-03-14 03:33:01 +00:00
|
|
|
|
2010-11-15 03:14:53 +00:00
|
|
|
* SUID Root functionality does not work, you will have to run this as
|
|
|
|
root, e.g. via `sudo`. Do so at your own risk.
|
|
|
|
* This version can be configured interactively when it is run (listen
|
|
|
|
interface, etc).
|
|
|
|
* You may add the line 'ncsource=en1:name=AirPort' to kismet.conf to avoid
|
|
|
|
prompting at startup (assuming en1 is your AirPort card).
|
2010-03-14 03:33:01 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|