aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/aircrack-ng/Makefile
blob: 98ad5513d24b071720ea59913e1329d0cb9f2064 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Lars Engels <lars.engels@0x20.net>
# $FreeBSD$

PORTNAME=   aircrack-ng
DISTVERSION=    1.2-rc2
PORTREVISION=   1
CATEGORIES= net-mgmt security
MASTER_SITES=   http://download.aircrack-ng.org/ \
        http://bsd-geek.de/FreeBSD/distfiles/

MAINTAINER= lme@FreeBSD.org
COMMENT=    802.11 WEP and WPA-PSK keys cracking program

LICENSE=    GPLv2 BSD3CLAUSE APACHE20
LICENSE_COMB=   dual

USES=       cpe dos2unix gmake
CPE_VERSION=    ${DISTVERSION:C/-.*//}
CPE_UPDATE= ${DISTVERSION:C/^[^-]*$//:C/.*-//}
DOS2UNIX_FILES= src/osdep/byteorder.h
MAKE_ARGS=  experimental=true libnl=false prefix=${PREFIX}
# Don't call 'strip' target with WITH_DEBUG set
INSTALL_TARGET= ${STRIP:S/-s/strip/} install
USE_OPENSSL=    yes

OPTIONS_DEFINE= PCRE SQLITE
OPTIONS_DEFAULT=PCRE SQLITE
OPTIONS_SUB=    yes

PCRE_DESC=  Use Perl Compatible Regular Expressions for wesside
PCRE_MAKE_ARGS= pcre=true
PCRE_LIB_DEPENDS=   libpcre.so:devel/pcre
PCRE_USES=  pkgconfig

SQLITE_DESC=    Use SQLite for storing pre-computed key tables
SQLITE_USES=    sqlite
SQLITE_MAKE_ARGS=   sqlite=true

post-patch:
    @${REINPLACE_CMD} \
        -e 's|share/\(man/man[1-9]\)|\1|' \
            ${WRKSRC}/common.mak
# Do not install scripts (Linux-specific) and their manpages
    @${REINPLACE_CMD} \
        -E '/scripts|@echo/d' \
            ${WRKSRC}/Makefile
    @${REINPLACE_CMD} \
        -E 's/air(driver|mon)-ng\.1 //' \
            ${WRKSRC}/manpages/Makefile

.include <bsd.port.mk>