aboutsummaryrefslogtreecommitdiff
path: root/network/kismet
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 18:48:36 +0200
committerDeposite Pirate2018-09-16 18:48:36 +0200
commitd150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch)
treece5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /network/kismet
parentf29d3519ce073ec30f99754d93304324f7f26d65 (diff)
Add ports.
Diffstat (limited to 'network/kismet')
-rw-r--r--network/kismet/kismet-20130211-alertsyslogmfile.patch.xzbin0 -> 432 bytes
-rw-r--r--network/kismet/kismet-20130211-desktop.patch.xzbin0 -> 2456 bytes
-rwxr-xr-xnetwork/kismet/kismet.build100
3 files changed, 100 insertions, 0 deletions
diff --git a/network/kismet/kismet-20130211-alertsyslogmfile.patch.xz b/network/kismet/kismet-20130211-alertsyslogmfile.patch.xz
new file mode 100644
index 0000000..3062765
--- /dev/null
+++ b/network/kismet/kismet-20130211-alertsyslogmfile.patch.xz
Binary files differ
diff --git a/network/kismet/kismet-20130211-desktop.patch.xz b/network/kismet/kismet-20130211-desktop.patch.xz
new file mode 100644
index 0000000..ac2fa39
--- /dev/null
+++ b/network/kismet/kismet-20130211-desktop.patch.xz
Binary files differ
diff --git a/network/kismet/kismet.build b/network/kismet/kismet.build
new file mode 100755
index 0000000..65c2435
--- /dev/null
+++ b/network/kismet/kismet.build
@@ -0,0 +1,100 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=kismet
+VERSION=20130211
+BUILD=2
+DEPENDS=('tcpip >= 20130209-1' 'pcre >= 8.32-1' 'openssl >= 1.0.1c-1')
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: kismet (wireless network scanner)
+${NAME}:
+${NAME}: Kismet is an 802.11 layer2 wireless network detector, sniffer, and
+${NAME}: intrusion detection system. Kismet will work with any wireless card
+${NAME}: which supports raw monitoring (rfmon) mode, and can sniff 802.11b,
+${NAME}: 802.11a, and 802.11g traffic.
+${NAME}:
+${NAME}: Kismet identifies networks by passively collecting packets and
+${NAME}: detecting standard named networks, detecting (and given time,
+${NAME}: decloaking) hidden networks, and infering the presence of
+${NAME}: nonbeaconing networks via data traffic.
+EOF
+
+cat >> ${PKG}/install/doinst.sh <<EOF
+#!/bin/sh
+
+config() {
+ NEW="\$1"
+ OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r \$OLD ]; then
+ mv \$NEW \$OLD
+ elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm \$NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/kismet/kismet.conf.new
+config etc/kismet/kismet_drone.conf.new
+
+chown root.netdev usr/bin/kismet_capture
+chmod 4750 usr/bin/kismet_capture
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=http://www.kismetwireless.net/code/${SRCNAME[0]}-${SRCVERS[0]}.tar.xz
+SRCCOPY[0]="GPL2"
+
+build0()
+{
+sed -i 's|@datadir@/kismet/wav|@datadir@/sounds/kismet|g' Makefile.inc.in
+LIBS="-lnl-3 -lnl-genl-3" \
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}/kismet" \
+ --libdir="${SYS_DIR[lib]}/plugins" \
+ --localstatedir="${SYS_DIR[var]}" \
+ --with-pcreheaders="${SYS_DIR[include]}/pcre" \
+ --with-suidgroup="netdev"
+make ${JOBS} dep
+make ${JOBS}
+make ${JOBS} plugins
+make install suidinstall DESTDIR="${PKG}"
+make plugins-install DESTDIR="${PKG}"
+doc README
+changelog RELEASENOTES.txt
+install.dir ${PKG}${SYS_DIR[share]}/icons/hicolor/48x48/apps
+install.dat kismet.png ${PKG}${SYS_DIR[share]}/icons/hicolor/48x48/apps
+install.dir ${PKG}${SYS_DIR[share]}/applications
+install.dat kismet.desktop ${PKG}${SYS_DIR[share]}/applications
+install.dir ${PKG}${SYS_DIR[share]}/dtds
+install.dat extra/*.{dtd,xsd} ${PKG}${SYS_DIR[share]}/dtds
+mv \
+ ${PKG}${SYS_DIR[etc]}/kismet/kismet.conf \
+ ${PKG}${SYS_DIR[etc]}/kismet/kismet.conf.new
+mv \
+ ${PKG}${SYS_DIR[etc]}/kismet/kismet_drone.conf \
+ ${PKG}${SYS_DIR[etc]}/kismet/kismet_drone.conf.new
+chmod 0755 ${PKG}${SYS_DIR[lib]}/plugins/kismet*/*.so
+}