summaryrefslogtreecommitdiffstats
path: root/testing/kismet/APKBUILD
blob: cb04b7f8a7f19ee9713e05418bbaff363326215b (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=kismet
pkgver=2011.03_p2
_ver=${pkgver/_p/-R}; 
_ver=${_ver/./-}
pkgrel=0
pkgdesc="802.11 layer2 wireless network detector, sniffer, and intrusion detection system"
url="http://www.kismetwireless.net"
arch="all"
license="GPL"
depends_dev="libpcap-dev libnl-dev pcre-dev ncurses-dev openssl-dev bluez-dev"
makedepends="$depends_dev"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://www.kismetwireless.net/code/kismet-$_ver.tar.gz"
_builddir="${srcdir}"/$pkgname-$_ver
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc/kismet \
		--localstatedir=/var
	make dep || return 1
	make || return 1
	make plugins || return 1
}
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	make plugins-install DESTDIR="$pkgdir" || return 1
	install -o "root" -g "root" -m 4550 kismet_capture "${pkgdir}/usr/bin/"
	mkdir -p "$pkgdir"/etc/kismet
        install -m644 -D "$_builddir"/conf/kismet.conf "$pkgdir"/etc/kismet/kismet.conf
}
md5sums="8bf077e8111e6dc8c12cadefdf40aadd  kismet-2011-03-R2.tar.gz"