summaryrefslogtreecommitdiff
path: root/net/kismet/Makefile
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2006-08-03 15:09:49 +0000
committersalo <salo@pkgsrc.org>2006-08-03 15:09:49 +0000
commitf31c5d70dd09949242958b583d69307b09717c58 (patch)
treec57e68b6013c39aa05f7f6f0ebea875a088d9732 /net/kismet/Makefile
parentfa9b68e46343bb0233a3ea65f4f38a22f01a368c (diff)
downloadpkgsrc-f31c5d70dd09949242958b583d69307b09717c58.tar.gz
Initial import of kismet-2006-04-R1: 802.11 wireless network detector, sniffer
and IDS. Kismet is an 802.11 layer2 wireless network detector, sniffer, and intrusion detection system. Kismet will work with any wireless card which supports raw monitoring (rfmon) mode, and can sniff 802.11b, 802.11a, and 802.11g traffic. Kismet identifies networks by passively collecting packets and detecting standard named networks, detecting (and given time, decloaking) hidden networks, and infering the presence of nonbeaconing networks via data traffic. Imported from pkgsrc-wip, thanks to <skrll> and <wiz> for help with patches, packaging and testing. XXX: GPS support is untested.
Diffstat (limited to 'net/kismet/Makefile')
-rw-r--r--net/kismet/Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/net/kismet/Makefile b/net/kismet/Makefile
new file mode 100644
index 00000000000..61b9043ca46
--- /dev/null
+++ b/net/kismet/Makefile
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/08/03 15:09:49 salo Exp $
+
+DISTNAME= kismet-2006-04-R1
+PKGNAME= kismet-2006.04.01
+CATEGORIES= net
+MASTER_SITES= http://www.kismetwireless.net/code/
+
+MAINTAINER= skrll@NetBSD.org
+HOMEPAGE= http://www.kismetwireless.net/
+COMMENT= 802.11 wireless network detector, sniffer and IDS
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_NCURSES= # needs libpanel
+USE_TOOLS+= gmake
+
+# might be appended to in options.mk
+PLIST_SRC= PLIST
+
+KISMET_USER?= kismet
+KISMET_GROUP?= kismet
+PKG_GROUPS= ${KISMET_GROUP}
+PKG_USERS= ${KISMET_USER}:${KISMET_GROUP}::Kismet\ user:${VARBASE}/log/kismet
+
+PKG_SYSCONFSUBDIR?= ${PKGBASE}
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES+= ${EGDIR}/ap_manuf ${PKG_SYSCONFDIR}/ap_manuf
+CONF_FILES+= ${EGDIR}/client_manuf ${PKG_SYSCONFDIR}/client_manuf
+CONF_FILES+= ${EGDIR}/kismet.conf.default \
+ ${PKG_SYSCONFDIR}/kismet.conf
+CONF_FILES+= ${EGDIR}/kismet_drone.conf.default \
+ ${PKG_SYSCONFDIR}/kismet_drone.conf
+CONF_FILES+= ${EGDIR}/kismet_ui.conf.default \
+ ${PKG_SYSCONFDIR}/kismet_ui.conf
+OWN_DIRS_PERMS+= ${VARBASE}/log/kismet ${KISMET_USER} ${KISMET_GROUP} 0700
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+
+SUBST_CLASSES+= user
+SUBST_MESSAGE.user= Fixing user name.
+SUBST_STAGE.user= pre-configure
+SUBST_FILES.user= conf/kismet.conf.in
+SUBST_SED.user= 's/your_user_here/${KISMET_USER}/'
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/conf/ap_manuf ${EGDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/conf/client_manuf ${EGDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/conf/kismet.conf \
+ ${EGDIR}/kismet.conf.default
+ ${INSTALL_DATA} ${WRKSRC}/conf/kismet_drone.conf \
+ ${EGDIR}/kismet_drone.conf.default
+ ${INSTALL_DATA} ${WRKSRC}/conf/kismet_ui.conf \
+ ${EGDIR}/kismet_ui.conf.default
+
+.include "options.mk"
+
+.include "../../devel/glib/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"