1 | # $Id: Portfile 30706 2007-11-05 05:36:02Z boeyms@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name kismet |
---|
6 | version 2008-05-R1 |
---|
7 | description Wireless network detector and sniffer |
---|
8 | long_description Kismet is an 802.11 layer2 wireless network detector, sniffer, and \ |
---|
9 | intrusion detection system. Kismet will work with any wireless card which \ |
---|
10 | supports raw monitoring (rfmon) mode, and can sniff 802.11b, 802.11a, \ |
---|
11 | 802.11n, and 802.11g traffic (devices and drivers permitting). It can work \ |
---|
12 | with MacBook and MacBook Pro Atheros-based cards with which currently KisMac is unable to.\ |
---|
13 | Kismet identifies networks by passively collecting packets and detecting \ |
---|
14 | standard named networks, detecting (and given time, decloaking) hidden \ |
---|
15 | networks, and inferring the presence of non-beaconing networks via data traffic. |
---|
16 | |
---|
17 | maintainers sava.chankov@gmail.com |
---|
18 | categories net |
---|
19 | platforms darwin |
---|
20 | |
---|
21 | homepage http://www.kismetwireless.net/ |
---|
22 | master_sites ${homepage}code |
---|
23 | |
---|
24 | checksums md5 6ee365d36354b4dee4945e67f8149294 |
---|
25 | |
---|
26 | depends_lib port:libpcap |
---|
27 | |
---|
28 | # Dependency building command fails but dependecies are built nevertheless |
---|
29 | pre-build { |
---|
30 | system "(cd ${worksrcpath} && gnumake depend ) || true" |
---|
31 | } |
---|
32 | |
---|
33 | build.type gnu |
---|
34 | |
---|
35 | set docdir ${prefix}/share/doc/${name}-${version} |
---|
36 | |
---|
37 | post-destroot { |
---|
38 | xinstall -d ${destroot}${docdir} |
---|
39 | xinstall -W ${worksrcpath} README ${destroot}${docdir} |
---|
40 | } |
---|
41 | |
---|
42 | post-install { |
---|
43 | ui_msg "Read ${docdir}/README and edit ${prefix}/etc/kismet.conf" |
---|
44 | ui_msg "In ${prefix}/etc/kismet.conf set source=darwin,en1,airport_extreme" |
---|
45 | ui_msg "and replace your_user_here in suiduser with your username" |
---|
46 | } |
---|
47 | |
---|
48 | variant svn_trunk description {Build from current development trunk. Try this on Mac OS X 10.5 if released version doesn't work'} { |
---|
49 | version svn_trunk |
---|
50 | fetch { |
---|
51 | system "cd ${workpath}/../../../distfiles && svn co http://svn.kismetwireless.net/code/trunk kismet" |
---|
52 | system "true" |
---|
53 | } |
---|
54 | |
---|
55 | checksum { |
---|
56 | system "true" |
---|
57 | } |
---|
58 | |
---|
59 | extract { |
---|
60 | system "cp -r ${workpath}/../../../distfiles/${name} ${worksrcpath}" |
---|
61 | } |
---|
62 | } |
---|