aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kismet/APKBUILD
blob: 86a2d9ae79441097d8903e719fa68a29bfad3be2 (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
39
40
41
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=kismet
pkgver=2013.03_p1
_ver=${pkgver/_p/-R}; 
_ver=${_ver/./-}
_rev=b
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=""
pkggroups="kismet"
subpackages="$pkgname-doc"
source="http://www.kismetwireless.net/code/kismet-${_ver}${_rev}.tar.gz"
_builddir="${srcdir}"/$pkgname-${_ver}${_rev}
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
	chown root:kismet "$pkgdir"/usr/bin/kismet_capture
	chmod 4550 "$pkgdir"/usr/bin/kismet_capture
}
md5sums="6cdcd78baf2e15edbe8a9de3c5493f02  kismet-2013-03-R1b.tar.gz"
sha256sums="c0bb8a8f47061e2ffc965b0557bab9a1b3d63b5a50b744663f66518aec7fbc77  kismet-2013-03-R1b.tar.gz"
sha512sums="9a6a04f1d6da5ba5aee17806e318b3a7b5ce72c4493e7e4d2f23ed33c4d4190f4bfde97070d58cbde4e4c7c548dc7d6c7cad13d0f15119e2b0f961cdd67d08fd  kismet-2013-03-R1b.tar.gz"