summaryrefslogtreecommitdiff
path: root/testing/kismet/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-10 22:33:36 +0000
committerroot <root@rshg047.dnsready.net>2011-05-10 22:33:36 +0000
commit01b47af6474ac094ec199c7d75208874f8842d87 (patch)
tree44a048d09e5233a98d35c660e67be2a818832a56 /testing/kismet/PKGBUILD
parentbbb460f85242e6ac03f47b74b9d0be66ff089ac4 (diff)
Tue May 10 22:33:36 UTC 2011
Diffstat (limited to 'testing/kismet/PKGBUILD')
-rw-r--r--testing/kismet/PKGBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/kismet/PKGBUILD b/testing/kismet/PKGBUILD
new file mode 100644
index 000000000..015044fe8
--- /dev/null
+++ b/testing/kismet/PKGBUILD
@@ -0,0 +1,59 @@
+# $Id: PKGBUILD 123234 2011-05-09 12:19:16Z angvp $
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Jason Chu <jason@archlinux.org>
+# Contributor: Juergen Hoetzel <jason@archlinux.org>
+
+pkgname=kismet
+pkgver=2011_03_R2
+_realver="${pkgver//_/-}"
+pkgrel=2
+pkgdesc="802.11 layer2 wireless network detector, sniffer, and intrusion detection system"
+arch=('i686' 'x86_64')
+url="http://www.kismetwireless.net/"
+license=('GPL')
+depends=('libcap' 'libnl' 'pcre' 'ncurses' 'libpcap>=1.0.0' 'bluez' 'openssl') # already in core: ('linux-api-headers' 'glibc' 'libusb' 'libusb-compat')
+makedepends=() # already in core: ('grep' 'gcc-libs')
+optdepends=('gpsd: log coordinates of detected networks'
+ 'wireshark: provide OUI files used to determine device manufacturer'
+ 'wireshark: mergecap, to merge multiple capture files'
+ 'sox: provide the default kismet sound playback binary'
+ 'festival: text-to-speech support'
+ 'flite: alternative/lightweight text-to-speech support'
+ 'mac80211-driver: full rfmon support'
+ 'ruby: ruby interface')
+backup=('etc/kismet.conf' 'etc/kismet_drone.conf')
+options=()
+install=kismet.install
+changelog=kismet.changelog
+source=("http://www.kismetwireless.net/code/${pkgname}-${_realver}.tar.gz")
+md5sums=('8bf077e8111e6dc8c12cadefdf40aadd')
+
+build() {
+ cd "${srcdir}/${pkgname}-${_realver}"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var
+ make dep
+ make
+
+ # Include plugins bundled with kismet
+ make plugins
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${_realver}"
+
+ # Install kismet
+ make DESTDIR="$pkgdir" install
+
+ # Install plugins
+ make plugins-install DESTDIR="$pkgdir"
+
+ # the README is very comprehensive, a good idea to include it
+ install -D -m 644 "${srcdir}/kismet-${_realver}/README" "${pkgdir}/usr/share/kismet/README"
+
+ # Our own suid-install, first half (see kismet.install)
+ install -o "root" -g "root" -m 4550 kismet_capture "${pkgdir}/usr/bin/"
+}
+