# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit linux-mod flag-o-matic eutils multilib DESCRIPTION="nozomi driver for the vodafone-UMTS card" HOMEPAGE="http://www.pharscape.org/3G/" SRC_URI="http://www.pharscape.org/3G/nozomi_2.1_$PV.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" RDEPEND="virtual/modutils" DEPEND="${RDEPEND} virtual/linux-sources " src_compile() { local myABI=${ABI:-${DEFAULT_ABI}} append-flags "-I${KV_DIR}/arch/$(tc-arch-kernel)/include" ARCH=$(tc-arch-kernel) ABI=${KERNEL_ABI} cd ${WORKDIR} emake LDFLAGS="$(raw-ldflags)" HOSTCC=$(tc-getBUILD_CC) CC=$(tc-getCC) || die "Make Failed" } src_install() { mkdir -p ${D}/lib/modules/${KV_FULL}/nozomi/ cp ${WORKDIR}/nozomi.ko ${D}/lib/modules/${KV_FULL}/nozomi/ cd ${WORKDIR} mv readme README mv todo TODO mv copying COPYING dodoc README TODO COPYING CHANGELOG } pkg_postinst() { linux-mod_pkg_postinst einfo "Please make sure that you have PCMCIA enabled, otherwise the nozomi driver won't work!" einfo "After loading the nozomi module you should have some /dev/noz* device nodes. Make sure that they have the right permissions. Use /dev/noz0 as the dialup device." }