# $Id: PKGBUILD 94735 2010-10-10 15:05:47Z guillaume $ # Contributer: Jason Chu # Maintainer: Juergen Hoetzel pkgname=kismet pkgver=2010_07_R1 _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=('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 }