diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-05-16 12:07:32 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-05-16 12:07:32 +0000 |
commit | 977a7c4d4a530355ef36aeb1caab3a59fe0ec1d4 (patch) | |
tree | 528083240ed91439c63d329df2abfa8bac327e57 | |
parent | d82e502b6322313f28d8f78e959162dc43055a18 (diff) | |
parent | 342b017a3365062dcd0ad29dfa6c4f1810b55d3e (diff) | |
download | aports-977a7c4d4a530355ef36aeb1caab3a59fe0ec1d4.tar.bz2 aports-977a7c4d4a530355ef36aeb1caab3a59fe0ec1d4.tar.xz |
Merge branch 'master' of ../fcolista/aports
-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 000000000..cb04b7f8a --- /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 000000000..a60b29ea5 --- /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 000000000..27e39754d --- /dev/null +++ b/testing/kismet/kismet.pre-install @@ -0,0 +1,2 @@ +#!/bin/sh +addgroup -g 315 kismet &>/dev/null |