mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-30 18:51:17 +02:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Copyright 1999-2010 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-wireless/rt2570/rt2570-1.1.0_beta2.ebuild,v 1.1 2006/08/16 21:55:11 steev Exp $
|
|
|
|
inherit eutils linux-mod
|
|
|
|
MY_P="${PN}-k2wrlz-${PV}"
|
|
DESCRIPTION="Driver for the RaLink RT2570 USB wireless chipset"
|
|
HOMEPAGE="http://rt2x00.serialmonkey.com"
|
|
SRC_URI="http://homepages.tu-darmstadt.de/~p_larbig/wlan/${MY_P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
KEYWORDS="~x86"
|
|
IUSE=""
|
|
DEPEND="net-wireless/wireless-tools"
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
MODULE_NAMES="rt2570(net:${S}/Module)"
|
|
|
|
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_compile() {
|
|
linux-mod_src_compile
|
|
}
|
|
|
|
src_install() {
|
|
linux-mod_src_install
|
|
|
|
dodoc IWPRIV_USAGE README TESTING THANKS FAQ CHANGELOG
|
|
}
|
|
|
|
pkg_postinst() {
|
|
linux-mod_pkg_postinst
|
|
|
|
elog "to set up the card you can use:"
|
|
elog "- iwconfig from wireless-tools"
|
|
elog "- iwpriv, like described in \"/usr/share/doc/${PF}/iwpriv_usage.txt.gz"\"
|
|
}
|