# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kernel-mod DESCRIPTION="Windows driver wrapper to get some wireless devices working in Linux." HOMEPAGE="http://www.linuxant.com/driverloader/" SRC_URI="http://www.linuxant.com/driverloader/wlan/full/archive/${P}/${P}.tar.gz" LICENSE="linuxant GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="net-wireless/wireless-tools" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/driverloader-modules.patch # Using 2.6 kernel module installation techniqure from alsa-driver ebuilds, is there a better solution for this? if kernel-mod_is_2_6_kernel || kernel-mod_is_2_5_kernel; then FULL_KERNEL_PATH="${ROOT}/usr/src/${KV_DIR}" if ! [ -d "${FULL_KERNEL_PATH}" ]; then eerror "An error seems to have occurred. We looked in ${FULL_KERNEL_PATH} for your kernel sources, but we didn't see them." die "Driverloader configuration failure." fi einfo "A 2.5 or 2.6 kernel was detected. We are copying the kernel source tree from" einfo "${FULL_KERNEL_PATH} to ${T}/linux" einfo "because the driverloader build process overwrites files in the 2.6.x kernel tree." # Copy everything over to our tmp dir... cp -a ${FULL_KERNEL_PATH} ${T}/linux # 2.5/2.6 patch only change to unpack directory (S) and patch modules/Makefile KERNELSRC path line starts with /lib config section epatch ${FILESDIR}/driverloader-2.6-modules.patch fi } src_compile() { make all || die unset ARCH make modules || die } src_install() { make ROOT=${D} install || die cd ${S}/modules unset ARCH make modules_install || die } pkg_postinst() { einfo einfo "To finish installing driverloader, do the following:" einfo einfo "1. Type 'dldrconfig --webconf' and hit enter again. This" einfo "will start the web configuration server so that it is only" einfo "accessible from this machine. Use any browser to go to" einfo "http://127.0.0.1:18020, and use your root user and password." einfo "Upload your windows drivers and enter your license. Licenses" einfo "cost \$19.95, you can get a 30-day free trial from" einfo "http://www.linuxant.com." einfo einfo "2. Once the drivers have been installed, it is smart to" einfo "disable the web configuration server by typing" einfo "'dldrconfig --webconf=off'. If you ever need to change" einfo "settings, you can reactivate the server. Once the drivers" einfo "are uploaded, you should have a new eth0 device, and you" einfo "can use standard tools (iwconfig, ifconfig) to configure it." einfo }