diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-29 20:05:01 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-29 20:05:01 +0000 |
commit | 5102f3994141dd8734dcdfad1ae7f5baab75ff55 (patch) | |
tree | 4d8b8062c50bc155bd2f4ff309f073d445a35804 /net-wireless/ipw2100/ipw2100-1.1.2-r2.ebuild | |
parent | Add fix for WPA when using hwcrypto. Allow compiling against sys-kernel/suspe... (diff) | |
download | gentoo-2-5102f3994141dd8734dcdfad1ae7f5baab75ff55.tar.gz gentoo-2-5102f3994141dd8734dcdfad1ae7f5baab75ff55.tar.bz2 gentoo-2-5102f3994141dd8734dcdfad1ae7f5baab75ff55.zip |
Allow compiling against sys-kernel/suspend2-sources-2.6.13.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-wireless/ipw2100/ipw2100-1.1.2-r2.ebuild')
-rw-r--r-- | net-wireless/ipw2100/ipw2100-1.1.2-r2.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/net-wireless/ipw2100/ipw2100-1.1.2-r2.ebuild b/net-wireless/ipw2100/ipw2100-1.1.2-r2.ebuild new file mode 100644 index 000000000000..831aece08ce4 --- /dev/null +++ b/net-wireless/ipw2100/ipw2100-1.1.2-r2.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ipw2100-1.1.2-r2.ebuild,v 1.1 2005/08/29 20:05:01 brix Exp $ + +inherit eutils linux-mod + +# The following works with both pre-releases and releases +MY_P=${P/_/-} +S=${WORKDIR}/${MY_P} + +IEEE80211_VERSION="1.0.3" +FW_VERSION="1.3" + +DESCRIPTION="Driver for the Intel PRO/Wireless 2100 3B miniPCI adapter" +HOMEPAGE="http://ipw2100.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="debug" +DEPEND=">=net-wireless/ieee80211-${IEEE80211_VERSION}" +RDEPEND="${DEPEND} + =net-wireless/ipw2100-firmware-${FW_VERSION} + >=net-wireless/wireless-tools-27_pre23" + +BUILD_TARGETS="all" +MODULE_NAMES="ipw2100(net/wireless:)" +MODULESD_IPW2100_DOCS="README.ipw2100" + +CONFIG_CHECK="NET_RADIO FW_LOADER" +ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." +ERROR_FW_LOADER="${P} requires Hotplug firmware loading support (CONFIG_FW_LOADER)." + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is 2 4; then + die "${P} does not support building against kernel 2.4.x" + fi + + BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR} IEEE80211_INC=/usr/include" +} + +src_unpack() { + local debug="n" + + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-ieee80211-1.0.3.patch + epatch ${FILESDIR}/${P}-suspend2.patch + + use debug && debug="y" + sed -i -e "s:^\(CONFIG_IPW_DEBUG\)=.*:\1=$debug:" ${S}/Makefile +} + +src_compile() { + einfo + einfo "You may safely ignore any errors from compilation that contain" + einfo "warnings about undefined references to the ieee80211 subsystem." + einfo + + linux-mod_src_compile +} + +src_install() { + linux-mod_src_install + + dodoc CHANGES +} + +pkg_postinst() { + linux-mod_pkg_postinst + + if [ -f /lib/modules/${KV_FULL}/net/${PN}.ko ]; then + einfo + einfo "Modules from an earlier installation detected. You will need to manually" + einfo "remove those modules by running the following commands:" + einfo " # rm -f /lib/modules/${KV_FULL}/net/${PN}.ko" + einfo " # rm -f /lib/modules/${KV_FULL}/net/ieee80211*.ko" + einfo " # depmod -a" + einfo + fi +} |