diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2011-05-16 11:51:53 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2011-05-16 11:51:53 +0000 |
commit | 342b017a3365062dcd0ad29dfa6c4f1810b55d3e (patch) | |
tree | dc3bcf02a8cee5965f519cea8af1828a89ea2dc3 /testing/kismet | |
parent | e4056a736713f2f8b8efb835e38bf08d25f5268d (diff) | |
download | aports-342b017a3365062dcd0ad29dfa6c4f1810b55d3e.tar.bz2 aports-342b017a3365062dcd0ad29dfa6c4f1810b55d3e.tar.xz |
testing/kismet: new apkbuild - 802.11 layer2 wireless network detector, sniffer, and intrusion detection system
Diffstat (limited to 'testing/kismet')
-rw-r--r-- | testing/kismet/APKBUILD | 35 | ||||
-rw-r--r-- | testing/kismet/kismet.post-install | 3 | ||||
-rw-r--r-- | testing/kismet/kismet.pre-install | 2 |
3 files changed, 40 insertions, 0 deletions
diff --git a/testing/kismet/APKBUILD b/testing/kismet/APKBUILD new file mode 100644 index 0000000000..cb04b7f8a7 --- /dev/null +++ b/testing/kismet/APKBUILD @@ -0,0 +1,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" diff --git a/testing/kismet/kismet.post-install b/testing/kismet/kismet.post-install new file mode 100644 index 0000000000..a60b29ea5a --- /dev/null +++ b/testing/kismet/kismet.post-install @@ -0,0 +1,3 @@ +#!/bin/sh +chown root:kismet "/usr/bin/kismet_capture" +chmod 4550 "/usr/bin/kismet_capture" diff --git a/testing/kismet/kismet.pre-install b/testing/kismet/kismet.pre-install new file mode 100644 index 0000000000..27e39754de --- /dev/null +++ b/testing/kismet/kismet.pre-install @@ -0,0 +1,2 @@ +#!/bin/sh +addgroup -g 315 kismet &>/dev/null |