# $Id: Portfile 62257 2010-01-02 12:21:51Z ryandesign@macports.org $

PortSystem 1.0

name		aircrack-ng
version		1.0
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       md5     dafbfaf944ca9d523fde4bae86f0c067 \
                sha1    8a3c5b8e322ea11e5559109a9f9d668ad6aee5f0 \
                rmd160  e8360aabbec1e7e038f86579e1004234f0899409

build.cmd       ${prefix}/bin/gmake

post-patch {
    reinplace s@/usr/local@${prefix}@ ${worksrcpath}/common.mak
    reinplace s/-Werror// ${worksrcpath}/common.mak

    reinplace -E {s/#if defined.*/#if 0/} \
        ${worksrcpath}/src/aircrack-ng.c \
        ${worksrcpath}/src/common.h \
        ${worksrcpath}/src/sha1-sse2.h
}

depends_build \
    port:gmake

depends_lib \
    port:openssl

use_configure	no

use_parallel_build yes

build.args \
    ASM_AC=

destroot.args \
    mandir=${prefix}/share/man/man1

universal_variant no
