blob: 4239608af4b9a5bec2ff3c9ea42a6561f8292a4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $Id: PKGBUILD 149954 2012-02-11 23:30:59Z allan $
# 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=3
pkgdesc="802.11 layer2 wireless network detector, sniffer, and intrusion detection system"
arch=('i686' 'x86_64' 'mips64el')
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-cli: provide OUI files used to determine device manufacturer'
'wireshark-cli: 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')
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 \
--build=$CHOST --host=$CHOST
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/"
}
|