summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Jaroszyński <peper@gentoo.org>2007-03-24 00:17:49 +0000
committerPiotr Jaroszyński <peper@gentoo.org>2007-03-24 00:17:49 +0000
commit335a870c7fee4e6e90a7d1c3b608436d778bc978 (patch)
tree390a199f76076dc8a126e2851092e4c08bbb2de2 /net-wireless
parentNew package. Bug #115199 by charly (diff)
downloadgentoo-2-335a870c7fee4e6e90a7d1c3b608436d778bc978.tar.gz
gentoo-2-335a870c7fee4e6e90a7d1c3b608436d778bc978.tar.bz2
gentoo-2-335a870c7fee4e6e90a7d1c3b608436d778bc978.zip
Version bump.
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/ndiswrapper/ChangeLog8
-rw-r--r--net-wireless/ndiswrapper/files/digest-ndiswrapper-1.393
-rw-r--r--net-wireless/ndiswrapper/ndiswrapper-1.39.ebuild104
3 files changed, 114 insertions, 1 deletions
diff --git a/net-wireless/ndiswrapper/ChangeLog b/net-wireless/ndiswrapper/ChangeLog
index c17a9d02c6a2..a400aa7b1e24 100644
--- a/net-wireless/ndiswrapper/ChangeLog
+++ b/net-wireless/ndiswrapper/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-wireless/ndiswrapper
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ChangeLog,v 1.75 2007/03/01 16:57:52 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ChangeLog,v 1.76 2007/03/24 00:17:49 peper Exp $
+
+*ndiswrapper-1.39 (24 Mar 2007)
+
+ 24 Mar 2007; Piotr Jaroszyński <peper@gentoo.org>
+ +ndiswrapper-1.39.ebuild:
+ Version bump.
*ndiswrapper-1.38 (01 Mar 2007)
diff --git a/net-wireless/ndiswrapper/files/digest-ndiswrapper-1.39 b/net-wireless/ndiswrapper/files/digest-ndiswrapper-1.39
new file mode 100644
index 000000000000..264a05ef3302
--- /dev/null
+++ b/net-wireless/ndiswrapper/files/digest-ndiswrapper-1.39
@@ -0,0 +1,3 @@
+MD5 4306fb0466efdfe6426b8a45f93ec56c ndiswrapper-1.39.tar.gz 192211
+RMD160 40c085b48ec1d5fe6aea20fac01d8f8e33000e56 ndiswrapper-1.39.tar.gz 192211
+SHA256 b229cc3d1f2162b50a1e41ae3edd2f35562039b96e0909f2476186481d47862f ndiswrapper-1.39.tar.gz 192211
diff --git a/net-wireless/ndiswrapper/ndiswrapper-1.39.ebuild b/net-wireless/ndiswrapper/ndiswrapper-1.39.ebuild
new file mode 100644
index 000000000000..f214b7725599
--- /dev/null
+++ b/net-wireless/ndiswrapper/ndiswrapper-1.39.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.39.ebuild,v 1.1 2007/03/24 00:17:49 peper Exp $
+
+inherit linux-mod
+
+DESCRIPTION="Wrapper for using Windows drivers for some wireless cards"
+HOMEPAGE="http://ndiswrapper.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug usb"
+
+DEPEND="sys-apps/pciutils"
+RDEPEND="${DEPEND}
+ net-wireless/wireless-tools"
+
+CONFIG_CHECK="NET_RADIO"
+
+MODULE_NAMES="ndiswrapper(misc:${S}/driver)"
+BUILD_TARGETS="all"
+MODULESD_NDISWRAPPER_ALIASES=("wlan0 ndiswrapper")
+
+ERROR_USB="You need to enable USB support in your kernel
+to use usb support in ndiswrapper."
+
+pkg_setup() {
+ einfo "See http://www.gentoo.org/doc/en/gentoo-kernel.xml for a list of supported kernels."
+ echo ""
+ use usb && CONFIG_CHECK="${CONFIG_CHECK} USB"
+ linux-mod_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ convert_to_m "${S}/driver/Makefile"
+}
+
+src_compile() {
+ local params
+
+ # Enable verbose debugging information
+ if use debug; then
+ params="DEBUG=3"
+ use usb && params="${params} USB_DEBUG=1"
+ fi
+
+ cd utils
+ emake || die "Compile of utils failed!"
+
+ use usb || params="DISABLE_USB=1"
+
+ # Does not like parallel builds
+ # http://bugs.gentoo.org/show_bug.cgi?id=154213
+ # KBUILD value can't be quoted
+ # http://bugs.gentoo.org/show_bug.cgi?id=156319
+ BUILD_PARAMS="KSRC=${KV_DIR} KVERS=${KV_FULL} KBUILD=${KV_OUT_DIR} ${params} -j1"
+ linux-mod_src_compile
+}
+
+src_install() {
+ dodoc README INSTALL AUTHORS ChangeLog
+ doman ndiswrapper.8
+
+ keepdir /etc/ndiswrapper
+
+ linux-mod_src_install
+
+ cd utils
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ 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 'modules-update'."
+ echo
+ einfo "check http://ndiswrapper.sf.net/mediawiki/index.php/List for drivers"
+ I=$(lspci -n | egrep 'Class (0280|0200):' | cut -d' ' -f4)
+ einfo "Look for the following on that page for your driver:"
+ einfo "Possible Hardware: ${I}"
+ echo
+ einfo "Please have a look at http://ndiswrapper.sourceforge.net/wiki/"
+ einfo "for the FAQ, HowTos, Tips, Configuration, and installation"
+ einfo "information."
+ echo
+ einfo "ndiswrapper devs need support(_hardware_, cash)."
+ einfo "Don't hesistate if you can help, see http://ndiswrapper.sf.net for details."
+ echo
+
+ einfo "Attempting to automatically reinstall any Windows drivers"
+ einfo "you might already have."
+ for driver in $(ls /etc/ndiswrapper)
+ do
+ einfo "Driver: ${driver}"
+ mv /etc/ndiswrapper/${driver} ${T}
+ ndiswrapper -i ${T}/${driver}/${driver}.inf
+ done
+}