diff options
author | Christoph Mende <angelos@gentoo.org> | 2010-06-22 21:42:35 +0000 |
---|---|---|
committer | Christoph Mende <angelos@gentoo.org> | 2010-06-22 21:42:35 +0000 |
commit | 57ea9861c41f1b71e4d5fda86951eaad341ec6eb (patch) | |
tree | f9910418664c4960aa8eb45394c826c3947133a6 | |
parent | Security bump. (diff) | |
download | gentoo-2-57ea9861c41f1b71e4d5fda86951eaad341ec6eb.tar.gz gentoo-2-57ea9861c41f1b71e4d5fda86951eaad341ec6eb.tar.bz2 gentoo-2-57ea9861c41f1b71e4d5fda86951eaad341ec6eb.zip |
Took over package and bumped to 1.56, fixed bugs #210290, #232403, #280057, #322313, #323141
(Portage version: 2.1.8.3/cvs/Linux x86_64)
-rw-r--r-- | net-wireless/ndiswrapper/ChangeLog | 12 | ||||
-rw-r--r-- | net-wireless/ndiswrapper/files/ndiswrapper-1.56-ldflags.patch | 13 | ||||
-rw-r--r-- | net-wireless/ndiswrapper/metadata.xml | 4 | ||||
-rw-r--r-- | net-wireless/ndiswrapper/ndiswrapper-1.56.ebuild | 110 |
4 files changed, 137 insertions, 2 deletions
diff --git a/net-wireless/ndiswrapper/ChangeLog b/net-wireless/ndiswrapper/ChangeLog index 4a9d94ebec81..88c71a3b40ce 100644 --- a/net-wireless/ndiswrapper/ChangeLog +++ b/net-wireless/ndiswrapper/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-wireless/ndiswrapper -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ChangeLog,v 1.108 2009/09/27 12:07:07 maekke Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ChangeLog,v 1.109 2010/06/22 21:42:35 angelos Exp $ + +*ndiswrapper-1.56 (22 Jun 2010) + + 22 Jun 2010; Christoph Mende <angelos@gentoo.org> + +ndiswrapper-1.56.ebuild, +files/ndiswrapper-1.56-ldflags.patch, + metadata.xml: + Took over package and bumped to 1.56, fixed bugs #210290, #232403, #280057, + #322313, #323141 27 Sep 2009; Markus Meier <maekke@gentoo.org> ndiswrapper-1.55-r1.ebuild: amd64/x86 stable, bug #286333 diff --git a/net-wireless/ndiswrapper/files/ndiswrapper-1.56-ldflags.patch b/net-wireless/ndiswrapper/files/ndiswrapper-1.56-ldflags.patch new file mode 100644 index 000000000000..d4e78a61b93d --- /dev/null +++ b/net-wireless/ndiswrapper/files/ndiswrapper-1.56-ldflags.patch @@ -0,0 +1,13 @@ +diff --git a/utils/Makefile b/utils/Makefile +index f1701a6..ca4cefc 100644 +--- a/utils/Makefile ++++ b/utils/Makefile +@@ -12,7 +12,7 @@ DISTFILES=Makefile ndiswrapper loadndisdriver.c ndiswrapper-buginfo + all: loadndisdriver + + loadndisdriver: loadndisdriver.c +- $(CC) $(CFLAGS) -o $@ $< ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + + clean: + rm -f *~ *.o loadndisdriver diff --git a/net-wireless/ndiswrapper/metadata.xml b/net-wireless/ndiswrapper/metadata.xml index fa6716f6434a..02799f48b786 100644 --- a/net-wireless/ndiswrapper/metadata.xml +++ b/net-wireless/ndiswrapper/metadata.xml @@ -2,6 +2,10 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>mobile</herd> + <maintainer> + <email>angelos@gentoo.org</email> + <name>Christoph Mende</name> + </maintainer> <longdescription lang="en">ndiswrapper provides a kernel module and utility for implementing the Windows(tm) NDIS API. This serves to provide drivers for wireless cards that have no native support. diff --git a/net-wireless/ndiswrapper/ndiswrapper-1.56.ebuild b/net-wireless/ndiswrapper/ndiswrapper-1.56.ebuild new file mode 100644 index 000000000000..13f8af08b29d --- /dev/null +++ b/net-wireless/ndiswrapper/ndiswrapper-1.56.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.56.ebuild,v 1.1 2010/06/22 21:42:35 angelos Exp $ + +EAPI=2 +inherit base linux-mod toolchain-funcs + +DESCRIPTION="Wrapper for using Windows drivers for some wireless cards" +HOMEPAGE="http://ndiswrapper.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/stable/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="debug usb" + +DEPEND="sys-apps/pciutils" +RDEPEND="${DEPEND} + net-wireless/wireless-tools" + +PATCHES=( "${FILESDIR}"/${P}-ldflags.patch ) +MODULE_NAMES="ndiswrapper(misc:${S}/driver)" +BUILD_TARGETS="all" +MODULESD_NDISWRAPPER_ALIASES=("wlan0 ndiswrapper") + +pkg_setup() { + echo + einfo "See http://www.gentoo.org/doc/en/gentoo-kernel.xml" + einfo "for a list of supported kernels." + echo + + CONFIG_CHECK="WIRELESS_EXT" + use usb && CONFIG_CHECK="${CONFIG_CHECK} USB" + ERROR_USB="You need to enable USB support in your kernel to use usb support in ndiswrapper." + linux-mod_pkg_setup +} + +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 CC=$(tc-getCC) || die "Compile of utils failed!" + + use usb || params="${params} DISABLE_USB=1" + + BUILD_PARAMS="KSRC=${KV_DIR} KVERS=${KV_FULL} KBUILD='${KV_OUT_DIR}' ${params}" + linux-mod_src_compile +} + +src_install() { + dodoc AUTHORS ChangeLog INSTALL README || die "dodoc failed" + doman ndiswrapper.8 || die "doman failed" + + keepdir /etc/ndiswrapper + + linux-mod_src_install + + cd utils + emake DESTDIR="${D}" install || die "emake install failed" +} + +pkg_postinst() { + linux-mod_pkg_postinst + + echo + elog "NDISwrapper requires .inf and .sys files from a Windows(tm) driver" + elog "to function. Download these to /root for example, then" + elog "run 'ndiswrapper -i /root/foo.inf'. After that you can delete them." + elog "They will be copied to /etc/ndiswrapper/." + elog "Once done, please run 'update-modules'." + echo + + elog "Please look at ${HOMEPAGE}" + elog "for the FAQ, HowTos, tips, configuration, and installation" + elog "information." + echo + + for i in $(lspci -n | egrep '(0280|0200):' | cut -d' ' -f1) + do + i_desc=$(lspci -nn | grep "$i" | awk -F': ' '{print $2}' | awk -F'[' '{print $1}') + if [[ -n "${i_desc}" ]] ; then + elog "Possible hardware: ${i_desc}" + fi + done + + echo + elog "NDISwrapper devs need support (_hardware_, cash)." + elog "Don't hesitate if you can help." + elog "See ${HOMEPAGE} for details." + echo + + if [[ ${ROOT} == "/" ]]; then + + einfo "Attempting to automatically reinstall any Windows drivers" + einfo "you might already have." + echo + + local driver + for driver in $(ls /etc/ndiswrapper) ; do + einfo "Driver: ${driver}" + mv "/etc/ndiswrapper/${driver}" "${T}" + ndiswrapper -i "${T}/${driver}/${driver}.inf" + done + fi +} |