summaryrefslogtreecommitdiff
path: root/sys-fs/usb-rndis-lite/usb-rndis-lite-0.11.ebuild
blob: c85f51b2b17753969a82d4367ae6a5ee015812c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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="${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
}