# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils linux-info linux-mod DESCRIPTION="rndis protocol driver" HOMEPAGE="http://www.synce.org" LICENSE="GPL" KEYWORDS="~x86 ~amd64" RDEPEND="" DEPEND=">=virtual/linux-sources-2.6 !sys-fs/usb-rndis !sys-fs/usb-rndis-ng" MY_P="synce-${P}" SRC_URI="mirror://sourceforge/synce/${MY_P}.tar.gz" BUILD_TARGETS="default" S="${WORKDIR}/${MY_P}" MODULE_NAMES="rndis_host(usb/rndis:${S}) usbnet(usb/rndis:${S}) cdc_ether(usb/rndis:${S})" pkg_setup() { if kernel_is 2 4; then die "${P} does not support building against kernel 2.4.x" else einfo "kernel version ok" fi linux_chkconfig_present USB_ETH || die "kernel CONFIG_USB_ETH is needed" linux_chkconfig_present USB_ETH_RNDIS || die "kernel CONFIG_USB_ETH_RNDIS is needed" linux-mod_pkg_setup }