Ticket #15905: Portfile

File Portfile, 2.3 KB (added by sava.chankov@…, 16 years ago)

Portfile for kismet 2008-05-R1

Line 
1# $Id: Portfile 30706 2007-11-05 05:36:02Z boeyms@macports.org $
2
3PortSystem              1.0
4
5name                    kismet
6version                 2008-05-R1
7description             Wireless network detector and sniffer
8long_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
17maintainers             sava.chankov@gmail.com
18categories              net
19platforms               darwin
20
21homepage                http://www.kismetwireless.net/
22master_sites            ${homepage}code
23
24checksums               md5 6ee365d36354b4dee4945e67f8149294
25
26depends_lib             port:libpcap
27
28# Dependency building command fails but dependecies are built nevertheless
29pre-build {
30    system "(cd ${worksrcpath} && gnumake depend ) || true"
31}
32
33build.type              gnu
34
35set docdir              ${prefix}/share/doc/${name}-${version}
36
37post-destroot {
38    xinstall -d ${destroot}${docdir}
39    xinstall -W ${worksrcpath} README ${destroot}${docdir}
40}
41
42post-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
48variant 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}