diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-06-14 15:16:34 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-06-14 15:16:34 +0000 |
commit | 2991e4d4dcc32d9cada2dab1014cd1300d75d8ea (patch) | |
tree | fd57a8ebc6724b60c0fdc469e4ce497421800aae /net-wireless/kismet/kismet-2005.04.1-r2.ebuild | |
parent | version bump to close #69782 (diff) | |
download | gentoo-2-2991e4d4dcc32d9cada2dab1014cd1300d75d8ea.tar.gz gentoo-2-2991e4d4dcc32d9cada2dab1014cd1300d75d8ea.tar.bz2 gentoo-2-2991e4d4dcc32d9cada2dab1014cd1300d75d8ea.zip |
Determine which glib version to use for ethereal wiretap based on USE="gtk", fixes bug #94289.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-wireless/kismet/kismet-2005.04.1-r2.ebuild')
-rw-r--r-- | net-wireless/kismet/kismet-2005.04.1-r2.ebuild | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/net-wireless/kismet/kismet-2005.04.1-r2.ebuild b/net-wireless/kismet/kismet-2005.04.1-r2.ebuild new file mode 100644 index 000000000000..948cadde7193 --- /dev/null +++ b/net-wireless/kismet/kismet-2005.04.1-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2005.04.1-r2.ebuild,v 1.1 2005/06/14 15:16:34 brix Exp $ + +inherit linux-info + +MY_P=${P/\./-} +MY_P=${MY_P/./-R} +S=${WORKDIR}/${MY_P} + +ETHEREAL_VERSION="0.10.11" + +DESCRIPTION="IEEE 802.11 wireless LAN sniffer" +HOMEPAGE="http://www.kismetwireless.net" +SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz + ethereal? ( http://www.ethereal.com/distribution/ethereal-${ETHEREAL_VERSION}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="ethereal gps gtk2 ncurses" + +DEPEND=">=sys-devel/autoconf-2.58 + sys-apps/sed" +RDEPEND="net-wireless/wireless-tools + sys-libs/ncurses + ethereal? ( >=net-analyzer/ethereal-${ETHEREAL_VERSION} + sys-libs/zlib + gtk2? ( =dev-libs/glib-1.2* ) + !gtk2? ( >=dev-libs/glib-2.0.4 ) ) + gps? ( app-misc/gpsdrive + >=dev-libs/expat-1.95.4 + dev-libs/gmp + >=media-gfx/imagemagick-6.0 + dev-perl/libwww-perl )" + +src_unpack() { + unpack ${A} + + sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \ + ${S}/conf/kismet.conf.in +} + +src_compile() { + # the configure script only honors '--disable-foo' + local config="" + + if ! use ncurses; then + config="${config} --disable-curses --disable-panel" + fi + + if ! use gps; then + # Note: gps support is automatically enabled based on the + # libs in RDEPEND - 2005-04-R1 doesn't honor the --disable-gps flag + config="${config} --disable-gps" + fi + + if use ethereal; then + cd ${WORKDIR}/ethereal-${ETHEREAL_VERSION}/wiretap + + econf \ + $(use_enable gtk2) \ + --disable-usr-local \ + || die "wiretap econf failed" + emake || die "wiretap emake failed" + + config="${config} --with-ethereal=${WORKDIR}/ethereal-${ETHEREAL_VERSION}" + cd ${S} + fi + + econf \ + ${config} \ + --with-linuxheaders=${KV_DIR}/include \ + || die "econf failed" + + emake dep || die "emake dep failed" + emake || die "emake failed" +} + +src_install () { + emake DESTDIR=${D} install || die "emake install failed" + + dodoc CHANGELOG README TODO docs/* + + newinitd ${FILESDIR}/${P}-init.d kismet + newconfd ${FILESDIR}/${P}-conf.d kismet +} |