diff options
author | Alin Năstac <mrness@gentoo.org> | 2004-12-14 21:20:19 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2004-12-14 21:20:19 +0000 |
commit | e1cd741ad6ebe7889692043d3c120aa3e17c38b4 (patch) | |
tree | 60e62e8ec10d80cb033296890891ab34a5629bb2 /net-dialup/bewan-adsl | |
parent | Changed DEPENDS to <wxpython2.5.1.3 (Manifest recommit) (diff) | |
download | gentoo-2-e1cd741ad6ebe7889692043d3c120aa3e17c38b4.tar.gz gentoo-2-e1cd741ad6ebe7889692043d3c120aa3e17c38b4.tar.bz2 gentoo-2-e1cd741ad6ebe7889692043d3c120aa3e17c38b4.zip |
kernel-mod -> linux-mod; remove timeout from usb module for kernels >= 2.6.9
Diffstat (limited to 'net-dialup/bewan-adsl')
-rw-r--r-- | net-dialup/bewan-adsl/ChangeLog | 7 | ||||
-rw-r--r-- | net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild | 74 | ||||
-rw-r--r-- | net-dialup/bewan-adsl/files/bewan-adsl-kill-timeout.patch | 21 |
3 files changed, 65 insertions, 37 deletions
diff --git a/net-dialup/bewan-adsl/ChangeLog b/net-dialup/bewan-adsl/ChangeLog index da13de0352f7..fabd88e4bef8 100644 --- a/net-dialup/bewan-adsl/ChangeLog +++ b/net-dialup/bewan-adsl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dialup/bewan-adsl # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/ChangeLog,v 1.3 2004/12/05 21:20:46 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/ChangeLog,v 1.4 2004/12/14 21:20:09 mrness Exp $ + + 14 Dec 2004; Alin Nastac <mrness@gentoo.org> + +files/bewan-adsl-kill-timeout.patch, bewan-adsl-0.8.7.ebuild: + Replace kernel-mod inheritance with linux-mod and solve compilation problems + for kernel versions >= 2.6.9. See bug #74397. 05 Dec 2004; Alin Nastac <mrness@gentoo.org> bewan-adsl-0.8.7.ebuild: Replace kernel-mod eclass with linux-info. diff --git a/net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild b/net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild index 4416e50308f6..7a39b5172b93 100644 --- a/net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild +++ b/net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild,v 1.3 2004/12/05 21:17:16 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/bewan-adsl-0.8.7.ebuild,v 1.4 2004/12/14 21:20:09 mrness Exp $ -inherit eutils linux-info +inherit eutils linux-mod DESCRIPTION="Bewan ADSL PCI&USB st driver" SRC_URI="http://www.bewan.com/bewan/drivers/bast-${PV}.tgz" @@ -11,55 +11,61 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="usb doc" +DEPEND="virtual/linux-sources" S="${WORKDIR}/unicorn" -src_compile() { +PCI_S="${S}/unicorn_pci" +USB_S="${S}/unicorn_usb" +BUILD_PARAMS="KERNEL_SOURCES=${KV_DIR} KVERS=${KV_FULL}" +BUILD_TARGETS="modules" +CONFIG_CHECK="ATM" +ATM_ERROR="This driver requires you to build your kernel with support for Asynchronous Transfer Mode (ATM)" + +pkg_setup() { + MODULE_NAMES="unicorn_pci_atm(extra:${PCI_S}) unicorn_pci_eth(extra:${PCI_S})" + useq usb && MODULE_NAMES="${MODULE_NAMES} unicorn_usb_atm(extra:${USB_S})" + + linux-mod_pkg_setup +} + +src_unpack() { + unpack ${A} + + #As of Linux 2.6.9, timeout is no longer in the URB structure, see: + #http://linux.bkbits.net:8080/linux-2.6/cset@1.1832.8.20 + if [ ${KV_MINOR} -ge 6 ] && [ ${KV_PATCH} -ge 9 ]; then + epatch ${FILESDIR}/bewan-adsl-kill-timeout.patch + fi + + # Fix up broken Makefiles + convert_to_m ${PCI_S}/Makefile + useq usb && convert_to_m ${USB_S}/Makefile +} +src_compile() { einfo "Build common library" cd ${S}/libm emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die unset ARCH #unset ARCH because interfere with 2.6 kernel makefiles - einfo "Build PCI driver" - cd ${S}/unicorn_pci - emake || die "Failed to build PCI driver" - - if use usb; then - einfo "Build USB driver" - cd ${S}/unicorn_usb - emake || die "Failed to build USB driver" - fi - - #Build tools + einfo "Building tools" cd ${S}/tools emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" + + linux-mod_src_compile } src_install() { - if kernel_is 2 6 ; then - KV_OBJ="ko" - else - KV_OBJ="o" - fi + linux-mod_src_install cd ${S} - insinto "/lib/modules/${KV}/kernel/drivers/atm" - doins unicorn_pci/unicorn_pci_atm.${KV_OBJ} && \ - doins unicorn_pci/unicorn_pci_eth.${KV_OBJ} || \ - die "PCI driver not found! Install aborted." - if use usb; then - doins unicorn_usb/unicorn_usb_atm.${KV_OBJ} && \ - doins unicorn_usb/unicorn_usb_eth.${KV_OBJ} || \ - die "USB driver not found! Install aborted." - fi - #Install tools dodir /usr/bin cd ${S}/tools && einstall DESTDIR=${D} prefix=/usr || \ die "Cannot install tools" - if use doc; then + if useq doc; then #Install documantation cd ${S} dodoc README @@ -73,15 +79,11 @@ src_install() { } pkg_postinst() { - einfo "To load the driver do 'insmod unicorn_atm' and 'insmod unicorn_pci' " + einfo "To load the driver do 'modprobe unicorn_atm' and 'modprobe unicorn_pci' " einfo "and then do what you want with it (configure your pppd)" einfo "OR" einfo "it's time to look at the README file, the scripts directory gives you" einfo "two comprehensive ways to load the driver, configure pppd and launch it." - einfo "" - einfo "Checking kernel module dependencies" - test -r "${ROOT}/usr/src/linux/System.map" && \ - depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV} + linux-mod_pkg_postinst } - diff --git a/net-dialup/bewan-adsl/files/bewan-adsl-kill-timeout.patch b/net-dialup/bewan-adsl/files/bewan-adsl-kill-timeout.patch new file mode 100644 index 000000000000..fb4530553665 --- /dev/null +++ b/net-dialup/bewan-adsl/files/bewan-adsl-kill-timeout.patch @@ -0,0 +1,21 @@ +--- unicorn/unicorn_usb/unicorn_usbdrv.c.orig 2004-12-14 23:03:58.498415040 +0000 ++++ unicorn/unicorn_usb/unicorn_usbdrv.c 2004-12-14 23:04:49.927596616 +0000 +@@ -119,8 +119,8 @@ static void dump_urb(struct urb *urb) + + printk(KERN_DEBUG "hcpriv=%p,dev=%p,pipe=%x,status=%d,transfer_flags=%d\n", + urb->hcpriv,urb->dev,urb->pipe,urb->status,urb->transfer_flags); +- printk(KERN_DEBUG "bandwidth=%d,start_frame=%u,interval=%d,error_count=%d,timeout=%d\n", +- urb->bandwidth,urb->start_frame,urb->interval,urb->error_count,urb->timeout); ++ printk(KERN_DEBUG "bandwidth=%d,start_frame=%u,interval=%d,error_count=%d\n", ++ urb->bandwidth,urb->start_frame,urb->interval,urb->error_count); + // buffers + printk(KERN_DEBUG "transfer_buffer=%p,transfer_buffer_length=%d,actual_length=%d\n", + urb->transfer_buffer,urb->transfer_buffer_length,urb->actual_length); +@@ -149,7 +149,6 @@ static void fill_isoc_urb(struct urb *ur + urb->transfer_flags=USB_ISO_ASAP; + urb->start_frame = -1; + urb->interval = 1; +- urb->timeout = 0; + urb->complete=complete; + urb->context=context; + { |