diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2004-12-10 17:03:00 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2004-12-10 17:03:00 +0000 |
commit | 1c278bf6feedb784817dedb5ab08bc6e066ee1d4 (patch) | |
tree | bbbfcac03ef7152a4aeb61a28fa74d4423135a25 /net-wireless/hostap-driver | |
parent | ver bump (diff) | |
download | historical-1c278bf6feedb784817dedb5ab08bc6e066ee1d4.tar.gz historical-1c278bf6feedb784817dedb5ab08bc6e066ee1d4.tar.bz2 historical-1c278bf6feedb784817dedb5ab08bc6e066ee1d4.zip |
Pruned ancient versions.
Diffstat (limited to 'net-wireless/hostap-driver')
-rw-r--r-- | net-wireless/hostap-driver/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/digest-hostap-driver-0.1.1 | 1 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2 | 1 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2-r1 | 1 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/digest-hostap-driver-0.1.3 | 6 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/hostap-driver-0.1.3.firmware.diff.bz2 | bin | 591 -> 0 bytes | |||
-rw-r--r-- | net-wireless/hostap-driver/hostap-driver-0.1.1.ebuild | 108 | ||||
-rw-r--r-- | net-wireless/hostap-driver/hostap-driver-0.1.2-r1.ebuild | 110 | ||||
-rw-r--r-- | net-wireless/hostap-driver/hostap-driver-0.1.2.ebuild | 108 | ||||
-rw-r--r-- | net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild | 112 |
10 files changed, 7 insertions, 448 deletions
diff --git a/net-wireless/hostap-driver/ChangeLog b/net-wireless/hostap-driver/ChangeLog index d5a3fb6d1d1b..b5b9df8a2c6c 100644 --- a/net-wireless/hostap-driver/ChangeLog +++ b/net-wireless/hostap-driver/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/hostap-driver # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/ChangeLog,v 1.21 2004/11/29 17:41:10 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/ChangeLog,v 1.22 2004/12/10 17:03:00 brix Exp $ + + 10 Dec 2004; Henrik Brix Andersen <brix@gentoo.org> + -files/hostap-driver-0.1.3.firmware.diff.bz2, -hostap-driver-0.1.1.ebuild, + -hostap-driver-0.1.2-r1.ebuild, -hostap-driver-0.1.2.ebuild, + -hostap-driver-0.1.3.ebuild: + Pruned ancient versions. 29 Nov 2004; Wolfram Schlich <wschlich@gentoo.org> metadata.xml, hostap-driver-0.2.5-r1.ebuild: diff --git a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.1 b/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.1 deleted file mode 100644 index 0b39ecb78a6a..000000000000 --- a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 ad7359ce5e749c1449acbcb10c2ee90c hostap-driver-0.1.1.tar.gz 167690 diff --git a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2 b/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2 deleted file mode 100644 index f805ddce209b..000000000000 --- a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2 +++ /dev/null @@ -1 +0,0 @@ -MD5 48dc3ddd8a8b1d47002b54f7a8fee7da hostap-driver-0.1.2.tar.gz 168410 diff --git a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2-r1 b/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2-r1 deleted file mode 100644 index f805ddce209b..000000000000 --- a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.2-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 48dc3ddd8a8b1d47002b54f7a8fee7da hostap-driver-0.1.2.tar.gz 168410 diff --git a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.3 b/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.3 deleted file mode 100644 index 61b45fe5eef6..000000000000 --- a/net-wireless/hostap-driver/files/digest-hostap-driver-0.1.3 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 44dbc0a8978fe618eee242b0bd25392c pcmcia-cs-3.2.5.tar.gz 1266494 -MD5 33325ed642b5277a9695d10bd19b3d7a pcmcia-cs-3.2.5-module-init-tools.diff.gz 460 -MD5 ee4f8227cc28f9a29a609f6e9561ef54 pcmcia-cs-3.2.5-SMP-fix.diff.gz 320 -MD5 2b2cba3fdd498b001ea3c27d8b2da31b pcmcia-cs-3.2.5-3.2.6.diff.gz 23034 -MD5 f2feda5eb46c1a2b99ae9db274879afc pcmcia-cs-3.2.5-3.2.7.diff.gz 28244 -MD5 f729811b572f9c9ffd39b7b9e6c63892 hostap-driver-0.1.3.tar.gz 169700 diff --git a/net-wireless/hostap-driver/files/hostap-driver-0.1.3.firmware.diff.bz2 b/net-wireless/hostap-driver/files/hostap-driver-0.1.3.firmware.diff.bz2 Binary files differdeleted file mode 100644 index 37f530b9b161..000000000000 --- a/net-wireless/hostap-driver/files/hostap-driver-0.1.3.firmware.diff.bz2 +++ /dev/null diff --git a/net-wireless/hostap-driver/hostap-driver-0.1.1.ebuild b/net-wireless/hostap-driver/hostap-driver-0.1.1.ebuild deleted file mode 100644 index 3a0f75f57c9a..000000000000 --- a/net-wireless/hostap-driver/hostap-driver-0.1.1.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.1.1.ebuild,v 1.7 2004/11/01 11:49:36 brix Exp $ - -inherit toolchain-funcs eutils - -DESCRIPTION="HostAP wireless drivers" -HOMEPAGE="http://hostap.epitest.fi/" -SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" -IUSE="pcmcia hostap-nopci hostap-noplx" -DEPEND=">=net-wireless/wireless-tools-25 - pcmcia? ( >=sys-apps/pcmcia-cs-3.2.1 )" -S="${WORKDIR}/${P}" -LIB_PATH="/lib/modules/${KV}" - -src_unpack() { - check_KV - unpack ${A} - cd "${S}" - - ## set compiler options - sed -i -e "s:gcc:$(tc-getCC):" "${S}/Makefile" - # sed -i -e "s:-O2:${CFLAGS}:" "${S}/Makefile" # improper CFLAGS could cause unresolved symbols in the modules - - ## fix for new coreutils (#31801) - sed -i -e "s:tail -1:tail -n 1:" "${S}/Makefile" - - ## use pcmcia-cs sources if kernel tree pcmcia support is disabled and USE=pcmcia is set - if use pcmcia >&/dev/null; then - if egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null; then - einfo "Kernel PCMCIA is enabled, skipping external pcmcia-cs sources" - else - einfo "Kernel PCMCIA is disabled, using external pcmcia-cs sources" - ## get ebuild of currently installed pcmcia-cs package - PCMCIA_CS_EBUILD=(/var/db/pkg/sys-apps/pcmcia-cs-*/pcmcia-cs-*.ebuild) ## use bash globbing - if [ ! -f "${PCMCIA_CS_EBUILD}" ]; then - die "ERROR: pcmcia-cs ebuild (${PCMCIA_CS_EBUILD}) not found - are you sure pcmcia-cs is installed?" - fi - PCMCIA_CS_VER="${PCMCIA_CS_EBUILD##*/}" ## -> pcmcia-cs-VER.ebuild - PCMCIA_CS_VER="${PCMCIA_CS_VER/pcmcia-cs-/}" ## strip 'pcmcia-cs-' - PCMCIA_CS_VER="${PCMCIA_CS_VER/.ebuild/}" ## strip '.ebuild' - PCMCIA_PATH="${WORKDIR}/pcmcia-cs-${PCMCIA_CS_VER}" - sed -i -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_PATH}:" "${S}/Makefile" - ## unpack external pcmcia-cs sources - cd "${WORKDIR}" - unpack pcmcia-cs-${PCMCIA_CS_VER}.tar.gz ## unpack the pcmcia-cs sources to PCMCIA_PATH - cd pcmcia-cs-${PCMCIA_CS_VER} - ## when not configured, pcmcia-cs spits out lots of errors (since 3.2.5) - if ! ./Configure -n --srctree --kernel=/usr/src/linux >&/dev/null; then - eerror "External pcmcia-cs configuration failed" - die - fi - fi - fi -} - -src_compile() { - - local mydrivers - - use pcmcia && mydrivers="${mydrivers} pccard" - use hostap-nopci || mydrivers="${mydrivers} pci" - use hostap-noplx || mydrivers="${mydrivers} plx" - - einfo "Building the following drivers: ${mydrivers}" - emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" ${mydrivers} || die -} - -src_install() { - dodir ${LIB_PATH}/net - cp ${S}/driver/modules/{hostap.o,hostap_crypt_wep.o} \ - ${D}${LIB_PATH}/net/ -# local myinstall="install_hostap install_crypt" - - if use pcmcia >&/dev/null; then - dodir ${LIB_PATH}/pcmcia - dodir /etc/pcmcia - cp ${S}/driver/modules/hostap_cs.o ${D}/${LIB_PATH}/pcmcia/ - cp ${S}/driver/etc/hostap_cs.conf ${D}/etc/pcmcia/ - if [ -r /etc/pcmcia/prism2.conf ]; then - einfo "You may need to edit or remove /etc/pcmcia/prism2.conf" - einfo "This is usually a result of conflicts with the" - einfo "linux-wlan-ng drivers." - fi -# myinstall="${myinstall} install_pccard" - fi - - if ! use hostap-nopci >&/dev/null; then - cp ${S}/driver/modules/hostap_pci.o \ - ${D}${LIB_PATH}/net/ -# myinstall="${myinstall} install_pci" - fi - - if ! use hostap-noplx >&/dev/null; then - cp ${S}/driver/modules/hostap_plx.o \ - ${D}${LIB_PATH}/net/ -# myinstall="${myinstall} install_plx" - fi -# emake DESTDIR="${D}" ${myinstall} - dodoc README ChangeLog -} -pkg_postinst(){ - einfo "Checking kernel module dependancies" - cd /usr/src/linux && make _modinst_post ## depmod -} diff --git a/net-wireless/hostap-driver/hostap-driver-0.1.2-r1.ebuild b/net-wireless/hostap-driver/hostap-driver-0.1.2-r1.ebuild deleted file mode 100644 index b493e236d52f..000000000000 --- a/net-wireless/hostap-driver/hostap-driver-0.1.2-r1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.1.2-r1.ebuild,v 1.6 2004/11/01 11:49:36 brix Exp $ - -inherit toolchain-funcs eutils - -DESCRIPTION="HostAP wireless drivers" -HOMEPAGE="http://hostap.epitest.fi/" -SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" -IUSE="pcmcia hostap-nopci hostap-noplx" -DEPEND=">=net-wireless/wireless-tools-25 - pcmcia? ( >=sys-apps/pcmcia-cs-3.2.1 )" -S="${WORKDIR}/${P}" -LIB_PATH="/lib/modules/${KV}" - -src_unpack() { - check_KV - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${P}.firmware.diff.bz2" - - ## set compiler options - sed -i -e "s:gcc:$(tc-getCC):" "${S}/Makefile" - # sed -i -e "s:-O2:${CFLAGS}:" "${S}/Makefile" # improper CFLAGS could cause unresolved symbols in the modules - - ## fix for new coreutils (#31801) - sed -i -e "s:tail -1:tail -n 1:" "${S}/Makefile" - - ## use pcmcia-cs sources if kernel tree pcmcia support is disabled and USE=pcmcia is set - if use pcmcia >&/dev/null; then - if egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null; then - einfo "Kernel PCMCIA is enabled, skipping external pcmcia-cs sources" - else - einfo "Kernel PCMCIA is disabled, using external pcmcia-cs sources" - ## get ebuild of currently installed pcmcia-cs package - PCMCIA_CS_EBUILD=(/var/db/pkg/sys-apps/pcmcia-cs-*/pcmcia-cs-*.ebuild) ## use bash globbing - if [ ! -f "${PCMCIA_CS_EBUILD}" ]; then - die "ERROR: pcmcia-cs ebuild (${PCMCIA_CS_EBUILD}) not found - are you sure pcmcia-cs is installed?" - fi - PCMCIA_CS_VER="${PCMCIA_CS_EBUILD##*/}" ## -> pcmcia-cs-VER.ebuild - PCMCIA_CS_VER="${PCMCIA_CS_VER/pcmcia-cs-/}" ## strip 'pcmcia-cs-' - PCMCIA_CS_VER="${PCMCIA_CS_VER/.ebuild/}" ## strip '.ebuild' - PCMCIA_CS_VER="${PCMCIA_CS_VER/-r*/}" ## strip revision numbers - PCMCIA_PATH="${WORKDIR}/pcmcia-cs-${PCMCIA_CS_VER}" - sed -i -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_PATH}:" "${S}/Makefile" - ## unpack external pcmcia-cs sources - cd "${WORKDIR}" - unpack pcmcia-cs-${PCMCIA_CS_VER}.tar.gz ## unpack the pcmcia-cs sources to PCMCIA_PATH - cd ${PCMCIA_PATH} - ## when not configured, pcmcia-cs spits out lots of errors (since 3.2.5) - if ! ./Configure -n --srctree --kernel=/usr/src/linux >&/dev/null; then - eerror "External pcmcia-cs configuration failed" - die - fi - fi - fi -} - -src_compile() { - - local mydrivers - - use pcmcia && mydrivers="${mydrivers} pccard" - use hostap-nopci || mydrivers="${mydrivers} pci" - use hostap-noplx || mydrivers="${mydrivers} plx" - - einfo "Building the following drivers: ${mydrivers}" - emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" ${mydrivers} || die -} - -src_install() { - dodir ${LIB_PATH}/net - cp ${S}/driver/modules/{hostap.o,hostap_crypt_wep.o} \ - ${D}${LIB_PATH}/net/ -# local myinstall="install_hostap install_crypt" - - if use pcmcia >&/dev/null; then - dodir ${LIB_PATH}/pcmcia - dodir /etc/pcmcia - cp ${S}/driver/modules/hostap_cs.o ${D}/${LIB_PATH}/pcmcia/ - cp ${S}/driver/etc/hostap_cs.conf ${D}/etc/pcmcia/ - if [ -r /etc/pcmcia/prism2.conf ]; then - einfo "You may need to edit or remove /etc/pcmcia/prism2.conf" - einfo "This is usually a result of conflicts with the" - einfo "linux-wlan-ng drivers." - fi -# myinstall="${myinstall} install_pccard" - fi - - if ! use hostap-nopci >&/dev/null; then - cp ${S}/driver/modules/hostap_pci.o \ - ${D}${LIB_PATH}/net/ -# myinstall="${myinstall} install_pci" - fi - - if ! use hostap-noplx >&/dev/null; then - cp ${S}/driver/modules/hostap_plx.o \ - ${D}${LIB_PATH}/net/ -# myinstall="${myinstall} install_plx" - fi -# emake DESTDIR="${D}" ${myinstall} - dodoc README ChangeLog -} -pkg_postinst(){ - einfo "Checking kernel module dependancies" - cd /usr/src/linux && make _modinst_post ## depmod -} diff --git a/net-wireless/hostap-driver/hostap-driver-0.1.2.ebuild b/net-wireless/hostap-driver/hostap-driver-0.1.2.ebuild deleted file mode 100644 index 6103ee634015..000000000000 --- a/net-wireless/hostap-driver/hostap-driver-0.1.2.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.1.2.ebuild,v 1.6 2004/11/01 11:49:36 brix Exp $ - -inherit toolchain-funcs eutils - -DESCRIPTION="HostAP wireless drivers" -HOMEPAGE="http://hostap.epitest.fi/" -SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" -IUSE="pcmcia hostap-nopci hostap-noplx" -DEPEND=">=net-wireless/wireless-tools-25 - pcmcia? ( >=sys-apps/pcmcia-cs-3.2.1 )" -S="${WORKDIR}/${P}" -LIB_PATH="/lib/modules/${KV}" - -src_unpack() { - check_KV - unpack ${A} - cd "${S}" - - ## set compiler options - sed -i -e "s:gcc:$(tc-getCC):" "${S}/Makefile" - # sed -i -e "s:-O2:${CFLAGS}:" "${S}/Makefile" # improper CFLAGS could cause unresolved symbols in the modules - - ## fix for new coreutils (#31801) - sed -i -e "s:tail -1:tail -n 1:" "${S}/Makefile" - - ## use pcmcia-cs sources if kernel tree pcmcia support is disabled and USE=pcmcia is set - if use pcmcia >&/dev/null; then - if egrep '^CONFIG_PCMCIA=[ym]' /usr/src/linux/.config >&/dev/null; then - einfo "Kernel PCMCIA is enabled, skipping external pcmcia-cs sources" - else - einfo "Kernel PCMCIA is disabled, using external pcmcia-cs sources" - ## get ebuild of currently installed pcmcia-cs package - PCMCIA_CS_EBUILD=(/var/db/pkg/sys-apps/pcmcia-cs-*/pcmcia-cs-*.ebuild) ## use bash globbing - if [ ! -f "${PCMCIA_CS_EBUILD}" ]; then - die "ERROR: pcmcia-cs ebuild (${PCMCIA_CS_EBUILD}) not found - are you sure pcmcia-cs is installed?" - fi - PCMCIA_CS_VER="${PCMCIA_CS_EBUILD##*/}" ## -> pcmcia-cs-VER.ebuild - PCMCIA_CS_VER="${PCMCIA_CS_VER/pcmcia-cs-/}" ## strip 'pcmcia-cs-' - PCMCIA_CS_VER="${PCMCIA_CS_VER/.ebuild/}" ## strip '.ebuild' - PCMCIA_PATH="${WORKDIR}/pcmcia-cs-${PCMCIA_CS_VER}" - sed -i -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_PATH}:" "${S}/Makefile" - ## unpack external pcmcia-cs sources - cd "${WORKDIR}" - unpack pcmcia-cs-${PCMCIA_CS_VER}.tar.gz ## unpack the pcmcia-cs sources to PCMCIA_PATH - cd pcmcia-cs-${PCMCIA_CS_VER} - ## when not configured, pcmcia-cs spits out lots of errors (since 3.2.5) - if ! ./Configure -n --srctree --kernel=/usr/src/linux >&/dev/null; then - eerror "External pcmcia-cs configuration failed" - die - fi - fi - fi -} - -src_compile() { - - local mydrivers - - use pcmcia && mydrivers="${mydrivers} pccard" - use hostap-nopci || mydrivers="${mydrivers} pci" - use hostap-noplx || mydrivers="${mydrivers} plx" - - einfo "Building the following drivers: ${mydrivers}" - emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" ${mydrivers} || die -} - -src_install() { - dodir ${LIB_PATH}/net - cp ${S}/driver/modules/{hostap.o,hostap_crypt_wep.o} \ - ${D}${LIB_PATH}/net/ -# local myinstall="install_hostap install_crypt" - - if use pcmcia >&/dev/null; then - dodir ${LIB_PATH}/pcmcia - dodir /etc/pcmcia - cp ${S}/driver/modules/hostap_cs.o ${D}/${LIB_PATH}/pcmcia/ - cp ${S}/driver/etc/hostap_cs.conf ${D}/etc/pcmcia/ - if [ -r /etc/pcmcia/prism2.conf ]; then - einfo "You may need to edit or remove /etc/pcmcia/prism2.conf" - einfo "This is usually a result of conflicts with the" - einfo "linux-wlan-ng drivers." - fi -# myinstall="${myinstall} install_pccard" - fi - - if ! use hostap-nopci >&/dev/null; then - cp ${S}/driver/modules/hostap_pci.o \ - ${D}${LIB_PATH}/net/ -# myinstall="${myinstall} install_pci" - fi - - if ! use hostap-noplx >&/dev/null; then - cp ${S}/driver/modules/hostap_plx.o \ - ${D}${LIB_PATH}/net/ -# myinstall="${myinstall} install_plx" - fi -# emake DESTDIR="${D}" ${myinstall} - dodoc README ChangeLog -} -pkg_postinst(){ - einfo "Checking kernel module dependancies" - cd /usr/src/linux && make _modinst_post ## depmod -} diff --git a/net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild b/net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild deleted file mode 100644 index bef4e49f98a6..000000000000 --- a/net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/hostap-driver-0.1.3.ebuild,v 1.6 2004/11/01 11:49:36 brix Exp $ - -# pcmcia eclass inherits eutils -inherit toolchain-funcs pcmcia eutils - -DESCRIPTION="HostAP wireless drivers" -HOMEPAGE="http://hostap.epitest.fi/" -SRC_URI="${SRC_URI} http://hostap.epitest.fi/releases/${P}.tar.gz" -LICENSE="GPL-2" -SLOT="${KV}" -KEYWORDS="x86" -IUSE="${IUSE} hostap-nopci hostap-noplx" -DEPEND=">=net-wireless/wireless-tools-25" - -KMOD_PATH="/lib/modules/${KV}" - -src_unpack() { - check_KV - unpack ${A} - - ## unpack the pcmcia-cs sources if needed - pcmcia_src_unpack - - cd ${S} - epatch "${FILESDIR}/${P}.firmware.diff.bz2" - - ## set compiler options - sed -i -e "s:gcc:$(tc-getCC):" ${S}/Makefile - # sed -i -e "s:-O2:${CFLAGS}:" "${S}/Makefile" # improper CFLAGS could cause unresolved symbols in the modules - - ## fix for new coreutils (#31801) - sed -i -e "s:tail -1:tail -n 1:" ${S}/Makefile - - ## set correct pcmcia path (PCMCIA_VERSION gets set from pcmcia_src_unpack) - if [ -n "${PCMCIA_VERSION}" ]; then - sed -i -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_SOURCE_DIR}:" ${S}/Makefile - fi -} - -src_compile() { - ## configure pcmcia - pcmcia_configure - - cd ${S} - - einfo "Building hostap-driver for kernel version: ${KV}" - case ${KV} in - 2.[34].*) - local mydrivers - - use pcmcia && mydrivers="${mydrivers} pccard" - use hostap-nopci || mydrivers="${mydrivers} pci" - use hostap-noplx || mydrivers="${mydrivers} plx" - - einfo "Building the following drivers: ${mydrivers}" - emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" ${mydrivers} || die "make failed" - ;; - 2.[56].*) - unset ARCH - emake EXTRA_CFLAGS="-DPRISM2_DOWNLOAD_SUPPORT" all || die "make failed" - ;; - *) - eerror "Unsupported kernel version: ${KV}" - die - ;; - esac -} - -src_install() { - ## kernel 2.6 has a different module file name suffix - case ${KV} in - 2.[34].*) - kobj=o - ;; - 2.[56].*) - kobj=ko - esac - - dodir ${KMOD_PATH}/net - cp ${S}/driver/modules/{hostap,hostap_crypt_wep}.${kobj} \ - ${D}${KMOD_PATH}/net/ - - if use pcmcia >&/dev/null; then - dodir ${KMOD_PATH}/pcmcia - dodir /etc/pcmcia - cp ${S}/driver/modules/hostap_cs.${kobj} ${D}/${KMOD_PATH}/pcmcia/ - cp ${S}/driver/etc/hostap_cs.conf ${D}/etc/pcmcia/ - if [ -r /etc/pcmcia/prism2.conf ]; then - einfo "You may need to edit or remove /etc/pcmcia/prism2.conf" - einfo "This is usually a result of conflicts with the" - einfo "linux-wlan-ng drivers." - fi - fi - - if ! use hostap-nopci >&/dev/null; then - cp ${S}/driver/modules/hostap_pci.${kobj} \ - ${D}${KMOD_PATH}/net/ - fi - - if ! use hostap-noplx >&/dev/null; then - cp ${S}/driver/modules/hostap_plx.${kobj} \ - ${D}${KMOD_PATH}/net/ - fi - dodoc README ChangeLog -} - -pkg_postinst(){ - einfo "Checking kernel module dependancies" - cd /usr/src/linux && make _modinst_post ## depmod -} |