2013-09-21 00:24:43 +02:00
|
|
|
# Created by: Lars Engels <lars.engels@0x20.net>
|
2006-05-27 09:31:26 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= aircrack-ng
|
2014-04-01 19:34:36 +02:00
|
|
|
DISTVERSION= 1.2-beta3
|
2014-07-04 11:40:59 +02:00
|
|
|
PORTREVISION= 1
|
2008-08-14 07:47:55 +02:00
|
|
|
CATEGORIES= net-mgmt security
|
2006-05-27 09:31:26 +02:00
|
|
|
MASTER_SITES= http://download.aircrack-ng.org/ \
|
|
|
|
http://bsd-geek.de/FreeBSD/distfiles/
|
|
|
|
|
2007-07-12 20:52:00 +02:00
|
|
|
MAINTAINER= lme@FreeBSD.org
|
2014-04-01 19:34:36 +02:00
|
|
|
COMMENT= 802.11 WEP and WPA-PSK keys cracking program
|
2006-05-27 09:31:26 +02:00
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= GPLv2 BSD3CLAUSE APACHE20
|
2013-12-20 17:41:26 +01:00
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2013-12-01 19:36:27 +01:00
|
|
|
USES= gmake dos2unix
|
|
|
|
DOS2UNIX_FILES= src/osdep/byteorder.h
|
2014-04-01 19:34:36 +02:00
|
|
|
MAKE_ARGS= unstable=true libnl=false prefix=${PREFIX}
|
2008-08-14 07:47:55 +02:00
|
|
|
USE_OPENSSL= yes
|
2007-04-28 14:53:58 +02:00
|
|
|
SUB_FILES= pkg-message
|
2006-10-07 14:24:03 +02:00
|
|
|
|
2013-12-20 17:41:26 +01:00
|
|
|
BIN_FILES= airdecloak-ng buddy-ng aircrack-ng airdecap-ng ivstools \
|
2013-12-20 23:33:05 +01:00
|
|
|
makeivs-ng packetforge-ng wpaclean kstats
|
2013-12-20 17:41:26 +01:00
|
|
|
SBIN_FILES= airtun-ng besside-ng airbase-ng easside-ng airodump-ng \
|
|
|
|
aireplay-ng wesside-ng airserv-ng tkiptun-ng
|
|
|
|
|
2012-06-04 21:43:12 +02:00
|
|
|
OPTIONS_DEFINE= SQLITE
|
2013-09-26 11:02:12 +02:00
|
|
|
OPTIONS_SUB= yes
|
2012-06-04 21:43:12 +02:00
|
|
|
SQLITE_DESC= Use SQLite for storing pre-computed key tables
|
2008-08-14 07:47:55 +02:00
|
|
|
|
2012-06-04 21:43:12 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
|
|
|
USE_SQLITE= yes
|
|
|
|
MAKE_ARGS+= SQLITE=true
|
2013-12-20 23:33:05 +01:00
|
|
|
BIN_FILES+= airolib-ng
|
2012-06-04 21:43:12 +02:00
|
|
|
.endif
|
2007-05-01 21:53:29 +02:00
|
|
|
|
2006-05-27 09:31:26 +02:00
|
|
|
post-patch:
|
2007-06-13 20:24:26 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2008-08-14 07:47:55 +02:00
|
|
|
-e 's|-I/usr/local|-I${LOCALBASE}|' \
|
2013-09-30 21:28:25 +02:00
|
|
|
-e 's|share/\(man/man[1-9]\)|\1|' \
|
2008-08-14 07:47:55 +02:00
|
|
|
-e 's|^CC[[:blank:]]*|&?|' \
|
|
|
|
-e 's|^AR[[:blank:]]*|&?|' \
|
|
|
|
${WRKSRC}/common.mak
|
2009-08-17 19:36:29 +02:00
|
|
|
# Do not install scripts (Linux-specific) and their manpages
|
2008-08-14 07:47:55 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2009-08-17 19:36:29 +02:00
|
|
|
-E '/scripts|@echo/d' \
|
2007-06-13 20:24:26 +02:00
|
|
|
${WRKSRC}/Makefile
|
2009-08-17 19:36:29 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-E 's/air(driver|mon)-ng\.1 //' \
|
|
|
|
${WRKSRC}/manpages/Makefile
|
2008-08-14 07:47:55 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|-lpthread|${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/src/Makefile
|
2014-04-01 19:34:36 +02:00
|
|
|
|
2013-12-20 17:41:26 +01:00
|
|
|
post-install:
|
2014-04-01 19:34:36 +02:00
|
|
|
@${STRIP_CMD} ${BIN_FILES:S,^,${STAGEDIR}${PREFIX}/bin/,} \
|
|
|
|
${SBIN_FILES:S,^,${STAGEDIR}${PREFIX}/sbin/,}
|
2006-05-27 09:31:26 +02:00
|
|
|
|
2012-06-04 21:43:12 +02:00
|
|
|
.include <bsd.port.mk>
|