2008-08-14 07:47:55 +02:00
|
|
|
# New ports collection makefile for: Aircrack-ng
|
2006-05-27 09:31:26 +02:00
|
|
|
# Date created: 2006-05-25
|
|
|
|
# Whom: Lars Engels <lars.engels@0x20.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= aircrack-ng
|
2008-08-14 07:47:55 +02:00
|
|
|
DISTVERSION= 1.0-rc1
|
|
|
|
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
|
2008-08-14 07:47:55 +02:00
|
|
|
COMMENT= An 802.11 WEP and WPA-PSK keys cracking program
|
2006-05-27 09:31:26 +02:00
|
|
|
|
2008-08-14 07:47:55 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_OPENSSL= yes
|
2007-04-28 14:53:58 +02:00
|
|
|
SUB_FILES= pkg-message
|
2006-10-07 14:24:03 +02:00
|
|
|
|
2008-08-14 07:47:55 +02:00
|
|
|
MAN1= aircrack-ng.1 airdriver-ng.1 airdecap-ng.1 aireplay-ng.1 \
|
|
|
|
airodump-ng.1 airolib-ng.1 airmon-ng.1 airsev-ng.1 \
|
|
|
|
airtun-ng.1 buddy-ng.1 easside-ng.1 ivstools.1 kstats.1 \
|
|
|
|
makeivs-ng.1 packetforge-ng.1 wesside-ng.1
|
2006-05-27 09:31:26 +02:00
|
|
|
|
2008-08-14 07:47:55 +02:00
|
|
|
OPTIONS= SQLITE "Use SQLite for storing pre-computed key tables" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2007-05-01 21:53:29 +02:00
|
|
|
|
2008-08-14 07:47:55 +02:00
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
USE_SQLITE= yes
|
|
|
|
MAKE_ARGS+= SQLITE=true
|
|
|
|
PLIST_SUB+= SQLITE=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SQLITE="@comment "
|
2006-05-30 10:43:41 +02:00
|
|
|
.endif
|
|
|
|
|
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|= /usr/local|= ${PREFIX}|' \
|
|
|
|
-e 's|-I/usr/local|-I${LOCALBASE}|' \
|
|
|
|
-e 's|^CC[[:blank:]]*|&?|' \
|
|
|
|
-e 's|^RANLIB[[:blank:]]*|&?|' \
|
|
|
|
-e 's|^AR[[:blank:]]*|&?|' \
|
|
|
|
${WRKSRC}/common.mak
|
|
|
|
# Do not install scripts (Linux-specific)
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e '/$$(SCRIPTS)/d' \
|
2007-06-13 20:24:26 +02:00
|
|
|
${WRKSRC}/Makefile
|
2008-08-14 07:47:55 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|-lpthread|${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/src/Makefile
|
2006-05-27 09:31:26 +02:00
|
|
|
|
2007-04-28 14:53:58 +02:00
|
|
|
post-install:
|
2008-08-14 07:47:55 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
2007-04-28 14:53:58 +02:00
|
|
|
|
2006-05-27 09:31:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|