summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2004-12-07 19:32:39 +0000
committerDoug Goldstein <cardoe@gentoo.org>2004-12-07 19:32:39 +0000
commit898f14046c453f976ff342c62500115e239dfb78 (patch)
treebaee27b2da549a67c6fcfbcfb2b0b4939048fc8c /net-wireless/ndiswrapper
parentFixing gtk detect. closes 62543 (diff)
downloadgentoo-2-898f14046c453f976ff342c62500115e239dfb78.tar.gz
gentoo-2-898f14046c453f976ff342c62500115e239dfb78.tar.bz2
gentoo-2-898f14046c453f976ff342c62500115e239dfb78.zip
revision bump
Diffstat (limited to 'net-wireless/ndiswrapper')
-rw-r--r--net-wireless/ndiswrapper/ChangeLog7
-rw-r--r--net-wireless/ndiswrapper/files/digest-ndiswrapper-0.121
-rw-r--r--net-wireless/ndiswrapper/ndiswrapper-0.12.ebuild108
3 files changed, 115 insertions, 1 deletions
diff --git a/net-wireless/ndiswrapper/ChangeLog b/net-wireless/ndiswrapper/ChangeLog
index 77534f25c490..2a675080daee 100644
--- a/net-wireless/ndiswrapper/ChangeLog
+++ b/net-wireless/ndiswrapper/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-wireless/ndiswrapper
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ChangeLog,v 1.11 2004/10/09 07:30:13 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ChangeLog,v 1.12 2004/12/07 19:32:39 cardoe Exp $
+
+*ndiswrapper-0.12 (07 Dec 2004)
+
+ 07 Dec 2004; Doug Goldstein <cardoe@gentoo.org> +ndiswrapper-0.12.ebuild:
+ version bump
*ndiswrapper-0.11 (09 Oct 2004)
diff --git a/net-wireless/ndiswrapper/files/digest-ndiswrapper-0.12 b/net-wireless/ndiswrapper/files/digest-ndiswrapper-0.12
new file mode 100644
index 000000000000..3bbb69314c76
--- /dev/null
+++ b/net-wireless/ndiswrapper/files/digest-ndiswrapper-0.12
@@ -0,0 +1 @@
+MD5 01d86483b1d53cde7ae32853672399cc ndiswrapper-0.12.tar.gz 106455
diff --git a/net-wireless/ndiswrapper/ndiswrapper-0.12.ebuild b/net-wireless/ndiswrapper/ndiswrapper-0.12.ebuild
new file mode 100644
index 000000000000..5652b71e5f23
--- /dev/null
+++ b/net-wireless/ndiswrapper/ndiswrapper-0.12.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-0.12.ebuild,v 1.1 2004/12/07 19:32:39 cardoe Exp $
+
+inherit kernel-mod
+
+DESCRIPTION="Wrapper for using Windows drivers for some wireless cards"
+HOMEPAGE="http://ndiswrapper.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="debug"
+DEPEND="sys-apps/pciutils"
+S=${WORKDIR}/${PN}-${PV}
+
+src_unpack() {
+ check_KV
+ kernel-mod_getversion
+ unpack ${A}
+
+ # Fix path to kernel and KVERS
+ sed -i -e "s:^KSRC.*:KSRC=${ROOT}/usr/src/linux:" \
+ -e "s:^KVERS.*:KVERS=${KV_MAJOR}${KV_MINOR}:" \
+ ${S}/driver/Makefile
+
+ if [ ${KV_MINOR} -gt 5 ] && [ ${KV_PATCH} -gt 5 ]
+ then
+ sed -i 's:SUBDIRS=:M=:g' ${S}/driver/Makefile
+ fi
+}
+
+src_compile() {
+ # Unset ARCH for 2.5/2.6 kernel compiles
+ if [ ${KV_MINOR} -gt 4 ] ; then
+ unset ARCH
+ fi
+
+ # Enable verbose debugging information
+ use debug && export DEBUG=3
+
+ emake || die "Compile Failed!"
+}
+
+src_install() {
+ if [ ${KV_MINOR} -gt 4 ]
+ then
+ MOD_SUFFIX="ko"
+ else
+ MOD_SUFFIX="o"
+ fi
+
+ dosbin ${S}/utils/ndiswrapper
+ dosbin ${S}/utils/ndiswrapper-buginfo
+
+ dodoc ${S}/README ${S}/INSTALL ${S}/AUTHORS ${S}/ChangeLog
+ doman ${S}/ndiswrapper.8
+
+ insinto /lib/modules/${KV}/misc
+ doins ${S}/driver/ndiswrapper.${MOD_SUFFIX}
+
+ into /
+ dosbin ${S}/utils/loadndisdriver
+
+ insinto /etc/modules.d
+ newins ${FILESDIR}/${PN}-0.9-modules.d ndiswrapper
+
+ dodir /etc/ndiswrapper
+}
+
+pkg_postinst() {
+ echo
+ 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}
+ echo
+ einfo "ndiswrapper requires .inf and .sys files from a Windows(tm) driver"
+ einfo "to function. Download these to /root for example, then"
+ einfo "run 'ndiswrapper -i /root/foo.inf'. After that you can delete them."
+ einfo "They will be copied to the proper location."
+ einfo "Once done, please run 'update-modules'."
+ einfo
+ einfo "As of release 0.9, you no longer have to call 'loadndiswrapper'"
+ einfo "explicitly. The module will handle it automatically."
+ einfo
+ einfo "check http://ndiswrapper.sf.net/supported_chipsets.html for drivers"
+ I=`lspci -n | egrep 'Class (0280|0200):' | cut -d' ' -f4`
+ einfo "Look for the following on that page for your driver:"
+ einfo ${I}
+ einfo
+ einfo "Please have a look at http://ndiswrapper.sourceforge.net/wiki/"
+ einfo "for the FAQ, HowTos, Tips, Configuration, and installation"
+ einfo "information."
+ echo
+}
+
+pkg_config() {
+ ewarn "New versions of ndiswrapper do not require you to run config"
+
+ if [ ! -f "/etc/modules.d/ndiswrapper" ] ; then
+ eerror "/etc/modules.d/ndiswrapper not found. Please re-emerge"
+ eerror "${PN} to have this file installed, then re-run this script."
+ die "Driver configuration file not found!"
+ fi
+}
+