summaryrefslogtreecommitdiff
path: root/sys-fs/usb-rndis-lite/usb-rndis-lite-0.11.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/usb-rndis-lite/usb-rndis-lite-0.11.ebuild')
-rw-r--r--sys-fs/usb-rndis-lite/usb-rndis-lite-0.11.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/sys-fs/usb-rndis-lite/usb-rndis-lite-0.11.ebuild b/sys-fs/usb-rndis-lite/usb-rndis-lite-0.11.ebuild
new file mode 100644
index 0000000..c85f51b
--- /dev/null
+++ b/sys-fs/usb-rndis-lite/usb-rndis-lite-0.11.ebuild
@@ -0,0 +1,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
+}
+