# $Id: Portfile 51485 2009-05-26 08:57:32Z toby@macports.org $

PortSystem 1.0

name		aircrack-ng
version		0.9.3
revision	1
categories	security
maintainers	nomaintainer
description	Aircrack-ng is the next generation of aircrack with lots of new features
long_description aircrack is an 802.11 WEP and WPA-PSK keys cracking program that can recover \
                 keys once enough data packets have been captured. It implements the standard \
		 FMS attack along with some optimizations like KoreK attacks, thus making the \
		 attack much faster compared to other WEP cracking tools. In fact, aircrack is \
		 a set of tools for auditing wireless networks.

homepage	http://aircrack-ng.org
platforms	darwin
master_sites	http://download.aircrack-ng.org/
checksums	sha1 b2f671324d056408b83d32eb1ab6061b7fa87ac5


use_configure	no

configure {
    system "mv ${worksrcpath}/Makefile.osx ${worksrcpath}/Makefile"
    reinplace "s|\$(prefix)/man/man1|\$(prefix)/share/man/man1/|g" ${worksrcpath}/Makefile
    reinplace "s|\$(prefix)|${prefix}|g" ${worksrcpath}/Makefile
    reinplace "s|\$(destdir)|${destroot}|g" ${worksrcpath}/Makefile
}
