diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-dialup/globespan-adsl |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-dialup/globespan-adsl')
7 files changed, 260 insertions, 0 deletions
diff --git a/net-dialup/globespan-adsl/Manifest b/net-dialup/globespan-adsl/Manifest new file mode 100644 index 000000000000..b6175f202c9c --- /dev/null +++ b/net-dialup/globespan-adsl/Manifest @@ -0,0 +1,10 @@ +AUX globespan-adsl-0.11-pagesize.patch 669 SHA256 291e4a33108b0d2cd78d1fe2725210c668d8e982e442c99366ab4e872379b890 SHA512 b767da78fcd4f482076449c23ecd8dc9be8ef672a6c7d6b0dfa666fe834aab1d0c31ad84dd46359178583131ce800b3e40af8aa66a66f65a0857ad31ff5d3ac2 WHIRLPOOL bbe9ddfbbcef11d7f806e7090e32716d3923613111b6174266a29d0eae98db6e879a49261ce390e8edfaa95679fb729135cabdcd6b67fdd5fb4f1561419266a5 +AUX globespan-adsl-0.11-synch.patch 2283 SHA256 77667877afed9bcabe5d45ea460eb7e92d6df92cb77f49799f8817fd4fb3e003 SHA512 ddc571f4d3d0ccf2e0978c28a47cec94332823dfc8bb9cb127b3ff70a166f3464d4fdf7a5a02c4e13593630414c40cf36c378e58285ad8d59bdb69b01b4fdac2 WHIRLPOOL 1b1f4f7d392f12305ecca6d0fc2cbe4a86592decc04febbe94f8943cae8d8bfa43676d3b9f227b27d90a710249f293c67b22a8eda00a86c4d79a9a659e9b988c +AUX globespan-adsl-0.12-pagesize.patch 756 SHA256 4b0853f5a6a0dd24b30d6dbfca275406368ad8b8625b06aab778757ffe5485db SHA512 2bfb5a8706d2f5276d4c0818eadafd19f7f06ab42c07dc767aba9f0c356c9e72cf42f51c7cc9a3c559a1a13a8082c6eb6156a3d5d6dec5979df99e577d9d156a WHIRLPOOL 9f84eccf7b9e0ca3285425ea8e28a42e37e98212cfa326e631c125b49df0c15516471c1ec415e8fd1d0be5ca1988bea15cf94302d6d1840b25b22ea28eb20058 +DIST eciadsl-usermode-0.11.tar.gz 323391 SHA256 2382f315fda4241a0043bac1dfc669f006d8e93e87fa382b263b1672972f4077 SHA512 4ac8f537538a5e1d93158bfb51810e331a684b424ad44cd3fa880dcfb3c2a3167900c29bc0b8762a30b3b565b08c64aca7446ac5d66ec4ee00ad706ea71d2dd7 WHIRLPOOL 0838b13b0a3197e77593530149ef45034c37e5fcce7cd5ae23019e3cdf7087aa41227f7f6a4587e77f8e2aab8d69e6d2ddd618684827b754e99c986b8f115709 +DIST eciadsl-usermode-0.12.tar.gz 338548 SHA256 7159b80bb2ad6185c1d3eb183777ad54af2d0e40d735fc9f4dda9d16276c2947 SHA512 6f16d0ec0fecb133ff0057607324415aa6a6580e72d9950379a2307b77900651c101be1e762aed18fc3343935c7bb35085a51672f839c52d22d9493a41c4354d WHIRLPOOL 6e74072e2bb76ca0f83641f9587596fa0fa2eccdac1a5570c85346c6f01a8a230ff0952bcb70661c3c71ce351ca7eef46f96ee9e03d057e626ae5e5ee9b36aa7 +EBUILD globespan-adsl-0.11-r1.ebuild 1259 SHA256 c4902887f1f35548498d74813ab6defcee6356396b442ca9a9a0b68721d00adf SHA512 638fc65dbf2cd9b95cf2a0af0530d32e64653695eb7eeb8c254d4dd5bc1e2bbe4473e40b79c2170ff19cf97c993b63be5f9877b184deb8feda676851043b3bff WHIRLPOOL 35dea6e9e5fba5028252b3bcf2334a1bca6024ab42ba7daca9be0f0c356a42efe987a8540997d4374f3c8e29319a046b610d45de415878742761bb8ffb38ad6e +EBUILD globespan-adsl-0.12.ebuild 1097 SHA256 82a03ded70aed6e9b668618ffe084f52781eb00449dd52499d520b889f99095a SHA512 f919a7237fda90f42a2575c10f401151c979819df9a1049768d9391d7cb617e3ef98f235fd6d92d84fa1e0a01af700acc35ca57274a935abb751bc0f6660e73c WHIRLPOOL 8749a2d4bf6887827d6c7d2e3110b260a42a68016121a62aa3276b70d25ebcd644e8b51c5af5f0f5cbcfb5e6c7cad23139452cddfcad51abdeeb602afb2857b7 +MISC ChangeLog 2679 SHA256 6ed8744f59147f032b11b4d6206fcbd5f1f02c4bd35d4e375e1fb0d2e231c979 SHA512 c77c24718c28c2886b8b7c38d7f7ede3e19fe10715f0570c22bebfd2aaffe6f5a7392f39210e1a1d7aca0ae8c0ddb4f53956e4f962ed88a34bc6fbd47d2f102e WHIRLPOOL 90dcb4994a6d18c34f02829d3aee3b7088ee9f96ddcdf5216271470eba1f09dae93b7546128c9f10fe6b7097ee1cd0616db25de49b40950ad632038156d455cc +MISC ChangeLog-2015 4227 SHA256 6ebcb4e0955f706c4eb4e2d38938c5d75d65062750335dba5a26c49233ecff98 SHA512 81fa91d6363acc0966998552d04bc505bd3e723c6854cacfb093b6afb864e7d17221287ddb4c842541bb87377985ed6634e236445b1571c7b12d1677eb2cefb2 WHIRLPOOL 614685a02d4ac18cf56d58dcc451962bec508084bd1294ed83af98bf36a67da7b955861aa239ec4d19db99131f47f2ec20c379cb864031fbc8b50be0fdd93d8e +MISC metadata.xml 247 SHA256 fe7eb4e436c290f4557ec9792e437d08e492349db9b5347d0cc5ffedb439ffc7 SHA512 20fb6e12a8b7ba83efda9ae4b4146674eeb64cb9c4603b2e690a3af236f8dadedc676d8c9fd1caa7aa52f62a1c3c0683c52d74ea9db35371415b9ecf4d96371d WHIRLPOOL 269e21e114146273738389575fce97af3d65ab35f9b408f19fd526be3ced2e76642437f4b15a6d9b5fb761838014f5319d3eb1d2e8e1b324667579255bc03d0b 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..6af732cd9f0d --- /dev/null +++ b/net-dialup/globespan-adsl/globespan-adsl-0.11-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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..ef699961969c --- /dev/null +++ b/net-dialup/globespan-adsl/globespan-adsl-0.12.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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..a814de526b50 --- /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> +<!-- maintainer-needed --> +<longdescription>ADSL modem driver for Globespan/ECI chipsets.</longdescription> +</pkgmetadata> |