# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-wireless/rt2500/rt2500-1.1.0_beta2-r2.ebuild,v 1.2 2005/06/27 07:36:05 dholm Exp $ inherit eutils linux-mod kde-functions set-qtdir 3 MY_P="${P/_beta/-b}" DESCRIPTION="Driver for the RaLink RT2500 wireless chipset" HOMEPAGE="http://rt2x00.serialmonkey.com" SRC_URI="http://rt2x00.serialmonkey.com/${MY_P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~x86" IUSE="qt" DEPEND="net-wireless/wireless-tools qt? ( >=x11-libs/qt-3 )" S=${WORKDIR}/${MY_P/-b*} MODULE_NAMES="rt2500(net:${S}/Module)" CONFIG_CHECK="NET_RADIO" MODULESD_RT2500_ALIASES=('ra? rt2500') pkg_setup() { linux-mod_pkg_setup if use_m then BUILD_PARAMS="-C ${KV_DIR} M=${S}/Module" BUILD_TARGETS="modules" else die "please use a kernel >=2.6.6" fi } src_unpack() { unpack ${A} cd ${S} kernel_is ge 2 6 12 && epatch ${FILESDIR}/rt2500-pci_name.patch } src_compile() { if useq qt; then cd ${S}/Utilitys qmake -o Makefile raconfig2500.pro emake || die "make Utilities failed" fi linux-mod_src_compile } src_install() { linux-mod_src_install use qt && dobin ${S}/Utilitys/RaConfig2500 insinto /etc/Wireless/RT2500STA doins Module/RT2500STA.dat dodoc Module/README Module/iwpriv_usage.txt LICENSE FAQ CHANGELOG } pkg_postinst() { linux-mod_pkg_postinst einfo "to set up the card you can use:" einfo "- iwconfig from wireless-tools" einfo '- iwpriv, like described in "/usr/share/doc/${PF}/iwpriv_usage.txt"' einfo '- /etc/Wireless/RT2500STA/RT2500STA.dat, like described in "/usr/share/doc/${PF}/README"' einfo "- RT2500 provided qt API: RaConfig2500" }