Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273825 | Differences between
and this patch

Collapse All | Expand All

(-)a/usr/portage/net-wireless/kismet/kismet-2008.05.1.ebuild (-10 / +18 lines)
Lines 6-11 inherit toolchain-funcs linux-info eutils Link Here
6
6
7
MY_P=${P/\./-}
7
MY_P=${P/\./-}
8
MY_P=${MY_P/./-R}
8
MY_P=${MY_P/./-R}
9
MY_P=${MY_P/kismet/kismet-old}
9
S=${WORKDIR}/${MY_P}
10
S=${WORKDIR}/${MY_P}
10
11
11
DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
12
DESCRIPTION="IEEE 802.11 wireless LAN sniffer"
Lines 14-27 SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz" Link Here
14
15
15
LICENSE="GPL-2"
16
LICENSE="GPL-2"
16
SLOT="0"
17
SLOT="0"
17
KEYWORDS="amd64 ppc x86"
18
KEYWORDS="~amd64 ~ppc ~x86"
18
IUSE="dbus ncurses"
19
IUSE="dbus gps ncurses suid"
19
20
20
DEPEND="${RDEPEND}"
21
DEPEND="net-libs/libpcap
21
RDEPEND="net-wireless/wireless-tools
22
	net-libs/libpcap
23
	ncurses? ( sys-libs/ncurses )
22
	ncurses? ( sys-libs/ncurses )
24
	dbus? ( sys-apps/dbus )"
23
	dbus? ( sys-apps/dbus )
24
	gps? (	media-gfx/imagemagick
25
			dev-libs/gmp
26
			sys-libs/zlib )"
27
RDEPEND="net-wireless/wireless-tools ${DEPEND}"
25
28
26
src_unpack() {
29
src_unpack() {
27
	unpack ${A}
30
	unpack ${A}
Lines 33-46 src_unpack() { Link Here
33
	# Don't strip and set correct mangrp
36
	# Don't strip and set correct mangrp
34
	sed -i -e 's| -s||g' \
37
	sed -i -e 's| -s||g' \
35
		-e 's|@mangrp@|root|g' Makefile.in
38
		-e 's|@mangrp@|root|g' Makefile.in
36
37
	epatch "${FILESDIR}"/gcc-4.3.patch
38
}
39
}
39
40
40
src_compile() {
41
src_compile() {
41
	# the configure script only honors '--disable-foo'
42
	# the configure script only honors '--disable-foo'
42
	local myconf="--disable-gpsmap"
43
	local myconf
43
44
	if ! use gps ; then
45
		myconf="--disable-gpsmap"
46
	fi
44
	if ! use ncurses; then
47
	if ! use ncurses; then
45
		myconf="${myconf} --disable-curses --disable-panel"
48
		myconf="${myconf} --disable-curses --disable-panel"
46
	fi
49
	fi
Lines 58-63 src_compile() { Link Here
58
src_install () {
61
src_install () {
59
	emake DESTDIR="${D}" install || die "emake install failed"
62
	emake DESTDIR="${D}" install || die "emake install failed"
60
63
64
	if use suid ; then
65
		fperms 4755 /usr/bin/kismet_{server,drone} \
66
			|| die "could not install setuid binaries"
67
	fi
68
61
	dodoc CHANGELOG README TODO docs/*
69
	dodoc CHANGELOG README TODO docs/*
62
70
63
	newinitd "${FILESDIR}"/${PN}.initd kismet
71
	newinitd "${FILESDIR}"/${PN}.initd kismet

Return to bug 273825