Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203153 - net-wireless/kismet ~x86-fbsd keyword + patch
Summary: net-wireless/kismet ~x86-fbsd keyword + patch
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 FreeBSD
: High enhancement (vote)
Assignee: Gentoo x86 FreeBSD Team
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on:
Blocks:
 
Reported: 2007-12-23 17:17 UTC by f.mensik
Modified: 2013-06-26 17:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description f.mensik 2007-12-23 17:17:50 UTC
please, can you add "~x86-fbsd" keyword into:
net-wireless/kismet/kismet-2007.01.1b.ebuild

the patch file is also included

I have tested to build kismet in Gentoo/FreeBSD running on x86

Reproducible: Always




--- kismet-2007.01.1b.ebuild	2007-11-23 12:31:23 +0100
+++ kismet-2007.01.1b.ebuild.new	2007-12-18 11:41:14 +0100
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/kismet-2007.01.1b.ebuild,v 1.5 2007/03/17 17:52:02 beandog Exp $
 
-inherit toolchain-funcs linux-info eutils
+inherit toolchain-funcs eutils
+[ "${KERNEL}" = "linux" ] && inherit linux-info
 
 MY_P=${P/\./-}
 MY_P=${MY_P/./-R}
@@ -14,18 +15,20 @@
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ppc x86"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
 IUSE="ncurses"
 
 DEPEND="${RDEPEND}"
-RDEPEND="net-wireless/wireless-tools
+RDEPEND="kernel_linux? ( net-wireless/wireless-tools )
 	net-libs/libpcap
 	ncurses? ( sys-libs/ncurses )"
 
 src_unpack() {
 	unpack ${A}
 
-	epatch "${FILESDIR}"/${P}-Makefile.in.patch
+	if [ "${KERNEL}" = "linux" ]; then
+		epatch "${FILESDIR}"/${P}-Makefile.in.patch
+	fi
 
 	sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
 		"${S}"/conf/kismet.conf.in
@@ -42,8 +45,11 @@
 		myconf="${myconf} --disable-curses --disable-panel"
 	fi
 
-	econf ${myconf} \
-		--with-linuxheaders="${KV_DIR}" || die "econf failed"
+	if [ "${KERNEL}" = "linux" ]; then
+		myconf="${myconf} --with-linuxheaders="${KV_DIR}""
+	fi
+
+	econf ${myconf} || die "econf failed"
 
 	emake dep || die "emake dep failed"
 	emake || die "emake failed"
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2010-04-17 02:20:57 UTC
Would you mind giving 2010.01.1-r1 a try?
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2012-07-23 17:22:05 UTC
(In reply to comment #1)
> Would you mind giving 2010.01.1-r1 a try?

Would you mind giving 2011.03.2-r3 a try? it is the most recent stable and aside from some minor ebuild changes I believe it should work fine.

Thanks!