summaryrefslogtreecommitdiff
path: root/extra/kismet/PKGBUILD
blob: 4c8f9ee0d55511db4914af80849acaffab06a6e7 (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
# $Id: PKGBUILD 119587 2011-04-12 15:18:27Z angvp $
# Contributer: Jason Chu <jason@archlinux.org>
# Maintainer: Juergen Hoetzel <jason@archlinux.org>

pkgname=kismet
pkgver=2011_03_R2
_realver="${pkgver//_/-}"
pkgrel=1
pkgdesc="802.11b sniffing software"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
depends=('gmp' 'imagemagick' 'libpcap>=1.0.0' 'ncurses' 'dbus' 'libjpeg>=7')
optdepends=(perl-libwww)
url="http://www.kismetwireless.net/"
backup=('etc/kismet.conf' 'etc/kismet_drone.conf')
options=('!makeflags')
source=(http://www.kismetwireless.net/code/kismet-${pkgver//_/-}.tar.gz)
md5sums=('8bf077e8111e6dc8c12cadefdf40aadd')

build() {
   cd "$srcdir/kismet-$_realver"

   ./configure --prefix=/usr \
               --sysconfdir=/etc \
               --localstatedir=/var 

   make dep
   make 
   sed -i 's/prism2/wlanng/g' conf/kismet.conf
   make DESTDIR="$pkgdir" install

   chown root:root "$pkgdir"/usr/share/man/man{1,5}/*

   install -D -m 644 "$srcdir/kismet-$_realver/README" "$pkgdir/usr/share/kismet/README"

   # Fix the *.conf unexpanded ${prefix} problems
   sed -i 's%\${prefix}%/usr%' "$pkgdir"/etc/*.conf 
}