diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-dialup/globespan-adsl | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-dialup/globespan-adsl')
7 files changed, 254 insertions, 0 deletions
diff --git a/net-dialup/globespan-adsl/Manifest b/net-dialup/globespan-adsl/Manifest new file mode 100644 index 000000000000..b3650d489338 --- /dev/null +++ b/net-dialup/globespan-adsl/Manifest @@ -0,0 +1,2 @@ +DIST eciadsl-usermode-0.11.tar.gz 323391 SHA256 2382f315fda4241a0043bac1dfc669f006d8e93e87fa382b263b1672972f4077 +DIST eciadsl-usermode-0.12.tar.gz 338548 SHA256 7159b80bb2ad6185c1d3eb183777ad54af2d0e40d735fc9f4dda9d16276c2947 diff --git a/net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch b/net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch new file mode 100644 index 000000000000..dcb2141197c4 --- /dev/null +++ b/net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch @@ -0,0 +1,31 @@ +--- eciadsl-usermode-0.11/pusb-linux.c.orig 2007-11-24 23:05:42.000000000 +0100 ++++ eciadsl-usermode-0.11/pusb-linux.c 2007-11-24 23:12:15.000000000 +0100 +@@ -29,7 +29,6 @@ + #include <string.h> + + #include "pusb-linux.h" +-#include <asm/page.h> + + struct pusb_endpoint_t + { +@@ -392,13 +391,18 @@ + { + struct usbdevfs_bulktransfer bulk; + int ret, received = 0; ++ static long pagesize = 0; ++ ++ if (pagesize == 0) ++ pagesize = sysconf(_SC_PAGESIZE); ++ + + do + { + bulk.ep = ep; + bulk.len = size; +- if (bulk.len > PAGE_SIZE) +- bulk.len = PAGE_SIZE; ++ if (size > pagesize) ++ bulk.len = pagesize; + bulk.timeout = timeout; + bulk.data = buf; + diff --git a/net-dialup/globespan-adsl/files/globespan-adsl-0.11-synch.patch b/net-dialup/globespan-adsl/files/globespan-adsl-0.11-synch.patch new file mode 100644 index 000000000000..344ec3ddbd28 --- /dev/null +++ b/net-dialup/globespan-adsl/files/globespan-adsl-0.11-synch.patch @@ -0,0 +1,85 @@ +diff --git a/eciadsl-synch.c b/eciadsl-synch.c +index 27c1f34..31c51dc 100644 +--- a/eciadsl-synch.c ++++ b/eciadsl-synch.c +@@ -322,7 +322,7 @@ void read_endpoint(pusb_endpoint_t ep_int, int epnum){ + device. So we revert to the old behaviour : NO TIMEOUTS ... + */ + +- ret = pusb_endpoint_read(ep_int, lbuf, sizeof(lbuf), 0); ++ ret = pusb_endpoint_read_int(ep_int, lbuf, sizeof(lbuf)); + + if (ret < 0) + { +diff --git a/pusb-linux.c b/pusb-linux.c +index 79b7545..b5bf1dd 100644 +--- a/pusb-linux.c ++++ b/pusb-linux.c +@@ -340,6 +340,54 @@ int pusb_endpoint_rw_no_timeout(int fd, int ep, + return(purb->actual_length); + } + ++int pusb_endpoint_read_int_no_timeout(int fd, int ep, ++ unsigned char* buf, int size) ++{ ++ struct usbdevfs_urb urb, *purb = &urb; ++ int ret; ++ ++ memset(purb, 0, sizeof(urb)); ++ ++ purb->type = USBDEVFS_URB_TYPE_INTERRUPT; ++ purb->endpoint = ep; ++ purb->flags = 0; ++ purb->buffer = buf; ++ purb->buffer_length = size; ++ purb->signr = 0; ++ ++ do ++ { ++ ret = ioctl(fd, USBDEVFS_SUBMITURB, purb); ++ } ++ while (ret < 0 && errno == EINTR); ++ ++ if (ret < 0) ++ return(ret); ++ ++ do ++ { ++ ret = ioctl(fd, USBDEVFS_REAPURB, &purb); ++ } ++ while (ret < 0 && errno == EINTR); ++ ++ if (ret < 0) ++ return(ret); ++ ++ if (purb != &urb) ++ printf("purb=%p, &urb=%p\n", (void*)purb, (void*)&urb); ++ ++ if (purb->buffer != buf) ++ printf("purb->buffer=%p, buf=%p\n", (void*)purb->buffer, (void*)buf); ++ ++ return(purb->actual_length); ++} ++ ++int pusb_endpoint_read_int(pusb_endpoint_t ep, ++ unsigned char* buf, int size) ++{ ++ return(pusb_endpoint_read_int_no_timeout(ep->fd, ep->ep|USB_DIR_IN, buf, size)); ++} ++ + int pusb_endpoint_rw(int fd, int ep, unsigned char* buf, int size, int timeout) + { + struct usbdevfs_bulktransfer bulk; +diff --git a/pusb.h b/pusb.h +index 921543b..112e41f 100644 +--- a/pusb.h ++++ b/pusb.h +@@ -30,6 +30,8 @@ int pusb_release_interface(pusb_device_t dev,int interface); + pusb_endpoint_t pusb_endpoint_open(pusb_device_t dev, int epnum, int flags); + int pusb_endpoint_read(pusb_endpoint_t ep, + unsigned char *buf, int size, int timeout); ++int pusb_endpoint_read_int(pusb_endpoint_t ep, ++ unsigned char *buf, int size); + int pusb_endpoint_write(pusb_endpoint_t ep, + const unsigned char *buf, int size, int timeout); + diff --git a/net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch b/net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch new file mode 100644 index 000000000000..efed69327251 --- /dev/null +++ b/net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch @@ -0,0 +1,34 @@ +diff -Nru eciadsl-usermode-0.12.orig/pusb-linux.c eciadsl-usermode-0.12/pusb-linux.c +--- eciadsl-usermode-0.12.orig/pusb-linux.c 2007-08-25 08:41:28.000000000 +0300 ++++ eciadsl-usermode-0.12/pusb-linux.c 2007-08-25 08:42:27.000000000 +0300 +@@ -29,7 +29,6 @@ + #include <string.h> + + #include "pusb-linux.h" +-#include <asm/page.h> + + #include "pusb.h" + +@@ -430,16 +429,20 @@ + { + static struct usbdevfs_bulktransfer bulk; + static int ret; ++ static long pagesize = 0; + int received = 0; + ++ if (pagesize == 0) ++ pagesize = sysconf(_SC_PAGESIZE); ++ + do + { + bulk.ep = ep; + + bulk.len = size; + +- if (size > PAGE_SIZE) +- bulk.len = PAGE_SIZE; ++ if (size > pagesize) ++ bulk.len = pagesize; + + bulk.timeout = timeout; + bulk.data = buf; diff --git a/net-dialup/globespan-adsl/globespan-adsl-0.11-r1.ebuild b/net-dialup/globespan-adsl/globespan-adsl-0.11-r1.ebuild new file mode 100644 index 000000000000..b381b276421d --- /dev/null +++ b/net-dialup/globespan-adsl/globespan-adsl-0.11-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_PN="eciadsl-usermode-${PV}" + +DESCRIPTION="Driver for various ADSL modems. Also known as EciAdsl" +SRC_URI="http://eciadsl.flashtux.org/download/${MY_PN}.tar.gz" +HOMEPAGE="http://eciadsl.flashtux.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="tk" + +DEPEND="net-dialup/ppp" +RDEPEND="${DEPEND} + dev-lang/perl + tk? ( >=dev-lang/tk-8.3.4 )" + +S="${WORKDIR}/${MY_PN}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-synch.patch + epatch "${FILESDIR}"/${P}-pagesize.patch +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc README* TROUBLESHOOTING* ChangeLog || die "failed to install documentation" +} + +pkg_postinst() { + elog + elog "Package succesfully installed you should now run " + elog "eciconf.sh (graphical, requires TCL/TK) or eciconftxt.sh" + elog + elog "Paquetage installé avec succés vous devriez maintenant" + elog "executer eciconf.sh (qui requiert TCL/TK) ou eciconftxt.sh" + elog + ewarn "Please note that if you're using a 2.6.x kernel you'll" + ewarn "probably need to apply a patch to fix a USB bug. See" + ewarn "http://eciadsl.flashtux.org/download/beta/" + ewarn +} diff --git a/net-dialup/globespan-adsl/globespan-adsl-0.12.ebuild b/net-dialup/globespan-adsl/globespan-adsl-0.12.ebuild new file mode 100644 index 000000000000..c152e11f15e3 --- /dev/null +++ b/net-dialup/globespan-adsl/globespan-adsl-0.12.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +MY_PN="eciadsl-usermode-${PV}" + +DESCRIPTION="Driver for various ADSL modems. Also known as EciAdsl" +SRC_URI="http://eciadsl.flashtux.org/download/${MY_PN}.tar.gz" +HOMEPAGE="http://eciadsl.flashtux.org" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-amd64 x86" +IUSE="tk" + +DEPEND="net-dialup/ppp" +RDEPEND="${DEPEND} + dev-lang/perl + tk? ( >=dev-lang/tk-8.3.4 )" + +S="${WORKDIR}/${MY_PN}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-pagesize.patch +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + if ! use tk ; then + rm "${D}"/usr/bin/eciadsl-config-tk + fi + dodoc README* TROUBLESHOOTING* ChangeLog || die "failed to install documentation" +} + +pkg_postinst() { + elog + elog "Package succesfully installed you should now run " + elog "eciconf.sh (graphical, requires TCL/TK) or eciconftxt.sh" + elog + elog "Paquetage installé avec succés vous devriez maintenant" + elog "executer eciconf.sh (qui requiert TCL/TK) ou eciconftxt.sh" + elog +} diff --git a/net-dialup/globespan-adsl/metadata.xml b/net-dialup/globespan-adsl/metadata.xml new file mode 100644 index 000000000000..58a624c08f76 --- /dev/null +++ b/net-dialup/globespan-adsl/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-dialup</herd> +<longdescription>ADSL modem driver for Globespan/ECI chipsets.</longdescription> +</pkgmetadata> |