mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
|
# $Id: PKGBUILD 48084 2009-07-30 11:15:06Z juergen $
|
||
|
# Contributer: Jason Chu <jason@archlinux.org>
|
||
|
# Maintainer: Juergen Hoetzel <jason@archlinux.org>
|
||
|
|
||
|
pkgname=kismet
|
||
|
pkgver=2009_06_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/ap_manuf' 'etc/client_manuf' 'etc/kismet.conf' 'etc/kismet_drone.conf' 'etc/kismet_ui.conf')
|
||
|
options=('!makeflags')
|
||
|
source=(http://www.kismetwireless.net/code/kismet-2009-06-R1.tar.gz)
|
||
|
md5sums=('8d77138020ace39f175a906dc0d3b267')
|
||
|
sha1sums=('8355aeb0374a39549dfdc0c73160125eadd7c6e2'
|
||
|
'65f7fd29c3c55466ce6a647b6b80b66161b348f5'
|
||
|
'6127b69d6c4dc7db4a32bdd4fdffdced9df33511')
|
||
|
|
||
|
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
|
||
|
}
|