# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs cvs linux-mod eutils DESCRIPTION="at76c503a is a Linux driver for the wlan USB adapter based on the Atmel at76c503 chip. It currently supports ad-hoc mode, infrastructure mode, and WEP. It supports adapters from Atmel, the Belkin F5D6050, Netgear MA101, and others." HOMEPAGE="http://at76c503a.berlios.de" SRC_URI="" LICENSE="GPL" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="usb" DEPEND="virtual/linux-sources" RDEPEND=">=sys-apps/hotplug-20040923 >=net-wireless/wireless-tools-26-r1" ECVS_AUTH="pserver" ECVS_SERVER="cvs.berlios.de:/cvsroot/at76c503a" ECVS_USER="anonymous" ECVS_PASS="" ECVS_MODULE="at76c503a" S="${WORKDIR}/${ECVS_MODULE}" MODULE_NAMES="at76_usbdfu(kernel/drivers/net/wireless/at76c503:) at76c503-i3861(kernel/drivers/net/wireless/at76c503:) at76c503-i3863(kernel/drivers/net/wireless/at76c503:) at76c503-rfmd-acc(kernel/drivers/net/wireless/at76c503:) at76c503-rfmd(kernel/drivers/net/wireless/at76c503:) at76c503(kernel/drivers/net/wireless/at76c503:) at76c505-rfmd(kernel/drivers/net/wireless/at76c503:) at76c505-rfmd2958(kernel/drivers/net/wireless/at76c503:) at76c505a-rfmd2958(kernel/drivers/net/wireless/at76c503:)" BUILD_PARAMS="KSRC=${KV_DIR}" BUILD_TARGETS="all" # Do we also need to load firmware? CONFIG_CHECK="NET_RADIO" NET_RADIO_ERROR="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." #FW_LOADER_ERROR="${P} requires Hotplug firmware loading support (CONFIG_FW_LOADER)." pkg_setup() { if linux_chkconfig_present NET_RADIO; then eerror "${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." die "NET_RADIO support not detected" fi linux-mod_pkg_setup } src_unpack() { cvs_src_unpack } src_install() { linux-mod_src_install dodoc README COPYING CHANGELOG } pkg_postinst() { einfo "Checking kernel module dependencies" test -r "${ROOT}/usr/src/linux/System.map" && \ depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV} einfo "" einfo "Please notice that all ${PN} modules are now installed to" einfo "/lib/modules/${KV}/kernel/drivers/net/wireless/at76c503/." einfo "" einfo "" einfo "If the module is not automatically loaded at startup," einfo "you may need to edit /etc/modules.autoload/kernel-2.6" einfo "and supply the module name that needs to load:" einfo "at76c503_i3861 for example" einfo "" ewarn "" ewarn "For more information on configuring the wireless card," ewarn "please visit: ${HOMEPAGE} and follow the instructions" ewarn "" }