diff options
4 files changed, 91 insertions, 1 deletions
diff --git a/net-dialup/globespan-adsl/ChangeLog b/net-dialup/globespan-adsl/ChangeLog index 482037e700ab..54d9cd6b112c 100644 --- a/net-dialup/globespan-adsl/ChangeLog +++ b/net-dialup/globespan-adsl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dialup/globespan-adsl # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/globespan-adsl/ChangeLog,v 1.21 2007/05/19 04:53:29 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/globespan-adsl/ChangeLog,v 1.22 2007/08/25 05:55:37 mrness Exp $ + +*globespan-adsl-0.12 (25 Aug 2007) + + 25 Aug 2007; Alin Năstac <mrness@gentoo.org> + +files/globespan-adsl-0.12-pagesize.patch, +globespan-adsl-0.12.ebuild: + Version bump. *globespan-adsl-0.11-r1 (19 May 2007) diff --git a/net-dialup/globespan-adsl/files/digest-globespan-adsl-0.12 b/net-dialup/globespan-adsl/files/digest-globespan-adsl-0.12 new file mode 100644 index 000000000000..a3d59a8c619f --- /dev/null +++ b/net-dialup/globespan-adsl/files/digest-globespan-adsl-0.12 @@ -0,0 +1,3 @@ +MD5 f04186246ecf1dcbc7ca71b15cebd87b eciadsl-usermode-0.12.tar.gz 338548 +RMD160 7bb80555ee5da05b3fbb3e6db3dcbe49159514bd eciadsl-usermode-0.12.tar.gz 338548 +SHA256 7159b80bb2ad6185c1d3eb183777ad54af2d0e40d735fc9f4dda9d16276c2947 eciadsl-usermode-0.12.tar.gz 338548 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.12.ebuild b/net-dialup/globespan-adsl/globespan-adsl-0.12.ebuild new file mode 100644 index 000000000000..502ec3b7878a --- /dev/null +++ b/net-dialup/globespan-adsl/globespan-adsl-0.12.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/globespan-adsl/globespan-adsl-0.12.ebuild,v 1.1 2007/08/25 05:55:37 mrness Exp $ + +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} + 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 +} |