diff options
Diffstat (limited to 'net-wireless/hostap-driver')
-rw-r--r-- | net-wireless/hostap-driver/ChangeLog | 9 | ||||
-rw-r--r-- | net-wireless/hostap-driver/Manifest | 2 | ||||
-rw-r--r-- | net-wireless/hostap-driver/files/digest-hostap-driver-0.2.5 | 6 | ||||
-rw-r--r-- | net-wireless/hostap-driver/hostap-driver-0.2.5.ebuild | 122 |
4 files changed, 138 insertions, 1 deletions
diff --git a/net-wireless/hostap-driver/ChangeLog b/net-wireless/hostap-driver/ChangeLog index 7770b62550ea..63970c5dcf89 100644 --- a/net-wireless/hostap-driver/ChangeLog +++ b/net-wireless/hostap-driver/ChangeLog @@ -1,6 +1,13 @@ # 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.14 2004/09/14 16:22:46 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap-driver/ChangeLog,v 1.15 2004/10/25 15:15:30 brix Exp $ + +*hostap-driver-0.2.5 (25 Oct 2004) + + 25 Oct 2004; Henrik Brix Andersen <brix@gentoo.org> + +hostap-driver-0.2.5.ebuild: + Version bump. Cleaned up the ebuild beyond recognition, dropped hostap-* USE + flags since the package no longer supports building only some of the modules. *hostap-driver-0.2.4 (14 Sep 2004) diff --git a/net-wireless/hostap-driver/Manifest b/net-wireless/hostap-driver/Manifest index 7cdc61145e98..a4e8f8cba2a2 100644 --- a/net-wireless/hostap-driver/Manifest +++ b/net-wireless/hostap-driver/Manifest @@ -1,6 +1,7 @@ MD5 e473de19e03877a875c8398fbf2ee3d0 hostap-driver-0.1.3.ebuild 2903 MD5 1a4e9f348ea1158f85e73de05b21a333 hostap-driver-0.1.2-r1.ebuild 3818 MD5 878a0269474add253e99017cbaf1b6ff hostap-driver-0.1.2.ebuild 3715 +MD5 5ef678ebab365208cbf4281887da49c1 hostap-driver-0.2.5.ebuild 3070 MD5 a2593a329214efd6d27d3f814027f62d hostap-driver-0.1.2-r2.ebuild 2801 MD5 afb4b160091427936002d9fab6bfc44b ChangeLog 2395 MD5 e4c2a5b184138acc2d5252edc1be21bc metadata.xml 822 @@ -13,4 +14,5 @@ MD5 75dda0e477834ba5a6c5c88cfb402fe7 files/digest-hostap-driver-0.1.1 71 MD5 5c57e0825ccb41c219c9d86c6a9114e5 files/digest-hostap-driver-0.1.2 71 MD5 44d9961555b48c6445ebe7bd24d33b4a files/digest-hostap-driver-0.1.3 515 MD5 fe9ca923fd63e570f4f47be989fd810f files/digest-hostap-driver-0.2.4 441 +MD5 702e5e315551f06833fde599816fd65a files/digest-hostap-driver-0.2.5 441 MD5 afb604f5408986228ad8cc60236339dc files/hostap-driver-0.1.2.firmware.diff.bz2 590 diff --git a/net-wireless/hostap-driver/files/digest-hostap-driver-0.2.5 b/net-wireless/hostap-driver/files/digest-hostap-driver-0.2.5 new file mode 100644 index 000000000000..cbb75bc1293e --- /dev/null +++ b/net-wireless/hostap-driver/files/digest-hostap-driver-0.2.5 @@ -0,0 +1,6 @@ +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 6afe257b11554b17c228f7ca8c7ce0d4 hostap-driver-0.2.5.tar.gz 195923 diff --git a/net-wireless/hostap-driver/hostap-driver-0.2.5.ebuild b/net-wireless/hostap-driver/hostap-driver-0.2.5.ebuild new file mode 100644 index 000000000000..b4e46a80d0f7 --- /dev/null +++ b/net-wireless/hostap-driver/hostap-driver-0.2.5.ebuild @@ -0,0 +1,122 @@ +# 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.2.5.ebuild,v 1.1 2004/10/25 15:15:30 brix Exp $ + +inherit pcmcia kernel-mod 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" + +KEYWORDS="~x86" +IUSE="" +SLOT="0" + +DEPEND="!net-wireless/hostap + virtual/linux-sources + sys-apps/sed" +RDEPEND=">=net-wireless/wireless-tools-25" + +src_unpack() { + if ! kernel-mod_configoption_present NET_RADIO + then + eerror "" + eerror "${P} requires support for Wireless LAN drivers (non-hamradio) &" + eerror "Wireless Extensions (CONFIG_NET_RADIO) in the kernel." + eerror "" + die "CONFIG_NET_RADIO support not detected." + fi + + kernel-mod_check_modules_supported + + unpack ${A} + + # unpack the pcmcia-cs sources if needed + pcmcia_src_unpack + + # set compiler options + sed -i "s:gcc:${CC}:" ${S}/Makefile + + # fix for new coreutils (#31801) + sed -i "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 "s:^PCMCIA_PATH=:PCMCIA_PATH=${PCMCIA_SOURCE_DIR}:" ${S}/Makefile + fi + + # install to /lib/modules/${KV}/net + sed -i "s:\$(MODPATH)/kernel/drivers/net/wireless:\$(MODPATH)/net:g" ${S}/Makefile + sed -i "s:MODPATH_CS \:= \$(MODPATH)/pcmcia:MODPATH_CS \:= \$(MODPATH)/net:" ${S}/Makefile + + # let pkg_postinst() handle depmod + sed -i "s:/sbin/depmod -ae; \\\:\\\:" ${S}/Makefile + sed -i "s:/sbin/depmod -ae::" ${S}/Makefile + + if ! use pcmcia &> /dev/null + then + # remove install_pccard dependency from install_2.4 target + sed -i "s#^\(install_2.4:.*\)install_pccard#\1#" ${S}/Makefile + fi + + kernel-mod_getversion + + if [ ${KV_MINOR} -gt 5 ] && [ ${KV_PATCH} -gt 5 ] + then + sed -i "s:SUBDIRS=:M=:" ${S}/Makefile + fi +} + +src_compile() { + pcmcia_configure + + set_arch_to_kernel + emake all || die "emake failed" + set_arch_to_portage +} + +src_install() { + # Makefile relies on existing /lib/modules/${KV} + dodir /lib/modules/${KV} + + if use pcmcia &> /dev/null + then + # pcmcia configuration file is only installed if /etc/pcmcia exist + dodir /etc/pcmcia + else + # make sure we do not install the hostap_cs module + rm -rf ${S}/driver/modules/hostap_cs.*o + fi + + set_arch_to_kernel + emake DESTDIR=${D} install || die "emake install failed" + set_arch_to_portage + + dodoc README ChangeLog +} + +pkg_postinst() { + einfo "Checking kernel module dependencies" + test -r "${ROOT}/usr/src/linux/System.map" && \ + depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV} + + if [ -e /etc/pcmcia/prism2.conf ] + then + einfo "" + einfo "You may need to edit or remove /etc/pcmcia/prism2.conf" + einfo "This is usually a result of conflicts with the" + einfo "net-wireless/linux-wlan-ng drivers." + einfo "" + fi + + einfo "" + einfo "Please notice that all ${PN} modules are now installed to" + einfo "/lib/modules/${KV}/net/." + einfo "" + einfo "You may have to manually delete the old modules if upgrading from from" + einfo "<=net-wireless/${PN}-0.2.4." + einfo "" + +} |