summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-02-10 12:06:00 +0000
committerChristian Heim <phreak@gentoo.org>2007-02-10 12:06:00 +0000
commitf72c1a32c53933d69a0e7f0ca04f338537f042d5 (patch)
treec72610c1037d8683a52d2a7b3be5b8b71095d4dc /net-wireless/wavemon/wavemon-0.4.0b-r2.ebuild
parentStable for HPPA (bug #165788). (diff)
downloadgentoo-2-f72c1a32c53933d69a0e7f0ca04f338537f042d5.tar.gz
gentoo-2-f72c1a32c53933d69a0e7f0ca04f338537f042d5.tar.bz2
gentoo-2-f72c1a32c53933d69a0e7f0ca04f338537f042d5.zip
Fixing compilation with kernel >= 2.6.19, thanks to Paul Healy <lmiphay at gmail.com> in #164743.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'net-wireless/wavemon/wavemon-0.4.0b-r2.ebuild')
-rw-r--r--net-wireless/wavemon/wavemon-0.4.0b-r2.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/net-wireless/wavemon/wavemon-0.4.0b-r2.ebuild b/net-wireless/wavemon/wavemon-0.4.0b-r2.ebuild
new file mode 100644
index 000000000000..a5fa6e773e26
--- /dev/null
+++ b/net-wireless/wavemon/wavemon-0.4.0b-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wavemon/wavemon-0.4.0b-r2.ebuild,v 1.1 2007/02/10 12:06:00 phreak Exp $
+
+inherit toolchain-funcs flag-o-matic eutils linux-info
+
+DESCRIPTION="Ncurses based monitor for IEEE 802.11 wireless LAN cards"
+HOMEPAGE="http://www.janmorgenstern.de/projects-software.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+IUSE=""
+DEPEND="sys-libs/ncurses"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}"/wavemon-gcc-fixes.patch
+ epatch "${FILESDIR}"/${P}-includes.patch
+
+ append-flags "-I${KV_DIR}/include"
+
+ sed -i \
+ -e "s|^CFLAGS=\".*\"|CFLAGS=\"${CFLAGS}\"|" \
+ "${S}"/configure
+}
+
+src_compile() {
+ CC=$(tc-getCC) econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/{man1,man5}
+
+ make prefix="${D}"/usr mandir="${D}"/usr/share/man install \
+ || die "make install failed"
+
+ dodoc AUTHORS Changelog README TODO
+}