--- atl2-2.0.5.orig/debian/rules.modules +++ atl2-2.0.5/debian/rules.modules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +# module-assistant stuff +PACKAGE = atl2-modules +MA_DIR ?= /usr/share/modass +-include $(MA_DIR)/include/generic.make +-include $(MA_DIR)/include/common-rules.make + +kdist_clean: prep-deb-files + dh_clean + $(MAKE) clean + +kdist_config: prep-deb-files + +binary-modules: kdist_config + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs lib/modules/$(KVERS)/misc + + # build module + $(MAKE) -C $(CURDIR) KSRC=$(KSRC) + # install module + dh_install atl2.ko lib/modules/$(KVERS)/misc + + dh_installdocs + dh_installchangelogs + dh_installmodules + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol -- -v$(VERSION) + dh_md5sums + dh_builddeb --destdir=$(DEB_DESTDIR) --- atl2-2.0.5.orig/debian/atl2-source.README.Debian +++ atl2-2.0.5/debian/atl2-source.README.Debian @@ -0,0 +1,41 @@ +atl2 for Debian +--------------- + +This package provides the atl2 source code and binaries that can be used +to build modules that work with your custom built linux kernel. The source +files are located in /usr/src/atl2.tar.bz2; unpacking that file in /usr/src +will produce a build tree in /usr/src/modules/atl2/ (The tar file can also be +unpacked elsewhere). + +Building atl2 kernel modules with module-assistant +================================================== + +Please install the module-assistant package and issue the following commands:- + + $ m-a prepare + $ m-a a-i atl2 + +The above commands will prepare, compile, package and install a set of +atl2 modules for your kernel. + +m-a is short for module-assistant, and a-i is short for auto-install. Please +see the module-assistant documentation for further details. + + +Building atl2 kernel modules (kernel-package) +============================================= + +If necessary, prepare the kernel source tree for the target kernel. If you are +using a self compiled kernel than you have an easy task! + + $ cd /usr/src + $ tar jxvf atl2.tar.bz2 + $ cd linux-$KVERS + $ make-kpkg --added-modules atl2 modules + +Where $KVERS is the exact version string of the kernel you want to build +atl2 for. A atl2-modules package will be built against the kernel +source version specified. Look at the output for where the atl2-modules +package is located. Then use dpkg to install the module package by hand, eg:- + + $ dpkg -i /usr/src/atl2-modules-$KVERS.deb --- atl2-2.0.5.orig/debian/atl2-source.dirs +++ atl2-2.0.5/debian/atl2-source.dirs @@ -0,0 +1 @@ +usr/src/ --- atl2-2.0.5.orig/debian/rules +++ atl2-2.0.5/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +install/atl2-source:: + # Enforce executable bit on debian/rules, and create directory + # structure for modules source + install -D -m 0755 debian/rules.modules \ + debian/tmp/modules/atl2/debian/rules + + # Prepare the other debian stuff + for f in *.modules.in control compat copyright changelog; do \ + install -m 0644 debian/$$f \ + debian/tmp/modules/atl2/debian/; \ + done + + # Prepare upstream source + install -m 0644 Makefile *.[ch] debian/tmp/modules/atl2/ + + # Prepare the debian source tarball + tar jcf debian/atl2-source/usr/src/atl2.tar.bz2 \ + -C debian/tmp modules --- atl2-2.0.5.orig/debian/control +++ atl2-2.0.5/debian/control @@ -0,0 +1,15 @@ +Source: atl2 +Section: net +Priority: optional +Maintainer: Ben Armstrong +Build-Depends: cdbs, debhelper (>= 5.0.37), bzip2, patchutils +Standards-Version: 3.7.3 +Homepage: http://people.redhat.com/csnook/atl2/ + +Package: atl2-source +Architecture: all +Depends: debhelper (>= 5.0.37), module-assistant, bzip2 +Description: Linux Base Driver for the Atheros(R) L2 Fast Ethernet Adapter + atl2 is the Linux Base Driver for the Atheros(R) L2 Fast Ethernet Adapter. + The the Atheros(R) L2 Fast Ethernet Adapter is present in a few low cost + Asus laptop systems, such as the Asus Eee PC. --- atl2-2.0.5.orig/debian/atl2-source.links +++ atl2-2.0.5/debian/atl2-source.links @@ -0,0 +1 @@ +usr/share/modass/packages/default.sh usr/share/modass/overrides/atl2-source --- atl2-2.0.5.orig/debian/changelog +++ atl2-2.0.5/debian/changelog @@ -0,0 +1,42 @@ +atl2 (2.0.5-1) unstable; urgency=low + + * New upstream release. + + -- Ben Armstrong Sat, 09 Aug 2008 08:49:16 -0300 + +atl2 (2.0.3-3) unstable; urgency=low + + * Architecture: any, not all. (Closes: #463328) + + -- Ben Armstrong Sun, 03 Feb 2008 12:49:01 -0400 + +atl2 (2.0.3-2) unstable; urgency=low + + * Handle undefined SET_MODULE_OWNER to allow compilation with + kernels >=2.6.24. (Closes: 460901) + + -- Ben Armstrong Sun, 27 Jan 2008 18:10:39 -0400 + +atl2 (2.0.3-1) unstable; urgency=low + + * Adopt new upstream maintainers release, Chris Snook has put his hand up to + get atl2 into mainline linux. + * Adjust debian/copyright to reflect new upstream maintainer and copyright. + * Add debian/watch file to assist in tracking new upstream snapshot + releases. + * Add Homepage field to debian/control. + * Drop patches required to coax the latest Atheros release into compilation + against recent linux releases. + * Modify debian/rules to adapt to new upstream source layout. + * Modify debian/rules.modules to adapt to new upstream Makefile. + * Drop debian/atl2-source.docs, there are no docs present in new upstream. + + -- Kel Modderman Tue, 11 Dec 2007 16:00:35 +1000 + +atl2 (1.0.40.4-1) unstable; urgency=low + + * Initial release (thanks to Kel Modderman for the + initial packaging). + + -- Ben Armstrong Sat, 24 Nov 2007 11:18:23 -0400 + --- atl2-2.0.5.orig/debian/control.modules.in +++ atl2-2.0.5/debian/control.modules.in @@ -0,0 +1,16 @@ +Source: atl2 +Section: net +Priority: optional +Maintainer: Kel Modderman +Build-Depends: debhelper (>= 5.0.37), bzip2 +Standards-Version: 3.7.2 + +Package: atl2-modules-_KVERS_ +Architecture: any +Depends: linux-image-_KVERS_ +Description: Driver for the Atheros(R) L2 Fast Ethernet Adapter (kernel _KVERS_) + This package contains the loadable kernel modules for the atl2 + Driver for the Atheros(R) L2 Fast Ethernet Adapter. + . + The modules were compiled to be compatible with the kernel in the + _KVERS_ package. --- atl2-2.0.5.orig/debian/compat +++ atl2-2.0.5/debian/compat @@ -0,0 +1 @@ +5 --- atl2-2.0.5.orig/debian/copyright +++ atl2-2.0.5/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Kel Modderman on +Sat, 24 Nov 2007 12:14:10 +1000. + +It was downloaded from + http://people.redhat.com/csnook/atl2/ + +Upstream Author: + Chris Snook + +Copyright: + Copyright(c) 2007 Chris Snook + Copyright(c) 2007 Atheros Corporation. All rights reserved. + Copyright(c) 2006 xiong huang + Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. + +License: + + This package 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 package 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 + along with this package; 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 can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Kel Modderman and +is licensed under the GPL, see above. --- atl2-2.0.5.orig/debian/watch +++ atl2-2.0.5/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://people.redhat.com/csnook/atl2/atl2-(.*)\.tar\.bz2 debian uupdate