# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 119600 2014-05-02 08:04:23Z ryandesign@macports.org $

PortSystem          1.0

name                aircrack-ng
version             1.1
revision            1
categories          security
platforms           darwin
maintainers         ryandesign openmaintainer

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/
master_sites        http://download.aircrack-ng.org/

checksums           md5     f7a24ed8fad122c4187d06bfd6f998b4 \
                    sha1    16eed1a8cf06eb8274ae382150b56589b23adf77 \
                    rmd160  7d70533b0397e801d4a85c1be3584699364f3d38

patchfiles          patch-common.mak.diff \
                    patch-src-Makefile.diff \
                    patch-src-aircrack-ng.c.diff \
                    patch-src-common.h.diff \
                    patch-src-sha1-sse2.h.diff

depends_build       port:gmake

depends_lib         port:openssl \
                    port:sqlite3

use_configure       no

use_parallel_build  yes

variant universal {}

build.cmd           ${prefix}/bin/gmake

build.args          prefix=${prefix} \
                    sqlite=true \
                    ASM_AC= \
                    CC="${configure.cc} [get_canonical_archflags cc]"

destroot.args       prefix=${prefix}
