kismet: version bump, ebuild cleanup

This commit is contained in:
Anton Bolshakov 2011-04-12 05:17:18 +00:00
parent fd748fd64a
commit e6dac9ae44
2 changed files with 163 additions and 0 deletions

View file

@ -3,6 +3,8 @@ AUX kismet.confd 403 RMD160 cf6cad4dc844ccf9c807edfb5adec2351c0cd249 SHA1 50ce39
AUX kismet.initd 742 RMD160 f91c46a9a3d1cac2610659e65a1a3538af4f2772 SHA1 54aa3d489e2fade47cca11a036cb1237dab7786a SHA256 b4420c22264ff3604bf956b65bca5b564cbb70676c3f48d5e444f3aa6687a624
DIST kismet-2011-01-R1.tar.gz 916637 RMD160 5c4ab94b58c3ded97f4751fd0436c019073910d4 SHA1 412f9ef7028d4fe89a4f81e9758f74631128185f SHA256 99e76f8f7684199b9176a7a2f6b1bb5c637d89f6906d6de279794fb1fb22cde1
DIST kismet-2011-03-R1.tar.gz 924873 RMD160 f10e767c906a65bf5b95a2662ec97e62a750c54a SHA1 ca3a9d01231a76271723b83f4e3dedd0f4b274bb SHA256 4bc1ff064dccd65dacdd2db832bc209781daa482690fba444a0b79d36744ff5b
DIST kismet-2011-03-R2.tar.gz 924988 RMD160 58fcc5e8e438fa9d94959ea0c5b2c914ebf44081 SHA1 c01706b0441a3ea412386930bcbaf56187c66d27 SHA256 71a099fb724951cdd55c28e492432ca21657534c91a536c206f3e0a8686d2a64
EBUILD kismet-2011.01.1.ebuild 4109 RMD160 c1e67eb3dbcab8be1759ed0516969836579eaae2 SHA1 bf94b3464b45b0a87435ff0356157761bc2c20db SHA256 67cab3a18a85f01168fa77c2db148f7fbd4acc94a81f152d8625434a3c500b28
EBUILD kismet-2011.03.1.ebuild 4109 RMD160 c1e67eb3dbcab8be1759ed0516969836579eaae2 SHA1 bf94b3464b45b0a87435ff0356157761bc2c20db SHA256 67cab3a18a85f01168fa77c2db148f7fbd4acc94a81f152d8625434a3c500b28
EBUILD kismet-2011.03.2.ebuild 4221 RMD160 266661aec00faac5f988014ee08dec5ac6c60e08 SHA1 109d2abb016055b395f0b47af9f9ff8282b9c6ea SHA256 1e3706db50fc802bc5e89936bbe60ae11ab15796a72e20936eee33a4aca4022d
EBUILD kismet-9999.ebuild 4109 RMD160 c1e67eb3dbcab8be1759ed0516969836579eaae2 SHA1 bf94b3464b45b0a87435ff0356157761bc2c20db SHA256 67cab3a18a85f01168fa77c2db148f7fbd4acc94a81f152d8625434a3c500b28

View file

@ -0,0 +1,161 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit toolchain-funcs linux-info eutils
MY_P=${P/\./-}
MY_P=${MY_P/./-R}
S=${WORKDIR}/${MY_P}
if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="https://www.kismetwireless.net/code/svn/trunk"
inherit subversion
KEYWORDS="~amd64 ~arm ~ppc ~x86"
else
SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz"
KEYWORDS="amd64 arm ppc x86"
fi
#uncomment for repoman testing
#KEYWORDS="amd64 arm ppc x86"
DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
HOMEPAGE="http://www.kismetwireless.net/"
LICENSE="GPL-2"
SLOT="0"
IUSE="+ncurses +pcre speech +plugin-autowep +plugin-btscan +plugin-dot15d4 +plugin-ptw +plugin-spectools +ruby +suid"
RDEPEND="net-wireless/wireless-tools
kernel_linux? ( sys-libs/libcap
>=dev-libs/libnl-1.1 )
net-libs/libpcap
pcre? ( dev-libs/libpcre )
suid? ( sys-libs/libcap )
ncurses? ( sys-libs/ncurses )
ruby? ( dev-lang/ruby )
plugin-btscan? ( net-wireless/bluez )
plugin-dot15d4? ( <dev-libs/libusb-1 )
!arm? (
speech? ( app-accessibility/flite )
plugin-spectools? ( net-wireless/spectools )
)"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/kismet-pentoo.patch
sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
conf/kismet.conf.in
# Don't strip and set correct mangrp
sed -i -e 's| -s||g' \
-e 's|@mangrp@|root|g' Makefile.in
}
src_configure() {
# the configure script only honors '--disable-foo'
# local myconf="--disable-gpsmap"
if ! use ncurses; then
myconf="${myconf} --disable-curses --disable-panel"
fi
if ! use pcre; then
myconf="${myconf} --disable-pcre"
fi
econf ${myconf} \
--with-linuxheaders="${KV_DIR}" || die "econf failed"
}
src_compile() {
emake dep || die "emake dep failed"
emake || die "emake failed"
if use plugin-autowep; then
cd "${S}"/plugin-autowep
KIS_SRC_DIR="${S}" emake || die "emake failed"
fi
if use plugin-btscan; then
cd "${S}"/plugin-btscan
KIS_SRC_DIR="${S}" emake || die "emake failed"
fi
if use plugin-dot15d4; then
cd "${S}"/plugin-dot15d4
KIS_SRC_DIR="${S}" emake || die "emake failed"
fi
if use plugin-ptw; then
cd "${S}"/plugin-ptw
KIS_SRC_DIR="${S}" emake || die "emake failed"
fi
if use plugin-spectools; then
cd "${S}"/plugin-spectools
KIS_SRC_DIR="${S}" emake || die "emake failed"
fi
}
src_install () {
if use plugin-autowep; then
cd "${S}"/plugin-autowep
KIS_SRC_DIR="${S}" emake DESTDIR="${D}" install || die "emake install failed"
fi
if use plugin-btscan; then
cd "${S}"/plugin-btscan
KIS_SRC_DIR="${S}" emake DESTDIR="${D}" install || die "emake install failed"
fi
if use plugin-dot15d4; then
cd "${S}"/plugin-dot15d4
KIS_SRC_DIR="${S}" emake DESTDIR="${D}" install || die "emake install failed"
fi
if use plugin-ptw; then
cd "${S}"/plugin-ptw
KIS_SRC_DIR="${S}" emake DESTDIR="${D}" install || die "emake install failed"
fi
if use plugin-spectools; then
cd "${S}"/plugin-spectools
KIS_SRC_DIR="${S}" emake DESTDIR="${D}" install || die "emake install failed"
fi
if use ruby; then
cd "${S}"/ruby
dobin *.rb
fi
cd "${S}"
emake DESTDIR="${D}" commoninstall || die "emake install failed"
##dragorn would prefer I set fire to my head than do this, but it works
# install headers for external plugins
insinto /usr/include/kismet
doins *.h || die "Header installation failed"
#write a plugin finder that tells you what needs to be rebuilt when kismet is updated, etc
dodoc CHANGELOG RELEASENOTES.txt README* docs/* || die
newinitd "${FILESDIR}"/${PN}.initd kismet
newconfd "${FILESDIR}"/${PN}.confd kismet
insinto /etc
doins conf/kismet{,_drone}.conf || die
if use suid; then
dobin kismet_capture || die
fi
}
pkg_preinst() {
if use suid; then
enewgroup kismet
fowners root:kismet /usr/bin/kismet_capture || die
# Need to set the permissions after chowning.
# See chown(2)
fperms 4550 /usr/bin/kismet_capture || die
elog "Kismet has been installed with a setuid-root helper binary"
elog "to enable minimal-root operation. Users need to be part of"
elog "the 'kismet' group to perform captures from physical devices."
fi
}