2004-05-05 15:25:51 +00:00
|
|
|
# New ports collection makefile for: kismet
|
|
|
|
# Date created: 3 May 2004
|
|
|
|
# Whom: Thomas Spreng <spreng@socket.ch>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kismet
|
2008-05-30 21:44:20 +00:00
|
|
|
PORTVERSION= 200805.r1
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 1
|
2004-05-05 15:25:51 +00:00
|
|
|
CATEGORIES= net-mgmt
|
|
|
|
MASTER_SITES= http://www.kismetwireless.net/code/
|
2008-05-30 21:44:20 +00:00
|
|
|
DISTNAME= kismet-2008-05-R1
|
2004-05-05 15:25:51 +00:00
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
MAINTAINER= peter.thoenen@yahoo.com
|
2004-05-05 15:25:51 +00:00
|
|
|
COMMENT= 802.11 layer2 wireless network detector, sniffer, and IDS
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2006-01-25 21:48:40 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2007-07-23 09:36:51 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-syspcap
|
2004-05-05 15:25:51 +00:00
|
|
|
|
2006-01-25 21:48:40 +00:00
|
|
|
OPTIONS= CURSES "libcurses interface" on \
|
|
|
|
PANEL "libpanels interface" on \
|
|
|
|
SETUID "Install kismet with setuid" on \
|
2006-06-29 12:57:53 +00:00
|
|
|
GPSMAP "Build gpsmap utility" off \
|
2006-04-13 08:24:55 +00:00
|
|
|
GMAP "Build gpsmap with Google Maps patch *UNOFFICIAL*" off
|
2006-01-25 21:48:40 +00:00
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
|
|
|
|
2006-01-25 21:48:40 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
.ifdef(WITHOUT_CURSES)
|
2006-01-25 21:48:40 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-curses
|
2004-05-05 15:25:51 +00:00
|
|
|
.endif
|
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
.ifdef(WITHOUT_PANEL)
|
2006-01-25 21:48:40 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-panel
|
2004-05-05 15:25:51 +00:00
|
|
|
.endif
|
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
.ifdef(WITHOUT_SETUID)
|
2006-01-25 21:48:40 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-setuid
|
2004-05-05 15:25:51 +00:00
|
|
|
.endif
|
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
.ifdef(WITH_GPSMAP)
|
2006-01-25 21:48:40 +00:00
|
|
|
PLIST_SUB+= GPS=""
|
2006-05-10 14:46:47 +00:00
|
|
|
LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4 \
|
2006-02-03 23:29:08 +00:00
|
|
|
expat.6:${PORTSDIR}/textproc/expat2 \
|
2008-04-22 10:56:45 +00:00
|
|
|
Magick++.1:${PORTSDIR}/graphics/ImageMagick
|
2006-01-25 21:48:40 +00:00
|
|
|
BUILD_DEPENDS+= wget:${PORTSDIR}/ftp/wget
|
2006-06-29 12:57:53 +00:00
|
|
|
MAN1= gpsmap.1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gpsmap
|
|
|
|
PLIST_SUB+= GPS="@comment "
|
2006-01-25 21:48:40 +00:00
|
|
|
.endif
|
2004-05-05 15:25:51 +00:00
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
.ifdef(WITH_GMAP) && defined(WITH_GPSMAP)
|
2006-04-13 08:24:55 +00:00
|
|
|
PATCH_SITES= http://www.parknation.com/gmap/files/
|
|
|
|
PATCHFILES= gpsmap-gmap-0.1.tgz
|
|
|
|
PLIST_SUB+= GMAP=""
|
2006-06-29 12:57:53 +00:00
|
|
|
.ifndef(NOPORTDOC)
|
|
|
|
SUB_LIST+= DOCSDIR=${DOCSDIR}
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
.endif
|
|
|
|
GMAP= gpsmap-gmap
|
|
|
|
PORTDOCS= ${GMAP}/README.txt
|
2006-04-13 08:24:55 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= GMAP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
MAN1+= kismet.1 kismet_drone.1
|
2006-01-25 21:48:40 +00:00
|
|
|
MAN5= kismet.conf.5 kismet_drone.conf.5 kismet_ui.conf.5
|
2004-05-05 15:25:51 +00:00
|
|
|
|
2006-06-29 12:57:53 +00:00
|
|
|
PORTDOCS+= README
|
|
|
|
|
2004-05-05 15:25:51 +00:00
|
|
|
.if ${OSVERSION} < 502000
|
2006-01-25 21:48:40 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-pcap
|
2004-05-05 15:25:51 +00:00
|
|
|
.endif
|
|
|
|
|
2006-01-25 21:48:40 +00:00
|
|
|
post-extract:
|
2006-06-29 12:57:53 +00:00
|
|
|
.ifdef(WITH_GMAP) && defined(WITH_GPSMAP)
|
|
|
|
@${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${PATCHFILES}
|
|
|
|
@${PATCH} -d ${WRKSRC}/${GMAP}-0.1 --forward --quiet < ${PKGDIR}/files/${GMAP}-0.1.diff.patch
|
|
|
|
@${PATCH} -d ${WRKSRC} --forward --quiet < ${WRKSRC}/${GMAP}-0.1/${GMAP}-0.1.diff
|
2006-04-13 08:24:55 +00:00
|
|
|
.endif
|
2006-01-25 21:48:40 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
|
|
${WRKSRC}/configure
|
2004-05-05 15:25:51 +00:00
|
|
|
|
|
|
|
post-install:
|
2008-05-30 22:15:40 +00:00
|
|
|
.ifndef(NOPORTDOCS)
|
2006-06-29 12:57:53 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.ifdef(WITH_GMAP) && defined(WITH_GPSMAP)
|
|
|
|
${MKDIR} ${DATADIR}/${GMAP}/mapfiles
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${GMAP}-0.1/index.html ${DATADIR}/${GMAP}/index.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${GMAP}-0.1/mapfiles/shadow.png ${DATADIR}/${GMAP}/mapfiles/shadow.png
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${GMAP}-0.1/mapfiles/wep.png ${DATADIR}/${GMAP}/mapfiles/wep.png
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${GMAP}-0.1/mapfiles/open.png ${DATADIR}/${GMAP}/mapfiles/open.png
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${GMAP}-0.1/mapfiles/wpa.png ${DATADIR}/${GMAP}/mapfiles/wpa.png
|
2008-05-30 22:15:40 +00:00
|
|
|
.ifndef(NOPORTDOCS)
|
2006-06-29 12:57:53 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${GMAP}-0.1/README.txt ${DOCSDIR}/${GMAP}
|
2006-04-13 08:24:55 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
2006-06-29 12:57:53 +00:00
|
|
|
.endif
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/extra/manuf_update.sh ${PREFIX}/bin
|
2004-05-05 15:25:51 +00:00
|
|
|
${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>
|