From 5d65d52a7227128a8524fe1c9c0cf5ba5b10c2d1 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Sat, 15 Feb 2014 23:41:37 +0200 Subject: Addeed the wi-fi modules --- .../linux-wlan-ng-modules-0.2.5.ebuild | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.5.ebuild (limited to 'net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.5.ebuild') diff --git a/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.5.ebuild b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.5.ebuild new file mode 100644 index 00000000..3193b846 --- /dev/null +++ b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.5.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.5.ebuild,v 1.1 2006/10/08 19:09:23 betelgeuse Exp $ + +EAPI="2" + +inherit eutils linux-mod + +MY_PN=${PN/-modules/} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Kernel modules for Prism2/2.5/3 based 802.11b USB wireless LAN products" +HOMEPAGE="http://linux-wlan.org" +SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.bz2" + +LICENSE="|| ( GPL-2 MPL-1.1 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="debug" + +BUILD_TARGETS="default" +BUILD_PARAMS="WLAN_SRC=${S}/src" + +DEPEND="!> ${config} + else + echo "${1}=n" >> ${config} + fi +} + +src_prepare() { + local config="${S}"/default.config + + epatch "${FILESDIR}"/linux-wlan-0.2.3.packet.injection.patch + cp config.in ${config} + + echo "TARGET_ROOT_ON_HOST=${D}" >> ${config} + echo "LINUX_SRC=${KERNEL_DIR}" >> ${config} + echo "FIRMWARE_DIR=/lib/firmware/" >> ${config} + echo "PRISM2_PCI=n" >> ${config} + echo "PRISM2_PLX=n" >> ${config} + echo "PRISM2_PCMCIA=n" >> ${config} + echo "PRISM2_USB=y" >> ${config} + + config_by_usevar WLAN_DEBUG debug + + sed -i -e "s:dep modules:modules:" "${S}"/src/p80211/Makefile +} + +src_compile() { + set_arch_to_kernel + emake default_config || die "emake default_config failed" + set_arch_to_portage + + cd "${S}"/src/mkmeta + emake || die "emake mkmeta failed" + + linux-mod_src_compile +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "Support for pci, plx and pcmcia drivers has been removed in" + einfo "revision. For pci, plx and pcmcia drivers try for example" + einfo "the hostap-driver or orinoco drivers. They both work with the" + einfo "standard wireless tools." + einfo "" + einfo "If they do not work, please report this to betelgeuse@gentoo.org." +} -- cgit v1.2.3