summaryrefslogtreecommitdiffstats
path: root/net-mgmt/aircrack/Makefile
blob: 093787681a46604235761a97518cba010f91c751 (plain)
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
# New ports collection makefile for:	aircrack
# Date created:				25 Nov 2005
# Whom:					Lars Engels <lars.engels@0x20.net>
#
# $FreeBSD$
#

PORTNAME=	aircrack
PORTVERSION=	2.41
CATEGORIES=	net-mgmt
MASTER_SITES=	http://mirror.arcticnetwork.ca/pub/gentoo/distfiles/ \
		http://gentoo.llarian.net/distfiles/ \
		http://gentoo.zie.pg.gda.pl/distfiles/ \
		http://www.dvo.ru/pub/distfiles/ \
		http://gentoo.nedlinux.nl/distfiles/ \
		http://bsd-geek.de/FreeBSD/distfiles/
EXTRACT_SUFX=	.tgz

MAINTAINER=	lars.engels@0x20.net
COMMENT=	Aircrack is a set of tools for auditing wireless networks

ALL_TARGET=	aircrack airdecap arpforge mergeivs pcap2ivs

PLIST_FILES=	bin/aircrack bin/airdecap bin/arpforge bin/mergeivs bin/pcap2ivs
PORTDOCS=	*

pre-fetch:
	@${CAT} ${PKGMESSAGE}

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/aircrack ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/airdecap ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/arpforge ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/mergeivs ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/pcap2ivs ${PREFIX}/bin

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}/
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud