⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 madwifi.spec.in.svn-base

📁 最新之atheros芯片driver source code, 基于linux操作系统,內含atheros芯片HAL全部代码
💻 SVN-BASE
字号:
##Gen the last kernel-devel available on the machine.###%{!?kernel: %{expand: %%define        kernel          %(rpm -q kernel-devel --qf %%{version}-%%{release}\\n | sort | tail -1)}}%{!?kernel: %{expand: %%define        kernel          %(rpm -q kernel-devel --last | head -1 | awk '{print $1}' | sed s/kernel-devel-// )}}%if %(echo %{kernel} | grep -c smp)      %{expand:%%define myksmp -smp}%endif#%define       mykversion        %(echo %{kernel} | sed -e s/smp// -)%define       mykrelver         %(echo %{mykversion} | tr -s '-' '_')# Define based on the tar ball extract.# Those two variable will be instanced during the tarball generation%define       revision       @@SVNREL@@%define       snapshot       @@DDAY@@# branch is not used yet.%define       branch         @@BRANCH@@Summary: A linux device driver for Atheros chipsets (ar5210, ar5211, ar5212).Name: madwifiVersion: 0.%{revision}.%{snapshot}Release: 6License: GPL2Group: System Environment/KernelURL: http://madwifi.org#Source0: http://snapshots.madwifi.org/%{name}-%{branch}-r%{revision}-%{snapshot}.tar.gz# Changes accordingly to the new rule :  madwifi-ng-r<revision>-<generation date>.tar.gzSource0: http://snapshots.madwifi.org/madwifi-ng/%{name}-ng-r%{revision}-%{snapshot}.tar.gzBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootRequires: /sbin/depmodRequires: %{name}-module >= %{version}BuildRequires: /sbin/depmodBuildRequires:  /lib/modules/%{mykversion}/build/Makefile%description This software contains a Linux kernel driver for Atheros-basedWireless LAN devices.  The driver supports station, AP, ad-hoc, andmonitor modes of operation.  The Atheros driver depends on adevice-independent implementation of the 802.11 protocols thatoriginated in the BSD community (NetBSD in particular).The driver functions as a normal network device and uses the WirelessExtensions API.  As such normal Linux tools can and should be usedwith it.  Where the wireless extensions are lacking private ioctlshave been added.There is only one driver included here; it supports PCI, miniPCIand Cardbus devices - USB devices are currently not supported bythis driver!  The driver can be built as a module or linkeddirectly into the kernel.  Note however that the net80211 layer isdevice-independent; there is no reason it cannot be used with any802.11 device (in fact on BSD systems this is the case).There are currently 3 "programming generations" of Atheros 802.11wireless devices (some of these have multiple hardware implementationsbut otherwise appear identical to users):5210    supports 11a only5211    supports both 11a and 11b5212    supports 11a, 11b, and 11g%package moduleSummary: A linux device driver for Atheros chipsets (ar5210, ar5211, ar5212).Group: System Environment/KernelRequires: kernel = %{mykversion}Release: 6_%{mykrelver}%description moduleThis software is broken into multiple modules.  The Atheros-specificdevice support is found in the ath_pci module; it should be loadedwhen an Atheros wireless device is recognized.  The ath_pci modulerequires an additional device specific module, ath_hal, which isdescribed more below.  In addition the driver requires the wlanmodule which contains the 802.11 state machine, protocol support,and other device-independent support needed by any 802.11 device.This code is derived from work that first appeared in NetBSD andthen FreeBSD.  The wlan module may also force the loading ofadditional modules for crypto support (wlan_wep, wlan_tkip, wlan_ccmp,etc.), for MAC-based ACL support (wlan_acl), and for 802.1xauthenticator support (wlan_xauth).  The latter modules are only used when operating as an AP.  The crypto modules are loaded when keys of that type are created.%prep #%setup -q #%setup -q -n %{name}-%{branch}-r%{revision}-%{snapshot}%setup -q -n %{name}-ng-r%{revision}-%{snapshot}find . -name Makefile\* | xargs perl -pi -e's,/sbin/depmod,: /sbin/depmod,'%build export KERNELRELEASE=%{mykversion}export KERNELPATH=/lib/modules/%{mykversion}/buildexport KERNELCONF=/lib/modules/%{mykversion}/build/.configexport KMODPATH=/lib/modules/%{mykversion}/netexport COPTS="-I /lib/modules/%{mykversion}/build/include/ $COPTS"# export ATH_RATE=ath_rate/onoemake # cd tools ; make all ; cd ..%install export KERNELRELEASE=%{mykversion}export KERNELPATH=/lib/modules/%{mykversion}/buildexport KERNELCONF=/lib/modules/%{mykversion}/build/.configexport KMODPATH=/lib/modules/%{mykversion}/netrm -rf %{buildroot}# make infomkdir -p  %{buildroot}/usr/local/binmkdir -p  %{buildroot}/$KMODPATHmkdir -p  %{buildroot}/usr/share/madwifimake install DESTDIR=%{buildroot} KERNELPATH=/lib/modules/%{mykversion}/build# cd tools ; make install DESTDIR=%{buildroot} KERNELPATH=/lib/modules/%{mykversion}/build BINDIR=/usr/local/bin  ; cd ..%post  module/sbin/depmod -ae %{mykversion}%postun  module/sbin/depmod -ae %{mykversion}%clean rm -rf %{buildroot}%files%doc COPYRIGHT README INSTALL THANKS %attr(0755,root,root) /usr/local/bin/*%attr(0644,root,root) /usr/local/man/*%files module%defattr(-,root,root,-)/lib/modules/%{mykversion}/net/*.*o#%changelog* Wed Dec 14 2005  Patrick Pichon <Patrick.Pichon@laposte.net>- Update accordingly to the new file name rule:  madwifi-ng-r<revision>-<generation date>.tar.gz- 'branch' tag is not use yet. 'ng' is hardcoded as part of the file name- Change the computation to target the latest kernel-devel env.* Thu Nov 3 2005  Patrick Pichon <Patrick.Pichon@laposte.net>- Incorporate the changes made on the Makefile- Cleaning on the Description fields- Changing the URL to the new madwifi.org's one.- Install under /usr/share/doc/madwifi-release the INSTALL and THANKS files- Install under /usr/share/doc/madwifi-release the docs files.* Sun Oct 30 2005  Patrick Pichon <Patrick.Pichon@laposte.net>- Add Man pages* Mon Oct 24 2005  Lyonel Vincent <>- Fix the --rebuild option.* Mon Oct 3 2005  Lyonel Vincent <>- Build by default on latest kernel installed* Wed Jul 20 2005 Patrick Pichon <Patrick.Pichon@laposte.net- target particular kernel* Mon Oct 27 2004 Patrick Pichon <Patrick.Pichon@laposte.net>- Handle 2.4 kernel* Mon Sep 21 2004 Lyonel Vincent <>- change the naming of the kernel module part.* Mon Aug 23 2004 Patrick Pichon <Patrick.Pichon@laposte.net>- Update WPA has been merged into HEAD* Mon Jul 27 2004 Patrick Pichon <Patrick.Pichon@laposte.net>- Update to handle WPA branch.* Tue Jul 08 2004 Patrick Pichon <Patrick.Pichon@laposte.net>- Initial Release

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -