From 6dab5c46b00f624c7900ff6d11b75bcafbe251d0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 Apr 2011 04:53:33 +0000 Subject: Wed Apr 13 04:53:33 UTC 2011 --- testing/kismet/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testing/kismet/PKGBUILD (limited to 'testing/kismet/PKGBUILD') diff --git a/testing/kismet/PKGBUILD b/testing/kismet/PKGBUILD new file mode 100644 index 000000000..3333a8e22 --- /dev/null +++ b/testing/kismet/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 119587 2011-04-12 15:18:27Z angvp $ +# Contributer: Jason Chu +# Maintainer: Juergen Hoetzel + +pkgname=kismet +pkgver=2011_03_R2 +_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=('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 +} -- cgit v1.2.3-54-g00ecf