2004-05-05 17:25:51 +02:00
|
|
|
# New ports collection makefile for: kismet
|
|
|
|
# Date created: 3 May 2004
|
|
|
|
# Whom: Thomas Spreng <spreng@socket.ch>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kismet
|
2005-08-31 16:07:39 +02:00
|
|
|
PORTVERSION= 200508.r1
|
2006-02-04 00:29:08 +01:00
|
|
|
PORTREVISION= 1
|
2004-05-05 17:25:51 +02:00
|
|
|
CATEGORIES= net-mgmt
|
|
|
|
MASTER_SITES= http://www.kismetwireless.net/code/
|
2005-08-31 16:07:39 +02:00
|
|
|
DISTNAME= kismet-2005-08-R1
|
2004-05-05 17:25:51 +02:00
|
|
|
|
2005-01-24 17:16:25 +01:00
|
|
|
MAINTAINER= eol1@yahoo.com
|
2004-05-05 17:25:51 +02:00
|
|
|
COMMENT= 802.11 layer2 wireless network detector, sniffer, and IDS
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2006-01-25 22:48:40 +01:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2004-05-05 17:25:51 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-syspcap
|
|
|
|
|
2006-01-25 22:48:40 +01:00
|
|
|
OPTIONS= CURSES "libcurses interface" on \
|
|
|
|
PANEL "libpanels interface" on \
|
|
|
|
SETUID "Install kismet with setuid" on \
|
|
|
|
GPSMAP "Build gpsmap utility" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_CURSES)
|
|
|
|
CONFIGURE_ARGS+=--disable-curses
|
2004-05-05 17:25:51 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-25 22:48:40 +01:00
|
|
|
.if defined(WITHOUT_PANEL)
|
|
|
|
CONFIGURE_ARGS+=--disable-panel
|
2004-05-05 17:25:51 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-25 22:48:40 +01:00
|
|
|
.if defined(WITHOUT_SETUID)
|
|
|
|
CONFIGURE_ARGS+=--disable-setuid
|
2004-05-05 17:25:51 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-25 22:48:40 +01:00
|
|
|
.if defined(WITHOUT_GPSMAP)
|
|
|
|
CONFIGURE_ARGS+=--disable-gpsmap
|
|
|
|
PLIST_SUB+= GPS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GPS=""
|
|
|
|
LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4 \
|
2006-02-04 00:29:08 +01:00
|
|
|
expat.6:${PORTSDIR}/textproc/expat2 \
|
2006-01-25 22:48:40 +01:00
|
|
|
Magick++.9:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
BUILD_DEPENDS+= wget:${PORTSDIR}/ftp/wget
|
|
|
|
RUN_DEPENDS+= wget:${PORTSDIR}/ftp/wget
|
|
|
|
.endif
|
2004-05-05 17:25:51 +02:00
|
|
|
|
2006-01-25 22:48:40 +01:00
|
|
|
MAN1= kismet.1 kismet_drone.1 gpsmap.1
|
|
|
|
MAN5= kismet.conf.5 kismet_drone.conf.5 kismet_ui.conf.5
|
2004-05-05 17:25:51 +02:00
|
|
|
|
|
|
|
.if ${OSVERSION} < 502000
|
2006-01-25 22:48:40 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-pcap
|
2004-05-05 17:25:51 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-25 22:48:40 +01:00
|
|
|
post-extract:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
|
|
${WRKSRC}/configure
|
2004-05-05 17:25:51 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/kismet.conf ${PREFIX}/etc/kismet.conf.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/kismet_drone.conf ${PREFIX}/etc/kismet_drone.conf.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/kismet_ui.conf ${PREFIX}/etc/kismet_ui.conf.sample
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|