diff options
-rw-r--r-- | net-wireless/ieee80211/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/ieee80211/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/ieee80211/files/digest-ieee80211-1.1.8 | 1 | ||||
-rw-r--r-- | net-wireless/ieee80211/ieee80211-1.1.8.ebuild | 86 | ||||
-rw-r--r-- | net-wireless/ipw2100/ChangeLog | 9 | ||||
-rw-r--r-- | net-wireless/ipw2100/Manifest | 38 | ||||
-rw-r--r-- | net-wireless/ipw2100/files/digest-ipw2100-1.1.4 | 1 | ||||
-rw-r--r-- | net-wireless/ipw2100/ipw2100-1.1.4.ebuild | 94 | ||||
-rw-r--r-- | net-wireless/ipw2200/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/ipw2200/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/ipw2200/files/digest-ipw2200-1.0.10 | 1 | ||||
-rw-r--r-- | net-wireless/ipw2200/ipw2200-1.0.10.ebuild | 98 |
12 files changed, 328 insertions, 24 deletions
diff --git a/net-wireless/ieee80211/ChangeLog b/net-wireless/ieee80211/ChangeLog index 3602575be337..81d1bdb28b54 100644 --- a/net-wireless/ieee80211/ChangeLog +++ b/net-wireless/ieee80211/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/ieee80211 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ChangeLog,v 1.21 2006/01/08 13:09:19 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ChangeLog,v 1.22 2006/01/09 11:24:29 brix Exp $ + +*ieee80211-1.1.8 (09 Jan 2006) + + 09 Jan 2006; Henrik Brix Andersen <brix@gentoo.org> + +ieee80211-1.1.8.ebuild: + Version bump. 08 Jan 2006; Henrik Brix Andersen <brix@gentoo.org> ieee80211-1.1.7.ebuild: diff --git a/net-wireless/ieee80211/Manifest b/net-wireless/ieee80211/Manifest index 996f86aaccf6..c148d3efde4e 100644 --- a/net-wireless/ieee80211/Manifest +++ b/net-wireless/ieee80211/Manifest @@ -1,4 +1,4 @@ -MD5 4b60bbc5463b199dfb258d7392742778 ChangeLog 3646 +MD5 ad8aea367d9494a5f3b662158b36b74e ChangeLog 3776 MD5 cc0dea5fff30f8ea5fe5e62a749115d3 files/digest-ieee80211-1.0.1 63 MD5 affd67ec6900c1e7f9c123969f709181 files/digest-ieee80211-1.0.2 63 MD5 777627671d6848e14270d9f65d9d0be6 files/digest-ieee80211-1.0.3 63 @@ -8,6 +8,7 @@ MD5 27f61bbea47540d198a62c715e33a5b4 files/digest-ieee80211-1.1.5 63 MD5 27f61bbea47540d198a62c715e33a5b4 files/digest-ieee80211-1.1.5-r1 63 MD5 9501aacea3c39a93671e12bdcd199254 files/digest-ieee80211-1.1.6 63 MD5 0df9ca80228d166621f6d0ed424cd6a8 files/digest-ieee80211-1.1.7 63 +MD5 5cf798889745b65cb107070ad36c513c files/digest-ieee80211-1.1.8 63 MD5 03afa38292ff5bbcc62500c4b6163888 files/ieee80211-1.0.3-broadcast.patch 622 MD5 f6533e7149d244dd72eb444853266a8f files/ieee80211-1.0.3-keep_restricted_bit.patch 1220 MD5 d2bada5c8bb423cb02a88cc4f0011d39 files/ieee80211-1.0.3-open_frag.patch 2638 @@ -23,4 +24,5 @@ MD5 71c6e2c242e709e0649b534c96736d25 ieee80211-1.1.5-r1.ebuild 2872 MD5 49f0d303a477f0b091dd498e02576a5b ieee80211-1.1.5.ebuild 2828 MD5 42dbbe85c5f5dd959a3da2fa12c4df9e ieee80211-1.1.6.ebuild 2779 MD5 0dadded27c72eb389fecc48bc9b94604 ieee80211-1.1.7.ebuild 2787 +MD5 53f24436d9cd3c70f83b2226f872d6d4 ieee80211-1.1.8.ebuild 2677 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 diff --git a/net-wireless/ieee80211/files/digest-ieee80211-1.1.8 b/net-wireless/ieee80211/files/digest-ieee80211-1.1.8 new file mode 100644 index 000000000000..e982d23bfebd --- /dev/null +++ b/net-wireless/ieee80211/files/digest-ieee80211-1.1.8 @@ -0,0 +1 @@ +MD5 ed957e4c8b4b683e4fd5f1a4c7787b88 ieee80211-1.1.8.tgz 64977 diff --git a/net-wireless/ieee80211/ieee80211-1.1.8.ebuild b/net-wireless/ieee80211/ieee80211-1.1.8.ebuild new file mode 100644 index 000000000000..22b6eea7f212 --- /dev/null +++ b/net-wireless/ieee80211/ieee80211-1.1.8.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ieee80211-1.1.8.ebuild,v 1.1 2006/01/09 11:24:29 brix Exp $ + +inherit linux-mod + +# The following works with both pre-releases and releases +MY_P=${P/_/-} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Generic IEEE 802.11 network subsystem for Linux" +HOMEPAGE="http://ieee80211.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="!<=net-wireless/ipw2100-1.1.0 + !<=net-wireless/ipw2200-1.0.4" +RDEPEND="${DEPEND}" + +IUSE="debug" +BUILD_TARGETS="all" +MODULE_NAMES="ieee80211(net/ieee80211:) + ieee80211_crypt(net/ieee80211:) + ieee80211_crypt_wep(net/ieee80211:) + ieee80211_crypt_ccmp(net/ieee80211:) + ieee80211_crypt_tkip(net/ieee80211:)" + +CONFIG_CHECK="NET_RADIO CRYPTO_ARC4 CRYPTO_MICHAEL_MIC CRC32 !IEEE80211" +ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." +ERROR_CRYPTO_ARC4="${P} requires support for ARC4 cipher algorithm (CONFIG_CRYPTO_ARC4)." +ERROR_CRYPTO_MICHAEL_MIC="${P} requires support for Michael MIC keyed digest algorithm (CONFIG_CRYPTO_MICHAEL_MIC)." +ERROR_CRC32="${P} requires support for CRC32 functions (CONFIG_CRC32)." +ERROR_IEEE80211="${P} requires the in-kernel version of the IEEE802.11 subsystem to be disabled (CONFIG_IEEE80211)" + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is 2 4; then + die "${P} does not support building against kernel 2.4.x" + fi + + if [[ -f ${KV_DIR}/include/net/ieee80211.h ]] || \ + [[ -f ${KV_DIR}/include/config/ieee80211.h ]]; then + eerror + eerror "Your kernel source contains an incompatible version of the" + eerror "ieee80211 subsystem, which needs to be removed before" + eerror "${P} can be installed. This can be accomplished by running:" + eerror + eerror " # /bin/sh ${FILESDIR}/remove-old ${KV_DIR}" + eerror + eerror "Please note that this will make it impossible to use some of the" + eerror "in-kernel IEEE 802.11 wireless LAN drivers (eg. orinoco)." + eerror + die "Incompatible in-kernel ieee80211 subsystem detected" + fi + + if ! (linux_chkconfig_present CRYPTO_AES_586 || \ + linux_chkconfig_present CRYPTO_AES_X86_64 || \ + linux_chkconfig_present CRYPTO_AES); then + eerror "${P} requires support for AES cipher algorithms." + die "CONFIG_CRYPTO_AES{_586,_X86_64} support not detected" + fi + + BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR}" +} + +src_unpack() { + local debug="n" + + unpack ${A} + + use debug && debug="y" + sed -i -e "s:^\(CONFIG_IEEE80211_DEBUG\)=.*:\1=${debug}:" ${S}/Makefile || die +} + +src_install() { + linux-mod_src_install + + insinto /usr/include/net + doins net/*.h + + dodoc CHANGES +} diff --git a/net-wireless/ipw2100/ChangeLog b/net-wireless/ipw2100/ChangeLog index 62a59287efa8..70877dccd0f5 100644 --- a/net-wireless/ipw2100/ChangeLog +++ b/net-wireless/ipw2100/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-wireless/ipw2100 -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ChangeLog,v 1.86 2005/11/17 13:37:56 brix Exp $ +# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ChangeLog,v 1.87 2006/01/09 11:26:12 brix Exp $ + +*ipw2100-1.1.4 (09 Jan 2006) + + 09 Jan 2006; Henrik Brix Andersen <brix@gentoo.org> +ipw2100-1.1.4.ebuild: + Version bump. 17 Nov 2005; Henrik Brix Andersen <brix@gentoo.org> ipw2100-1.1.3.ebuild: Stable on x86. diff --git a/net-wireless/ipw2100/Manifest b/net-wireless/ipw2100/Manifest index f17baec524fd..9bd3ecd16d74 100644 --- a/net-wireless/ipw2100/Manifest +++ b/net-wireless/ipw2100/Manifest @@ -1,27 +1,29 @@ -MD5 b127f38ac73f49d85ec8df711c7f0b83 ipw2100-1.1.0.ebuild 2303 -MD5 7d314c34f4c0162303042f8b0cbc7748 ipw2100-1.1.2-r2.ebuild 2231 -MD5 a676f6646db638eab14c1a2b811ddefb ipw2100-1.1.2.ebuild 2124 -MD5 0863db88acaaa293aeec4d9e4d8f1097 ipw2100-1.1.2-r1.ebuild 2190 -MD5 b798c8a8a65771fb6b6bb0414f4f2517 ipw2100-1.1.1.ebuild 2124 -MD5 503ac0542a37610b7eb0774ab6ec7606 ChangeLog 16125 -MD5 34d7b8dcda1eaeb4cc5903bfffb26794 ipw2100-1.1.2-r3.ebuild 2778 -MD5 172db10566470c8f64b5911609a8e5f9 metadata.xml 318 -MD5 c32c1e1a4a1d8797a8663db73c4cebe4 ipw2100-1.0.5.ebuild 2296 -MD5 97d078d03bd32ae3d3e737865ac4a19b ipw2100-1.1.3.ebuild 2656 -MD5 5fb2369d48eb758371baed2ff166ce10 files/ipw2100-1.1.0-suspend2.patch 1173 -MD5 e3ac3c935a2afc27702212a21d03c40d files/ipw2100-1.1.2-pci_link-fix.patch 1816 -MD5 35e41d40e65c6248a9b9ed4d76d671d2 files/ipw2100-1.0.5-is_multicast_ether_addr.patch 631 -MD5 79fa87fed06e080137f107efa9313208 files/ipw2100-1.1.2-header_data-fix.patch 900 +MD5 70134b73b8fceca1c2a6d966a6f99bd1 ChangeLog 16249 MD5 fa1d9b13fc88f31abe34565753ff0b90 files/digest-ipw2100-1.0.5 62 MD5 8c080b5455def312dc8b8fb2da3ffa12 files/digest-ipw2100-1.1.0 62 MD5 b42adf38a171429000f5d3e54bc190c4 files/digest-ipw2100-1.1.1 61 MD5 b99dfc5774c917655aa0b61b35a8e985 files/digest-ipw2100-1.1.2 61 -MD5 a2710d2b53f18e1009a57175de157a6d files/digest-ipw2100-1.1.3 62 -MD5 45b8329213881abb9eb1569b92b1c080 files/ipw2100-1.0.5-suspend2.patch 1173 -MD5 fd4652f3d313404bf302ab38fc73f645 files/ipw2100-1.1.2-suspend2.patch 599 -MD5 1d5956b3a796c4efc0ff535405df4e66 files/ipw2100-1.1.2-ieee80211-1.0.3.patch 437 MD5 b99dfc5774c917655aa0b61b35a8e985 files/digest-ipw2100-1.1.2-r1 61 MD5 b99dfc5774c917655aa0b61b35a8e985 files/digest-ipw2100-1.1.2-r2 61 MD5 b99dfc5774c917655aa0b61b35a8e985 files/digest-ipw2100-1.1.2-r3 61 +MD5 a2710d2b53f18e1009a57175de157a6d files/digest-ipw2100-1.1.3 62 +MD5 130019ef74064b072c141fa049af835f files/digest-ipw2100-1.1.4 62 +MD5 35e41d40e65c6248a9b9ed4d76d671d2 files/ipw2100-1.0.5-is_multicast_ether_addr.patch 631 +MD5 45b8329213881abb9eb1569b92b1c080 files/ipw2100-1.0.5-suspend2.patch 1173 MD5 963a9937088ce7886c88a7553921d142 files/ipw2100-1.1.0-is_multicast_ether_addr.patch 695 +MD5 5fb2369d48eb758371baed2ff166ce10 files/ipw2100-1.1.0-suspend2.patch 1173 +MD5 79fa87fed06e080137f107efa9313208 files/ipw2100-1.1.2-header_data-fix.patch 900 +MD5 1d5956b3a796c4efc0ff535405df4e66 files/ipw2100-1.1.2-ieee80211-1.0.3.patch 437 +MD5 e3ac3c935a2afc27702212a21d03c40d files/ipw2100-1.1.2-pci_link-fix.patch 1816 +MD5 fd4652f3d313404bf302ab38fc73f645 files/ipw2100-1.1.2-suspend2.patch 599 MD5 7e2f662229c1ed03903fbcc2d7fae3dc files/ipw2100-1.1.2-wext-crash.patch 742 +MD5 c32c1e1a4a1d8797a8663db73c4cebe4 ipw2100-1.0.5.ebuild 2296 +MD5 b127f38ac73f49d85ec8df711c7f0b83 ipw2100-1.1.0.ebuild 2303 +MD5 b798c8a8a65771fb6b6bb0414f4f2517 ipw2100-1.1.1.ebuild 2124 +MD5 0863db88acaaa293aeec4d9e4d8f1097 ipw2100-1.1.2-r1.ebuild 2190 +MD5 7d314c34f4c0162303042f8b0cbc7748 ipw2100-1.1.2-r2.ebuild 2231 +MD5 34d7b8dcda1eaeb4cc5903bfffb26794 ipw2100-1.1.2-r3.ebuild 2778 +MD5 a676f6646db638eab14c1a2b811ddefb ipw2100-1.1.2.ebuild 2124 +MD5 97d078d03bd32ae3d3e737865ac4a19b ipw2100-1.1.3.ebuild 2656 +MD5 460bc7f61b396806f8c638467fce9e80 ipw2100-1.1.4.ebuild 2556 +MD5 172db10566470c8f64b5911609a8e5f9 metadata.xml 318 diff --git a/net-wireless/ipw2100/files/digest-ipw2100-1.1.4 b/net-wireless/ipw2100/files/digest-ipw2100-1.1.4 new file mode 100644 index 000000000000..8453fe49442a --- /dev/null +++ b/net-wireless/ipw2100/files/digest-ipw2100-1.1.4 @@ -0,0 +1 @@ +MD5 4f762f0f65d9f45c763f8efb0fdbf2bb ipw2100-1.1.4.tgz 104312 diff --git a/net-wireless/ipw2100/ipw2100-1.1.4.ebuild b/net-wireless/ipw2100/ipw2100-1.1.4.ebuild new file mode 100644 index 000000000000..1dfabebdb8e2 --- /dev/null +++ b/net-wireless/ipw2100/ipw2100-1.1.4.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ipw2100-1.1.4.ebuild,v 1.1 2006/01/09 11:26:12 brix Exp $ + +inherit linux-mod + +# The following works with both pre-releases and releases +MY_P=${P/_/-} +S=${WORKDIR}/${MY_P} + +IEEE80211_VERSION="1.1.8" +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 !IPW2100" +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)." +ERROR_IPW2100="${P} requires the in-kernel version of the IPW2100 driver to be disabled (CONFIG_IPW2100)" + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is 2 4; then + die "${P} does not support building against kernel 2.4.x" + fi + + if [[ ! -f /lib/modules/${KV_FULL}/net/ieee80211/ieee80211.${KV_OBJ} ]]; then + eerror + eerror "Looks like you forgot to remerge net-wireless/ieee80211 after" + eerror "upgrading your kernel." + eerror + eerror "Hint: use sys-kernel/module-rebuild for keeping track of which" + eerror "modules needs to be remerged after a kernel upgrade." + eerror + die "/lib/modules/${KV_FULL}/net/ieee80211/ieee80211.${KV_OBJ} not found" + fi + + BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR} IEEE80211_INC=/usr/include" +} + +src_unpack() { + local debug="n" + + unpack ${A} + + use debug && debug="y" + sed -i -e "s:^\(CONFIG_IPW_DEBUG\)=.*:\1=$debug:" ${S}/Makefile +} + +src_compile() { + linux-mod_src_compile + + einfo + einfo "You may safely ignore any warnings from above compilation about" + einfo "undefined references to the ieee80211 subsystem." + einfo +} + +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 +} diff --git a/net-wireless/ipw2200/ChangeLog b/net-wireless/ipw2200/ChangeLog index 3947efea40c8..6d3fd5a95fa2 100644 --- a/net-wireless/ipw2200/ChangeLog +++ b/net-wireless/ipw2200/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/ipw2200 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2200/ChangeLog,v 1.52 2006/01/06 12:29:06 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2200/ChangeLog,v 1.53 2006/01/09 11:27:36 brix Exp $ + +*ipw2200-1.0.10 (09 Jan 2006) + + 09 Jan 2006; Henrik Brix Andersen <brix@gentoo.org> + +ipw2200-1.0.10.ebuild: + Version bump. *ipw2200-1.0.9 (06 Jan 2006) diff --git a/net-wireless/ipw2200/Manifest b/net-wireless/ipw2200/Manifest index 9f43c47aee44..743c7a52cb44 100644 --- a/net-wireless/ipw2200/Manifest +++ b/net-wireless/ipw2200/Manifest @@ -1,5 +1,6 @@ -MD5 af1310228aafbfd3fa2a8667aae19327 ChangeLog 9385 +MD5 5a18b69ae52508e8086387949cd2f27d ChangeLog 9513 MD5 d2a1aca212498ad4de9f4a79ac12026b files/digest-ipw2200-1.0.1 62 +MD5 0366dc766d77664dcfbe0f210a501c6a files/digest-ipw2200-1.0.10 63 MD5 1953868cbb8ae6ee8eee55c5848417ab files/digest-ipw2200-1.0.3 62 MD5 bcf142294729f1a55d7b3fd29c1a8239 files/digest-ipw2200-1.0.4 62 MD5 0bc9168b6730de57fff46a22dacc8ea4 files/digest-ipw2200-1.0.5 62 @@ -37,6 +38,7 @@ MD5 a2de4d35e783a2aae5708846d8a7637c files/ipw2200-1.0.8-slabcorrupt.patch 522 MD5 dd96f1bc93f2c8f03a81b87f641a5329 files/ipw2200-1.0.8-txbusy.patch 811 MD5 e994df0999ba085974a28e98e317f702 files/ipw2200-1.0.9-qos.patch 918 MD5 a1d82c4728a3f608b762fe63c4910f42 ipw2200-1.0.1.ebuild 2488 +MD5 6ecb47f12687e249ee1dd90044251ccd ipw2200-1.0.10.ebuild 2782 MD5 b2138b76ba85eeea301d8fa9f72470df ipw2200-1.0.3.ebuild 2488 MD5 03551f14b4409796623fb865ed2abf97 ipw2200-1.0.4.ebuild 2449 MD5 8a1b21691e17dc6de38c7238cd4e4522 ipw2200-1.0.5.ebuild 2145 diff --git a/net-wireless/ipw2200/files/digest-ipw2200-1.0.10 b/net-wireless/ipw2200/files/digest-ipw2200-1.0.10 new file mode 100644 index 000000000000..a56de9b9c0da --- /dev/null +++ b/net-wireless/ipw2200/files/digest-ipw2200-1.0.10 @@ -0,0 +1 @@ +MD5 c9d7e49a82a0398f88db4222033ae434 ipw2200-1.0.10.tgz 125280 diff --git a/net-wireless/ipw2200/ipw2200-1.0.10.ebuild b/net-wireless/ipw2200/ipw2200-1.0.10.ebuild new file mode 100644 index 000000000000..9fe7772703ea --- /dev/null +++ b/net-wireless/ipw2200/ipw2200-1.0.10.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2200/ipw2200-1.0.10.ebuild,v 1.1 2006/01/09 11:27:36 brix Exp $ + +inherit linux-mod + +# The following works with both pre-releases and releases +MY_P=${P/_/-} +S=${WORKDIR}/${MY_P} + +IEEE80211_VERSION="1.1.8" +FW_VERSION="2.4" + +DESCRIPTION="Driver for the Intel PRO/Wireless 2200BG/2915ABG miniPCI and 2225BG PCI adapters" +HOMEPAGE="http://ipw2200.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="debug radiotap" +DEPEND=">=net-wireless/ieee80211-${IEEE80211_VERSION} + sys-apps/sed" +RDEPEND=">=net-wireless/ieee80211-${IEEE80211_VERSION} + =net-wireless/ipw2200-firmware-${FW_VERSION} + net-wireless/wireless-tools" + +BUILD_TARGETS="all" +MODULE_NAMES="ipw2200(net/wireless:)" +MODULESD_IPW2200_DOCS="README.ipw2200" + +CONFIG_CHECK="NET_RADIO FW_LOADER !IPW2200" +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)." +ERROR_IPW2200="${P} requires the in-kernel version of the IPW2200 driver to be disabled (CONFIG_IPW2200)" + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is 2 4; then + die "${P} does not support building against kernel 2.4.x" + fi + + if [[ ! -f /lib/modules/${KV_FULL}/net/ieee80211/ieee80211.${KV_OBJ} ]]; then + eerror + eerror "Looks like you forgot to remerge net-wireless/ieee80211 after" + eerror "upgrading your kernel." + eerror + eerror "Hint: use sys-kernel/module-rebuild for keeping track of which" + eerror "modules needs to be remerged after a kernel upgrade." + eerror + die "/lib/modules/${KV_FULL}/net/ieee80211/ieee80211.${KV_OBJ} not found" + fi + + BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR} IEEE80211_INC=/usr/include" +} + +src_unpack() { + local debug="n" radiotap="n" + + unpack ${A} + + use debug && debug="y" + sed -i -e "s:^\(CONFIG_IPW_DEBUG\)=.*:\1=${debug}:" ${S}/Makefile || die + + use radiotap && radiotap="y" + sed -i -e "s:^#\(CONFIG_IEEE80211_RADIOTAP\)=.*:\1=${radiotap}:" ${S}/Makefile || die +} + +src_compile() { + linux-mod_src_compile + + einfo + einfo "You may safely ignore any warnings from above compilation about" + einfo "undefined references to the ieee80211 subsystem." + einfo +} + +src_install() { + linux-mod_src_install + + dodoc CHANGES ISSUES +} + +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 +} |