openbsd-ports/net/kismet/Makefile

86 lines
2.1 KiB
Makefile
Raw Normal View History

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