summaryrefslogtreecommitdiff
path: root/extra/kismet/PKGBUILD
blob: b381469addf096e3137cee7ae0c2fb201ad74e97 (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 94735 2010-10-10 15:05:47Z guillaume $
# Contributer: Jason Chu <jason@archlinux.org>
# Maintainer: Juergen Hoetzel <jason@archlinux.org>

pkgname=kismet
pkgver=2010_07_R1
_realver="${pkgver//_/-}"
pkgrel=1
pkgdesc="802.11b sniffing software"
arch=('i686' 'x86_64')
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=('85e59186eb529889118b5635f35cf57d')

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

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

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

   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 || return 1
}