[Pkg-ralink-commits] r3 - in unstable/rt2570: . debian debian/patches

Aurelien Jarno aurel32 at alioth.debian.org
Mon Mar 5 17:21:02 CET 2007


Author: aurel32
Date: 2007-03-05 16:21:02 +0000 (Mon, 05 Mar 2007)
New Revision: 3

Added:
   unstable/rt2570/debian/
   unstable/rt2570/debian/README.Debian.modules.in
   unstable/rt2570/debian/changelog
   unstable/rt2570/debian/compat
   unstable/rt2570/debian/control
   unstable/rt2570/debian/control.modules.in
   unstable/rt2570/debian/copyright
   unstable/rt2570/debian/docs.modules.in
   unstable/rt2570/debian/patches/
   unstable/rt2570/debian/patches/000_if_name.diff
   unstable/rt2570/debian/patches/series
   unstable/rt2570/debian/rt2570-source.README.Debian
   unstable/rt2570/debian/rt2570-source.dirs
   unstable/rt2570/debian/rt2570-source.docs
   unstable/rt2570/debian/rules
Log:
Initial import of the rt2570 package


Added: unstable/rt2570/debian/README.Debian.modules.in
===================================================================
--- unstable/rt2570/debian/README.Debian.modules.in	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/README.Debian.modules.in	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,42 @@
+README.Debian for rt2570-modules
+Aurelien Jarno <aurel32 at debian.org>
+$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.
+

Added: unstable/rt2570/debian/changelog
===================================================================
--- unstable/rt2570/debian/changelog	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/changelog	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,63 @@
+rt2570 (1.1.0+cvs20070219-2) unstable; urgency=low
+
+  * Switch maintainer to "Debian Ralink packages maintainers".
+  * Move Ben Hutchings to uploaders, and add Romain Beauxis to uploaders.
+  * Use quilt for patch management.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Mon,  5 Mar 2007 17:17:22 +0100
+
+rt2570 (1.1.0+cvs20070219-1) unstable; urgency=low
+
+  * Switch Maintainer and Uploader.
+  * New CVS snaphost.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Tue, 20 Feb 2007 01:00:55 +0100
+
+rt2570 (1.1.0+cvs20061231-2) unstable; urgency=low
+
+  * Use bzip2 instead of gzip to compress the sources. 
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Wed,  3 Jan 2007 21:03:54 +0100
+
+rt2570 (1.1.0+cvs20061231-1) unstable; urgency=low
+
+  * New CVS version.
+    - Fix SSID with kernels >= 2.6.19.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Sun, 31 Dec 2006 18:29:47 +0100
+
+rt2570 (1.1.0+cvs20061210-1) unstable; urgency=low
+
+  * New upstream CVS.
+    - Fix build with kernels >= 2.6.19.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Sun, 10 Dec 2006 16:06:06 +0100
+
+rt2570 (1.1.0+cvs20060620-3) unstable; urgency=low
+
+  * debian/rules: fix a bashims (closes: bug#385206).
+
+ -- Aurelien Jarno <aurel32 at debian.org>  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 <aurel32 at debian.org>  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 <aurel32 at debian.org>  Tue, 11 Jul 2006 11:29:20 +0200
+
+rt2570 (1.1.0+cvs20060421-1) unstable; urgency=low
+
+  * Initial Release (closes: bug#339599).
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Sun, 29 May 2005 19:03:04 +0200
+
+Local variables:
+mode: debian-changelog
+End:

Added: unstable/rt2570/debian/compat
===================================================================
--- unstable/rt2570/debian/compat	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/compat	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1 @@
+4

Added: unstable/rt2570/debian/control
===================================================================
--- unstable/rt2570/debian/control	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/control	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,22 @@
+Source: rt2570
+Section: net
+Priority: extra
+Build-Depends: debhelper (>= 4.0), bzip2, quilt
+Maintainer: Debian Ralink packages maintainers <pkg-ralink-maintainers at lists.alioth.debian.org>
+Uploaders: Aurelien Jarno <aurel32 at debian.org>, Ben Hutchings <ben at decadentplace.org.uk>, Romain Beauxis <toots at rastageeks.org>
+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/

Added: unstable/rt2570/debian/control.modules.in
===================================================================
--- unstable/rt2570/debian/control.modules.in	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/control.modules.in	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,20 @@
+Source: rt2570
+Section: net
+Priority: extra
+Build-Depends: debhelper (>= 4.0.0)
+Maintainer: Aurelien Jarno <aurel32 at debian.org>
+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
+   

Added: unstable/rt2570/debian/copyright
===================================================================
--- unstable/rt2570/debian/copyright	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/copyright	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,31 @@
+This package was debianized by Aurelien Jarno <aurel32 at debian.org> 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 <ivd at euronet.nl>, Luis Correia
+  <lfcorreia at users.sf.net>, Mark Wallis <mwallis at serialmonkey.com> 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.
+

Added: unstable/rt2570/debian/docs.modules.in
===================================================================
--- unstable/rt2570/debian/docs.modules.in	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/docs.modules.in	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,2 @@
+FAQ
+THANKS

Added: unstable/rt2570/debian/patches/000_if_name.diff
===================================================================
--- unstable/rt2570/debian/patches/000_if_name.diff	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/patches/000_if_name.diff	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,38 @@
+--- Module/rtusb_main.c
++++ Module/rtusb_main.c
+@@ -1583,7 +1583,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)
+ 			{
+@@ -1600,7 +1600,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);
+ 	}
+ 
+@@ -1902,7 +1902,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)
+ 			{
+@@ -1919,7 +1919,7 @@
+ 			return res;
+ 		}
+ 
+-		sprintf(pAdapter->net->name, "rausb%d", i);
++		sprintf(pAdapter->net->name, "eth%d", i);
+ 	}
+ 
+ 	pAdapter->rx_bh.func = RTUSBRxPacket;

Added: unstable/rt2570/debian/patches/series
===================================================================
--- unstable/rt2570/debian/patches/series	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/patches/series	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1 @@
+000_if_name.diff -p0

Added: unstable/rt2570/debian/rt2570-source.README.Debian
===================================================================
--- unstable/rt2570/debian/rt2570-source.README.Debian	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/rt2570-source.README.Debian	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,66 @@
+README.Debian for rt2570-source
+Aurelien Jarno <aurel32 at debian.org>
+$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.bz2; 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-<version>.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.
+

Added: unstable/rt2570/debian/rt2570-source.dirs
===================================================================
--- unstable/rt2570/debian/rt2570-source.dirs	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/rt2570-source.dirs	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,2 @@
+usr/src/modules
+usr/share/modass/overrides

Added: unstable/rt2570/debian/rt2570-source.docs
===================================================================
--- unstable/rt2570/debian/rt2570-source.docs	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/rt2570-source.docs	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,2 @@
+FAQ
+THANKS

Added: unstable/rt2570/debian/rules
===================================================================
--- unstable/rt2570/debian/rules	2007-03-05 12:51:28 UTC (rev 2)
+++ unstable/rt2570/debian/rules	2007-03-05 16:21:02 UTC (rev 3)
@@ -0,0 +1,165 @@
+#!/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
+	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
+	dh_clean	
+	rm -rf debian/build
+	rm -f *-stamp
+
+build-indep: build-indep-stamp
+build-indep-stamp:
+	dh_testdir
+
+	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+
+	# 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 | bzip2 -9 > $(CURDIR)/debian/rt2570-source/usr/src/rt2570.tar.bz2
+	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


Property changes on: unstable/rt2570/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-ralink-commits mailing list