--- rt2570-1.1.0+cvs20060620.orig/debian/changelog +++ rt2570-1.1.0+cvs20060620/debian/changelog @@ -0,0 +1,28 @@ +rt2570 (1.1.0+cvs20060620-3) unstable; urgency=low + + * debian/rules: fix a bashims (closes: bug#385206). + + -- Aurelien Jarno Wed, 30 Aug 2006 15:03:38 +0200 + +rt2570 (1.1.0+cvs20060620-2) unstable; urgency=low + + * Fixed a typo in the description. + + -- Aurelien Jarno Tue, 1 Aug 2006 16:42:08 +0200 + +rt2570 (1.1.0+cvs20060620-1) unstable; urgency=low + + * New upstream CVS. + * Bumped Standards-Version to 3.7.2 (no changes). + + -- Aurelien Jarno Tue, 11 Jul 2006 11:29:20 +0200 + +rt2570 (1.1.0+cvs20060421-1) unstable; urgency=low + + * Initial Release (closes: bug#339599). + + -- Aurelien Jarno Sun, 29 May 2005 19:03:04 +0200 + +Local variables: +mode: debian-changelog +End: --- rt2570-1.1.0+cvs20060620.orig/debian/compat +++ rt2570-1.1.0+cvs20060620/debian/compat @@ -0,0 +1 @@ +4 --- rt2570-1.1.0+cvs20060620.orig/debian/control +++ rt2570-1.1.0+cvs20060620/debian/control @@ -0,0 +1,22 @@ +Source: rt2570 +Section: net +Priority: extra +Build-Depends: debhelper (>= 4.0) +Maintainer: Aurelien Jarno +Uploaders: Ben Hutchings +Standards-Version: 3.7.2 + +Package: rt2570-source +Architecture: all +Depends: debhelper (>= 4.0), module-assistant +Suggests: gcc-3.3 +Description: RT2570 wireless network drivers source + This package provides the source code of the Linux drivers for wireless + network cards using Ralink RT2570. + . + In order to compile the kernel modules you need the kernel sources (or + the kernel-headers for the kernel-image packages from Debian). For + compile instructions look into /usr/share/doc/rt2570-source/README.Debian + or simply use the module-assistant utility. + . + Homepage: http://rt2x00.serialmonkey.com/ --- rt2570-1.1.0+cvs20060620.orig/debian/rt2570-source.dirs +++ rt2570-1.1.0+cvs20060620/debian/rt2570-source.dirs @@ -0,0 +1,2 @@ +usr/src/modules +usr/share/modass/overrides --- rt2570-1.1.0+cvs20060620.orig/debian/rt2570-source.README.Debian +++ rt2570-1.1.0+cvs20060620/debian/rt2570-source.README.Debian @@ -0,0 +1,66 @@ +README.Debian for rt2570-source +Aurelien Jarno +$Id: rt2570-source.README.Debian,v 1.0 2006/04/22 23:59:42 aurel32 Exp $ + +1. Building rt2570 kernel modules +================================= + +This package is a source package that can be used to build modules that +work with your custom built linux kernel. The source files are located +in /usr/src/rt2570.tar.gz; unpacking that file in /usr/src will produce +a build tree in /usr/src/modules/rt2570/. (The tar file can also be +unpacked elsewhere) + +- The Debian way (with module-assistant): install the "module-assistant" + package and the kernel-headers-* package corresponding to the kernel + version you want to use, then run the following commands: + + # module-assistant prepare # May not be needed + # module-assistant get rt2570 + # module-assistant build rt2570 + + You should now have an rt2570-modules-.deb file in /usr/src, + which you can install with dpkg -i to get the modules installed. + +- The "by hand" way: if you prefer handling your kernel by hand, then + you're supposed to know what to do with rt2570-source and I won't + bother you any longer. + +There also used to be a third way, using kernel-package. It's been +removed (module-assistant becoming the standard way to build modules +/in Debian). For reference, here's the text that used to be above +(will probably be removed in some future version): +,---- +| You probably want to use kernel-package for building these modules. +| Install it and read /usr/share/kernel-package/README.modules. Having +| built a kernel with kernel-package, it should suffice to be in the top +| directory of your kernel source tree and run: +| +| make-kpkg modules-image +| +| If you are using a prebuilt Debian kernel, the process is almost the +| same. Enter in the directory containing the kernel headers +| corresponding to your kernel and run make-kpkg: +| +| cd /usr/src/kernel-headers-2.4.26-1-686 +| make-kpkg modules-image +`---- + + +2. Configuration +================ + +To configure your wireless network interface, you can use iwconfig from +the wireless-tools package. It is possible to include the configuration +into /etc/network/interfaces such as in the following example: + +auto eth1 +iface eth1 inet dhcp + wireless-mode managed + wireless-channel 6 + wireless-essid my_wifi_network + wireless-rate 54M + +Please look at the documentation of the wireless-tools package for more +information. + --- rt2570-1.1.0+cvs20060620.orig/debian/rt2570-source.docs +++ rt2570-1.1.0+cvs20060620/debian/rt2570-source.docs @@ -0,0 +1,2 @@ +FAQ +THANKS --- rt2570-1.1.0+cvs20060620.orig/debian/control.modules.in +++ rt2570-1.1.0+cvs20060620/debian/control.modules.in @@ -0,0 +1,20 @@ +Source: rt2570 +Section: net +Priority: extra +Build-Depends: debhelper (>= 4.0.0) +Maintainer: Aurelien Jarno +Standards-Version: 3.7.2 + +Package: rt2570-modules-_KVERS_ +Architecture: any +Recommends: linux-image-_KVERS_ | kernel-image-_KVERS_, wireless-tools +Suggests: rt2570 +Description: RT2570 wireless network drivers + This package contains the set of loadable kernel modules for wireless + network cards using Ralink RT2570 chips. + . + The modules were compiled to be compatible with the kernel in the + _KVERS_ package. + . + Homepage: http://rt2x00.serialmonkey.com + --- rt2570-1.1.0+cvs20060620.orig/debian/copyright +++ rt2570-1.1.0+cvs20060620/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Aurelien Jarno on +Sat, 22 Apr 2006 23:56:44 +0200. + +It was downloaded from http://rt2x00.serialmonkey.com/ + +Copyright + + This package is copyright Ivo van Doorn , Luis Correia + , Mark Wallis and + others. See THANKS for more detail. + +License: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License with + the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; + if not, write to the Free Software Foundation, Inc., 51 Franklin St, + Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + --- rt2570-1.1.0+cvs20060620.orig/debian/docs.modules.in +++ rt2570-1.1.0+cvs20060620/debian/docs.modules.in @@ -0,0 +1,2 @@ +FAQ +THANKS --- rt2570-1.1.0+cvs20060620.orig/debian/rules +++ rt2570-1.1.0+cvs20060620/debian/rules @@ -0,0 +1,162 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 by Joey Hess. +# +# This version is for a hypothetical package that builds an +# architecture-dependant package, as well as an architecture-independent +# package. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# prefix of the target package name +PACKAGE=rt2570-modules +# modifieable for experiments or debugging m-a +MA_DIR ?= /usr/share/modass +# load generic variable handling +-include $(MA_DIR)/include/generic.make +# load default rules +-include $(MA_DIR)/include/common-rules.make + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +clean: + dh_testdir + dh_testroot + -$(MAKE) -C Module clean + dh_clean + rm -rf debian/build + rm -f *-stamp + +build-indep: build-indep-stamp +build-indep-stamp: + dh_testdir + + # Copy most of the source tree into the temp directory and clean it + cd $(CURDIR)/Module \ + && find . -path ./debian/\* -type d -prune -o -print \ + | egrep -v 'RPM|CVS|debian' \ + | cpio -admp $(CURDIR)/debian/build/usr/src/modules/rt2570 + cp -f $(CURDIR)/FAQ $(CURDIR)/debian/build/usr/src/modules/rt2570 + cp -f $(CURDIR)/THANKS $(CURDIR)/debian/build/usr/src/modules/rt2570 + cp -f $(CURDIR)/CHANGELOG $(CURDIR)/debian/build/usr/src/modules/rt2570 + ln -s /usr/share/doc/rt2570-source/README.Debian $(CURDIR)/debian/build/usr/src/modules/rt2570/INSTALL.Debian + + mkdir $(CURDIR)/debian/build/usr/src/modules/rt2570/debian + cp -f $(CURDIR)/debian/*.modules.in $(CURDIR)/debian/build/usr/src/modules/rt2570/debian + cp -f $(CURDIR)/debian/changelog $(CURDIR)/debian/build/usr/src/modules/rt2570/debian + cp -f $(CURDIR)/debian/compat $(CURDIR)/debian/build/usr/src/modules/rt2570/debian + cp -f $(CURDIR)/debian/copyright $(CURDIR)/debian/build/usr/src/modules/rt2570/debian + cp -f $(CURDIR)/debian/rt2570-source.docs $(CURDIR)/debian/build/usr/src/modules/rt2570/debian/docs + cp -f $(CURDIR)/debian/rules $(CURDIR)/debian/build/usr/src/modules/rt2570/debian + + cd $(CURDIR)/debian/build/usr/src/modules/rt2570 \ + && make clean + + touch build-indep-stamp + +install-indep: build-indep install-indep-stamp +install-indep-stamp: + dh_testdir + dh_testroot + dh_clean -i -k + dh_installdirs -i + + # Pack this up into a tarball + chown -R root.src debian/build/usr/src/modules + mkdir -p debian/rt2570-source/usr/src + cd debian/build/usr/src \ + && tar cf - modules | gzip -9 > $(CURDIR)/debian/rt2570-source/usr/src/rt2570.tar.gz + ln -s ../packages/default.sh \ + debian/rt2570-source/usr/share/modass/overrides/rt2570-source + + touch install-indep-stamp + +# Build architecture-independent files here. +binary-indep: build-indep install-indep + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i + dh_installdocs -i +# dh_installexamples -i +# dh_installmenu -i +# dh_installlogrotate -i +# dh_installemacsen -i +# dh_installpam -i +# dh_installmime -i +# dh_installinit -i +# dh_installcron -i + dh_installman -i +# dh_installinfo -i + dh_installmodules -i + dh_installchangelogs -i CHANGELOG + dh_strip -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + +PATCHLEVEL := $(shell echo $(KVERS) | cut -d. -f2) + +.PHONY: kdist_config +kdist_config: prep-deb-files + +.PHONY: binary_modules binary-modules +binary-modules: binary_modules +binary_modules: kdist_config + + # Install module + dh_installdirs lib/modules/$(KVERS)/kernel/drivers/net/wireless + + # Build modules +ifeq ($(PATCHLEVEL), 4) + @if ! [ -x "/usr/bin/gcc-3.3" ] ; then \ + echo "gcc-3.3 does not appear to be installed on your. It is necessary to be" ; \ + echo "able to build the module on a 2.4 kernel. Please install it by running:" ; \ + echo " apt-get install gcc-3.3" ; \ + false ; \ + fi + + $(MAKE) KERNDIR=$(KSRC) PATCHLEVEL=$(PATCHLEVEL) CC=gcc-3.3 + install -m 0644 rt2570.o $(CURDIR)/debian/rt2570-modules-$(KVERS)/lib/modules/$(KVERS)/kernel/drivers/net/wireless +endif +ifeq ($(PATCHLEVEL), 6) + $(MAKE) KERNDIR=$(KSRC) PATCHLEVEL=$(PATCHLEVEL) + install -m 0644 rt2570.ko $(CURDIR)/debian/rt2570-modules-$(KVERS)/lib/modules/$(KVERS)/kernel/drivers/net/wireless +endif + + dh_testdir + dh_testroot + dh_installdocs + dh_installmodules + dh_installchangelogs CHANGELOG + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol -- -v$(VERSION) + dh_md5sums + dh_builddeb --destdir=$(DEB_DESTDIR) + +.PHONY: kdist_clean +kdist_clean: + touch config.mk \ + && $(MAKE) clean + -dh_clean --- rt2570-1.1.0+cvs20060620.orig/debian/README.Debian.modules.in +++ rt2570-1.1.0+cvs20060620/debian/README.Debian.modules.in @@ -0,0 +1,42 @@ +README.Debian for rt2570-modules +Aurelien Jarno +$Id: rt2570-modules.README.Debian,v 1.0 2006/04/22 23:59:42 aurel32 Exp $ + +1. Interface name +================= + +The name of the interface has been changed in the Debian package from +rausb%d to eth%d to be conform with the naming scheme of the interfaces +in Debian. Note that the successor of rt2570, namely rt2x00, will also +use this name. + +If you want to change the name of the interface, use the ifname option. +For example, to change the name back to rausb%d, you will have to run: + + modprobe ifname=rausb%d + +This option could be made permanent by putting it in a file that have to +be located in /etc/modprobe.d for 2.6 kernels and in /etc/modutils.d for +2.4 kernels. For example, to change the name back to ra%d, you will have +to use the following line + + options rt2570 ifname=rausb%d + + +2. Configuration +================ + +To configure your wireless network interface, you can use iwconfig from +the wireless-tools package. It is possible to include the configuration +into /etc/network/interfaces such as in the following example: + +auto eth1 +iface eth1 inet dhcp + wireless-mode managed + wireless-channel 6 + wireless-essid my_wifi_network + wireless-rate 54M + +Please look at the documentation of the wireless-tools package for more +information. + --- rt2570-1.1.0+cvs20060620.orig/Module/rtusb_main.c +++ rt2570-1.1.0+cvs20060620/Module/rtusb_main.c @@ -1580,7 +1580,7 @@ for (i = 0; i < 8; i++) { - sprintf(slot_name, "rausb%d", i); + sprintf(slot_name, "eth%d", i); for (device = dev_base; device != NULL; device = device->next) { @@ -1597,7 +1597,7 @@ return NULL; } - sprintf(pAdapter->net->name, "rausb%d", i); + sprintf(pAdapter->net->name, "eth%d", i); DBGPRINT(RT_DEBUG_ERROR, "usbdevice->name %s\n",pAdapter->net->name); } @@ -1900,7 +1900,7 @@ for (i = 0; i < 8; i++) { - sprintf(slot_name, "rausb%d", i); + sprintf(slot_name, "eth%d", i); for (device = dev_base; device != NULL; device = device->next) { @@ -1917,7 +1917,7 @@ return res; } - sprintf(pAdapter->net->name, "rausb%d", i); + sprintf(pAdapter->net->name, "eth%d", i); } pAdapter->rx_bh.func = RTUSBRxPacket;