summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2005-10-01 14:42:37 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2005-10-01 14:42:37 +0000
commit71856bc9909aea3a8bf39519b09057a0a0b1ac99 (patch)
treed886d7dfd9e6e0d76978860924881a582b90b693 /net-wireless
parentAdded the local use flags of the new linux-wlan-ng-modules package. (diff)
downloadgentoo-2-71856bc9909aea3a8bf39519b09057a0a0b1ac99.tar.gz
gentoo-2-71856bc9909aea3a8bf39519b09057a0a0b1ac99.tar.bz2
gentoo-2-71856bc9909aea3a8bf39519b09057a0a0b1ac99.zip
Initial addition for the new split linux-wlan-ng ebuilds.
(Portage version: 2.0.52-r1)
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/linux-wlan-ng-firmware/ChangeLog11
-rw-r--r--net-wireless/linux-wlan-ng-firmware/Manifest4
-rw-r--r--net-wireless/linux-wlan-ng-firmware/files/digest-linux-wlan-ng-firmware-0.2.21
-rw-r--r--net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.2.patch25
-rw-r--r--net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.2.ebuild51
-rw-r--r--net-wireless/linux-wlan-ng-firmware/metadata.xml15
-rw-r--r--net-wireless/linux-wlan-ng-modules/ChangeLog11
-rw-r--r--net-wireless/linux-wlan-ng-modules/Manifest4
-rw-r--r--net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.21
-rw-r--r--net-wireless/linux-wlan-ng-modules/files/linux-wlan-ng-0.2.2-module_param.patch12
-rw-r--r--net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2.ebuild99
-rw-r--r--net-wireless/linux-wlan-ng-modules/metadata.xml15
12 files changed, 249 insertions, 0 deletions
diff --git a/net-wireless/linux-wlan-ng-firmware/ChangeLog b/net-wireless/linux-wlan-ng-firmware/ChangeLog
new file mode 100644
index 000000000000..58722ff8c548
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-firmware/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-wireless/linux-wlan-ng-firmware
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-firmware/ChangeLog,v 1.1 2005/10/01 14:38:31 betelgeuse Exp $
+
+*linux-wlan-ng-firmware-0.2.2 (01 Oct 2005)
+
+ 01 Oct 2005; Petteri Räty <betelgeuse@gentoo.org>
+ +files/prism2_makefile-0.2.2.patch, +metadata.xml,
+ +linux-wlan-ng-firmware-0.2.2.ebuild:
+ Initial addition for the new split linux-wlan-ng ebuilds.
+
diff --git a/net-wireless/linux-wlan-ng-firmware/Manifest b/net-wireless/linux-wlan-ng-firmware/Manifest
new file mode 100644
index 000000000000..460db6c03d1e
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-firmware/Manifest
@@ -0,0 +1,4 @@
+MD5 b3ec7f7ca1f168ba1556eefc4842202c linux-wlan-ng-firmware-0.2.2.ebuild 1123
+MD5 14539d26ec261bda643c0b9fa6098bdd metadata.xml 531
+MD5 94e34c91c524fe8f5ab35746a0448fb7 files/prism2_makefile-0.2.2.patch 850
+MD5 f24842a9d1aeeaa901a2423011ef3b38 files/digest-linux-wlan-ng-firmware-0.2.2 72
diff --git a/net-wireless/linux-wlan-ng-firmware/files/digest-linux-wlan-ng-firmware-0.2.2 b/net-wireless/linux-wlan-ng-firmware/files/digest-linux-wlan-ng-firmware-0.2.2
new file mode 100644
index 000000000000..5d45e8b8245e
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-firmware/files/digest-linux-wlan-ng-firmware-0.2.2
@@ -0,0 +1 @@
+MD5 54b11244fa50a85b31f21c64a8f259b7 linux-wlan-ng-0.2.2.tar.bz2 458937
diff --git a/net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.2.patch b/net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.2.patch
new file mode 100644
index 000000000000..fe9b544a854a
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-firmware/files/prism2_makefile-0.2.2.patch
@@ -0,0 +1,25 @@
+diff -ur linux-wlan-ng-0.2.2.old/src/prism2/Makefile linux-wlan-ng-0.2.2/src/prism2/Makefile
+--- linux-wlan-ng-0.2.2.old/src/prism2/Makefile 2005-09-15 23:00:43.113312384 +0300
++++ linux-wlan-ng-0.2.2/src/prism2/Makefile 2005-09-15 23:02:07.146537392 +0300
+@@ -58,7 +58,7 @@
+ rm -f core core.* *.o .*.o *.s *.a .depend tmp_make *~ tags
+ for i in *_obj; do if [ -d $$i ]; then rm -fr $$i; fi; done
+
+-install:
++install-firmware:
+ mkdir -p $(TARGET_ROOT_ON_HOST)/etc/wlan
+ cp shared.prism2 $(TARGET_ROOT_ON_HOST)/etc/wlan
+ mkdir -p $(TARGET_ROOT_ON_HOST)$(FIRMWARE_DIR)
+@@ -68,8 +68,12 @@
+ cp $$x $(TARGET_ROOT_ON_HOST)$(FIRMWARE_DIR)/prism2_`echo $$x | cut -c1-2`.hex ; \
+ fi; \
+ done
++
++install-recursive:
+ set -e; for d in $(DIRS); do $(MAKE) -C $$d install ; done
+
++install: install-recursive install-firmware
++
+ ctags:
+ ctags -R
+
diff --git a/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.2.ebuild b/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.2.ebuild
new file mode 100644
index 000000000000..5ff6a6ee5789
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-firmware/linux-wlan-ng-firmware-0.2.2.ebuild,v 1.1 2005/10/01 14:38:31 betelgeuse Exp $
+
+inherit eutils
+
+MY_P=${P/-firmware/}
+
+DESCRIPTION="Firmware for Prism2/2.5/3 based 802.11b wireless LAN products"
+HOMEPAGE="http://linux-wlan.org"
+SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.bz2"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/prism2_makefile-${PV}.patch
+}
+
+src_compile() {
+ local config=${S}/config.mk
+ echo TARGET_ROOT_ON_HOST=${D} >> ${config}
+ echo FIRMWARE_DIR=/lib/firmware >> ${config}
+}
+
+src_install() {
+ cd ${S}/src/prism2
+ make install-firmware || die "Failed to install firmware"
+}
+
+pkg_postinst() {
+ einfo "Firmware location has changed to ${ROOT}lib/firmware."
+ einfo "You can run ebuild <ebuild> config to delete"
+ einfo "The old files. Because of the default configuration file"
+ einfo "prorection the files are most likely left your system"
+ einfo "and are now useless."
+}
+
+pkg_config() {
+ rm -i ${ROOT}/etc/wlan/*.hex
+ rm -i ${ROOT}/etc/wlan/*.pda
+}
diff --git a/net-wireless/linux-wlan-ng-firmware/metadata.xml b/net-wireless/linux-wlan-ng-firmware/metadata.xml
new file mode 100644
index 000000000000..e5a6248b8798
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-firmware/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mobile</herd>
+<maintainer>
+ <email>betelgeuse@gentoo.org</email>
+ <name>Petteri Räty</name>
+</maintainer>
+<longdescription>
+Firmware for Intersil Prism2/2.5/3 based IEEE 802.11b wireless LAN products.
+These wireless cards need a separate firmware which is downloaded by the init
+script to the actual device using the prism2dl program in the linux-wlan-ng
+package.
+</longdescription>
+</pkgmetadata>
diff --git a/net-wireless/linux-wlan-ng-modules/ChangeLog b/net-wireless/linux-wlan-ng-modules/ChangeLog
new file mode 100644
index 000000000000..638a361494ca
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-wireless/linux-wlan-ng-modules
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/ChangeLog,v 1.1 2005/10/01 14:42:37 betelgeuse Exp $
+
+*linux-wlan-ng-modules-0.2.2 (01 Oct 2005)
+
+ 01 Oct 2005; Petteri Räty <betelgeuse@gentoo.org>
+ +files/linux-wlan-ng-0.2.2-module_param.patch, +metadata.xml,
+ +linux-wlan-ng-modules-0.2.2.ebuild:
+ Initial addition for the new split linux-wlan-ng ebuilds.
+
diff --git a/net-wireless/linux-wlan-ng-modules/Manifest b/net-wireless/linux-wlan-ng-modules/Manifest
new file mode 100644
index 000000000000..f6080753963b
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/Manifest
@@ -0,0 +1,4 @@
+MD5 8a5b464999c78e2b5e6fe9c25e76b38b linux-wlan-ng-modules-0.2.2.ebuild 2253
+MD5 bd46277fb8c768aa34612bb9cb43fe75 metadata.xml 571
+MD5 f24842a9d1aeeaa901a2423011ef3b38 files/digest-linux-wlan-ng-modules-0.2.2 72
+MD5 581c6aa56e352d9edfa2a935a23bcd0f files/linux-wlan-ng-0.2.2-module_param.patch 717
diff --git a/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.2 b/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.2
new file mode 100644
index 000000000000..5d45e8b8245e
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.2
@@ -0,0 +1 @@
+MD5 54b11244fa50a85b31f21c64a8f259b7 linux-wlan-ng-0.2.2.tar.bz2 458937
diff --git a/net-wireless/linux-wlan-ng-modules/files/linux-wlan-ng-0.2.2-module_param.patch b/net-wireless/linux-wlan-ng-modules/files/linux-wlan-ng-0.2.2-module_param.patch
new file mode 100644
index 000000000000..cf614c810e7c
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/files/linux-wlan-ng-0.2.2-module_param.patch
@@ -0,0 +1,12 @@
+diff -urp linux-wlan-ng-0.2.1/src/prism2/driver/prism2_cs.c linux-wlan-ng-0.2.1-module_param/src/prism2/driver/prism2_cs.c
+--- linux-wlan-ng-0.2.1/src/prism2/driver/prism2_cs.c 2005-07-20 19:16:55.000000000 +0200
++++ linux-wlan-ng-0.2.1-module_param/src/prism2/driver/prism2_cs.c 2005-08-24 21:41:34.000000000 +0200
+@@ -21,7 +21,7 @@ static u_int prism2_ignorevcc=0; /* Boo
+ * is set to and what the CIS
+ * says.
+ */
+-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) )
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)) && (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
+ #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,5))
+ static int numlist = 4;
+ module_param_array(irq_list, int, numlist, 0444);
diff --git a/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2.ebuild b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2.ebuild
new file mode 100644
index 000000000000..90c985480646
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2005 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.2.ebuild,v 1.1 2005/10/01 14:42:37 betelgeuse Exp $
+
+inherit eutils linux-mod
+
+MY_P=${P/-modules/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Kernel modules for Prism2/2.5/3 based 802.11b wireless LAN products"
+HOMEPAGE="http://linux-wlan.org"
+SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.bz2"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="debug pci pcmcia plx usb"
+
+BUILD_TARGETS="default"
+BUILD_PARAMS="WLAN_SRC=${S}/src"
+
+pkg_setup() {
+ # We have to put this to the global scope inside the function or it will be
+ # reset between functions because the ebuild is sourced many times.
+
+ MODULE_NAMES="p80211(net/wireless:${S}/src/p80211)"
+
+ if use pci; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_pci(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ if use plx; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_plx(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ if use pcmcia; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_cs(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ if use usb; then
+ MODULE_NAMES="${MODULE_NAMES} prism2_usb(net/wireless:${S}/src/prism2/driver)"
+ fi
+
+ linux-mod_pkg_setup
+}
+
+config_by_usevar() {
+ local config=${3}
+ [[ -z ${config} ]] && config=${S}/default.config
+
+ if use ${2}; then
+ echo "${1}=y" >> ${config}
+ else
+ echo "${1}=n" >> ${config}
+ fi
+}
+
+src_unpack() {
+ local config=${S}/default.config
+
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${MY_P}-module_param.patch
+
+ cp ${S}/config.in ${config}
+
+ echo "TARGET_ROOT_ON_HOST=${D}" >> ${config}
+ echo "LINUX_SRC=${KERNEL_DIR}" >> ${config}
+ echo "FIRMWARE_DIR=/lib/firmware/" >> ${config}
+
+ if use pcmcia && [[ -n "${PCMCIA_VERSION}" ]]; then
+ echo "PCMCIA_SRC=${PCMCIA_SOURCE_DIR}" >> ${config}
+ fi
+
+ config_by_usevar PRISM2_USB usb
+ config_by_usevar PRISM2_PCI pci
+ config_by_usevar PRISM2_PLX plx
+ config_by_usevar PRISM2_PCMCIA pcmcia
+ config_by_usevar WLAN_DEBUG debug
+
+ if kernel_is gt 2 4; then
+ echo "KERN_25=y" >> ${config}
+ fi
+
+ 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
+}
diff --git a/net-wireless/linux-wlan-ng-modules/metadata.xml b/net-wireless/linux-wlan-ng-modules/metadata.xml
new file mode 100644
index 000000000000..30dc9645d8f4
--- /dev/null
+++ b/net-wireless/linux-wlan-ng-modules/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mobile</herd>
+<maintainer>
+ <email>betelgeuse@gentoo.org</email>
+ <name>Petteri Räty</name>
+</maintainer>
+<longdescription>
+Kernel modules for Intersil Prism2/2.5/3 based IEEE 802.11b wireless LAN products.
+This package contains the kernel modules for the linux-wlan-ng project. The kernel
+modules are provided in a separate package so that they can be more easily re-emerged
+when the kernel is updated.
+</longdescription>
+</pkgmetadata>