diff --git a/README.md b/README.md index 44ac0f6..3876d9a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # eciadsl +With this driver you can connect your computer to the Internet under Linux, using ECI HiFocus USB modem or Globespan based modem. + diff --git a/eciadsl-usermode-0.12-kernel_include.patch b/eciadsl-usermode-0.12-kernel_include.patch new file mode 100644 index 0000000..af0e00a --- /dev/null +++ b/eciadsl-usermode-0.12-kernel_include.patch @@ -0,0 +1,49 @@ +--- eciadsl-usermode-0.12/pusb-linux.c 2007-04-03 22:17:44.000000000 +0200 ++++ eciadsl-usermode-cvs-20090423/pusb-linux.c 2008-07-29 11:05:37.000000000 +0200 +@@ -4,8 +4,8 @@ + + ********************************************************************* + File : $RCSfile: pusb-linux.c,v $ +- Version : $Revision: 1.33 $ +- Modified by : $Author: flashcode $ ($Date: 2007/04/03 17:34:12 $) ++ Version : $Revision: 1.34 $ ++ Modified by : $Author: flashcode $ ($Date: 2008/07/29 09:05:37 $) + Licence : GPL + ********************************************************************* + +@@ -29,7 +29,6 @@ + #include + + #include "pusb-linux.h" +-#include + + #include "pusb.h" + +@@ -61,7 +60,7 @@ + }__attribute__ ((packed)); + + /* for ident(1) command */ +-static const char id[] = "@(#) $Id: pusb-linux.c,v 1.33 2007/04/03 17:34:12 flashcode Exp $"; ++static const char id[] = "@(#) $Id: pusb-linux.c,v 1.34 2008/07/29 09:05:37 flashcode Exp $"; + + static const char usb_path[] = "/proc/bus/usb"; + +@@ -431,6 +430,7 @@ + static struct usbdevfs_bulktransfer bulk; + static int ret; + int received = 0; ++ int page_size = getpagesize(); + + do + { +@@ -438,8 +438,8 @@ + + bulk.len = size; + +- if (size > PAGE_SIZE) +- bulk.len = PAGE_SIZE; ++ if (size > page_size) ++ bulk.len = page_size; + + bulk.timeout = timeout; + bulk.data = buf; diff --git a/eciadsl.spec b/eciadsl.spec new file mode 100644 index 0000000..51c1d08 --- /dev/null +++ b/eciadsl.spec @@ -0,0 +1,81 @@ +Name: eciadsl +Version: 0.12 +Release: 3mamba +Summary: User space tools for ECI HiFocus USB modem or Globespan based modem. +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://eciadsl.flashtux.org +Source: http://eciadsl.flashtux.org/download/eciadsl-usermode-%{version}.tar.gz +Source1: http://eciadsl.flashtux.org/download/eciadsl-synch_bin.tar.bz2 +Patch0: %{name}-usermode-0.12-kernel_include.patch +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Obsoletes: eciadsl-usermode +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +Provides: eciadsl-usermode + +%description +With this driver you can connect your computer to the Internet under Linux, using ECI HiFocus USB modem or Globespan based modem. + +%prep +%setup -q -n eciadsl-usermode-%{version} -a1 +%patch0 -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall +#mkdir -p %{buildroot} +#make install ROOT=%{buildroot} +install eciadsl-synch_bin/*.bin eciadsl-synch_bin/README* %{buildroot}/etc/eciadsl/ + +mkdir -p %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/eciadsl.desktop << EOF +[Desktop Entry] +Name=ECI ASDL USB Modem configuration +Comment=ECI Linux driver configuration for USB modems +Comment[it]=Configurazione del driver ECI per modem ADSL USB +Exec=eciadsl-config-tk +Type=Application +Terminal=0 +Icon=kppp +Categories=Application;Network; +X-KDE-RootOnly=true +X-KDE-SubstituteUID=true +X-KDE-Username=root +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_sysconfdir}/eciadsl +%{_sysconfdir}/eciadsl/* +%{_bindir}/* +%doc README TROUBLESHOOTING NEWS COPYING +%{_datadir}/applications/eciadsl.desktop + +%changelog +* Thu Jul 11 2013 Automatic Build System 0.12-3mamba +- automatic rebuild by autodist + +* Sun May 03 2009 Silvan Calarco 0.12-2mamba +- fixed desktop menu entry to launch eciadsl-config-tk +- added synch_bin package + +* Sat Sep 29 2007 Silvan Calarco 0.12-1mamba +- update to 0.12 + +* Mon Jun 28 2004 Silvan Calarco 0.9-2qilnx +- kde menu link added + +* Mon Jun 28 2004 Silvan Calarco 0.9-1qilnx +- first build