2008-06-27 18:10:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2008/06/27 22:10:14 kili Exp $
|
2005-08-04 18:22:33 -04:00
|
|
|
# Much help came from Alexandre Anriot, Robert Nagy, Bernd Ahlers,
|
2005-07-27 17:37:26 -04:00
|
|
|
# and, last but not least, Pedro la Peu.
|
|
|
|
|
2007-09-13 04:35:02 -04:00
|
|
|
COMMENT-main= 802.11 layer2 wireless network detector, sniffer, and IDS
|
|
|
|
COMMENT-gpsmap= reads GPS and Network XML datafiles and plots networks
|
2005-07-27 17:37:26 -04:00
|
|
|
|
2006-02-25 17:18:19 -05:00
|
|
|
# No wireless capabilities
|
|
|
|
NOT_FOR_ARCHS=m68k m88k vax
|
|
|
|
|
2008-06-27 18:10:14 -04:00
|
|
|
V= 2008-05-R1
|
2005-07-27 17:37:26 -04:00
|
|
|
DISTNAME= kismet-${V}
|
2007-11-10 16:10:42 -05:00
|
|
|
PKGNAME-main= kismet-${V:S,-,,g}
|
2008-06-27 18:10:14 -04:00
|
|
|
PKGNAME-gpsmap= kismet-gpsmap-${V:S,-,,g}
|
2005-07-27 17:37:26 -04:00
|
|
|
CATEGORIES= net security
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.kismetwireless.net/
|
|
|
|
MASTER_SITES= ${HOMEPAGE}code/
|
|
|
|
|
2006-11-01 16:13:19 -05:00
|
|
|
MAINTAINER= Matthias Kilian <kili@openbsd.org>
|
2005-07-27 17:37:26 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-11-10 16:10:42 -05:00
|
|
|
# "old" is required for setting --sysconfdir
|
|
|
|
CONFIGURE_STYLE= gnu old
|
2005-07-27 17:37:26 -04:00
|
|
|
|
|
|
|
CONFDIR= ${SYSCONFDIR}/kismet
|
|
|
|
SUBST_VARS+= CONFDIR
|
|
|
|
|
2007-11-10 16:10:42 -05:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
|
2008-06-27 18:10:14 -04:00
|
|
|
--mandir=${PREFIX}/man \
|
|
|
|
--disable-dbus
|
2005-07-27 17:37:26 -04:00
|
|
|
|
2007-05-02 04:15:16 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
2007-04-29 09:13:55 -04:00
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
2005-07-27 17:37:26 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
SAMPLES_DIR= ${DESTDIR}${LOCALBASE}/share/examples/kismet
|
2005-07-27 17:42:44 -04:00
|
|
|
FAKE_FLAGS+= ETC=${SAMPLES_DIR}
|
2005-07-27 17:37:26 -04:00
|
|
|
|
|
|
|
# They don't have tests.
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2005-10-07 10:13:57 -04:00
|
|
|
PSEUDO_FLAVORS= no_gpsmap
|
|
|
|
FLAVOR?=
|
|
|
|
|
2006-11-20 15:54:07 -05:00
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
|
2007-04-09 16:50:57 -04:00
|
|
|
WANTLIB-main= c m ncurses panel pcap stdc++
|
2005-10-07 10:13:57 -04:00
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_gpsmap}
|
2006-11-13 07:51:14 -05:00
|
|
|
USE_X11= Yes
|
2006-11-20 15:54:07 -05:00
|
|
|
MULTI_PACKAGES+= -gpsmap
|
2007-04-29 09:13:55 -04:00
|
|
|
WANTLIB-gpsmap= c ICE SM X11 Xext Xt bz2 expat fontconfig freetype \
|
2007-04-09 16:50:57 -04:00
|
|
|
jasper jbig jpeg lcms m png pthread stdc++ \
|
2008-06-12 17:58:11 -04:00
|
|
|
tiff wmflite xml2 z
|
2007-04-09 16:50:57 -04:00
|
|
|
WANTLIB-main+= z
|
2006-11-20 15:54:07 -05:00
|
|
|
LIB_DEPENDS-gpsmap= Magick.>=11,Wand.>=11::graphics/ImageMagick \
|
2007-04-29 09:13:55 -04:00
|
|
|
gmp.>=6::devel/gmp
|
2005-10-07 10:13:57 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gpsmap
|
|
|
|
.endif
|
|
|
|
|
2005-07-27 17:37:26 -04:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC} && ${GMAKE} depend
|
|
|
|
|
2007-11-10 16:10:42 -05:00
|
|
|
post-patch:
|
2005-07-27 17:37:26 -04:00
|
|
|
@perl -pi -e \
|
2007-09-13 04:35:02 -04:00
|
|
|
's,/usr/local/etc(/kismet.conf),${CONFDIR}$$1,' \
|
2005-07-27 17:37:26 -04:00
|
|
|
${WRKSRC}/man/kismet.conf.5
|
|
|
|
@perl -pi -e \
|
2007-09-13 04:35:02 -04:00
|
|
|
's,/usr/local/etc(/kismet.conf),${CONFDIR}$$1,' \
|
2005-07-27 17:37:26 -04:00
|
|
|
${WRKSRC}/man/kismet_drone.conf.5
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kismet
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README \
|
|
|
|
${PREFIX}/share/doc/kismet
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|