madwifi-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. %define svntag 4100
  2. %define build_kmod 0
  3. %define kversion %(uname -r)
  4. %define kver %(uname -r | sed -e 's/-/_/g')
  5. %define kflavor %(uname -r | sed -e 's/.*vl.//')
  6. %if "%kflavor" == ""
  7. %undefine kflavor
  8. %endif
  9. %define kmod kernel-module%{?kflavor:-%{kflavor}}
  10. %define name madwifi
  11. %define ver 0.10.5.6
  12. %define rel 5.%{svntag}%{?_dist_release}
  13. Summary: MADWIFI - Multimode Atheros Driver for WiFi on Linux
  14. Name: %{name}
  15. Version: %{ver}
  16. Release: %{rel}
  17. # svn co http://svn.madwifi-project.org/madwifi/branches/madwifi-hal-0.10.5.6
  18. Source0: madwifi-hal-%{version}.%{svntag}.tar.bz2
  19. Source10: madwifi-kmp.spec
  20. License: BSD or GPLv2
  21. Group: System Environment/Base
  22. URL: http://madwifi-project.org/
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. BuildRequires: kernel-devel
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. %description
  28. This package contains a Utilities for MADWIFI Atheros-based Wireless
  29. LAN device driver.
  30. %description -l ja
  31. このパッケージは Atheros ベースの無線LANのデバイスドライバ MADWIFI
  32. 用のツール群が含まれています。
  33. %package -n dkms-%{name}
  34. Summary: MADWIFI - Multimode Atheros Driver for WiFi on Linux
  35. License: BSD or GPLv2
  36. Group: System Environment/Kernel
  37. Requires: %{name} = %{version}-%{release}
  38. Requires(pre): kernel, kernel-devel
  39. Requires(post): dkms
  40. Requires(preun): dkms
  41. Obsoletes: kernel-module-madwifi
  42. %description -n dkms-%{name}
  43. This package contains a Linux kernel driver for Atheros-based Wireless
  44. LAN devices.
  45. %description -l ja -n dkms-%{name}
  46. このパッケージは Athros ベースの無線LANのデバイスドライバ MADWIFI
  47. が含まれています。
  48. %prep
  49. %setup -q -n madwifi-hal-%{ver}.%{svntag}
  50. %build
  51. %__make -C tools
  52. %install
  53. %__rm -rf %{buildroot}
  54. %__make -C tools \
  55. DESTDIR=%{buildroot} \
  56. MANDIR=%{_mandir} \
  57. BINDIR=%{_bindir} \
  58. install
  59. mkdir -p %{buildroot}/usr/src/%{name}-%{version}-%{release}
  60. cp -r * %{buildroot}/usr/src/%{name}-%{version}-%{release}
  61. ## DKMS.CONF ##
  62. cat > %{buildroot}/usr/src/%{name}-%{version}-%{release}/dkms.conf <<EOF
  63. PACKAGE_NAME="%{name}"
  64. PACKAGE_VERSION="%{version}-%{release}"
  65. BUILT_MODULE_NAME[0]="ath_hal"
  66. BUILT_MODULE_LOCATION[0]="ath_hal"
  67. DEST_MODULE_LOCATION[0]="/updates/net/wireless"
  68. BUILT_MODULE_NAME[1]="ath_pci"
  69. BUILT_MODULE_LOCATION[1]="ath"
  70. DEST_MODULE_LOCATION[1]="/updates/net/wireless"
  71. BUILT_MODULE_NAME[2]="ath_rate_amrr"
  72. BUILT_MODULE_LOCATION[2]="ath_rate/amrr"
  73. DEST_MODULE_LOCATION[2]="/updates/net/wireless"
  74. BUILT_MODULE_NAME[3]="ath_rate_minstrel"
  75. BUILT_MODULE_LOCATION[3]="ath_rate/minstrel"
  76. DEST_MODULE_LOCATION[3]="/updates/net/wireless"
  77. BUILT_MODULE_NAME[4]="ath_rate_onoe"
  78. BUILT_MODULE_LOCATION[4]="ath_rate/onoe"
  79. DEST_MODULE_LOCATION[4]="/updates/net/wireless"
  80. BUILT_MODULE_NAME[5]="ath_rate_sample"
  81. BUILT_MODULE_LOCATION[5]="ath_rate/sample"
  82. DEST_MODULE_LOCATION[5]="/updates/net/wireless"
  83. BUILT_MODULE_NAME[6]="wlan"
  84. BUILT_MODULE_LOCATION[6]="net80211"
  85. DEST_MODULE_LOCATION[6]="/updates/net/wireless"
  86. BUILT_MODULE_NAME[7]="wlan_acl"
  87. BUILT_MODULE_LOCATION[7]="net80211"
  88. DEST_MODULE_LOCATION[7]="/updates/net/wireless"
  89. BUILT_MODULE_NAME[8]="wlan_ccmp"
  90. BUILT_MODULE_LOCATION[8]="net80211"
  91. DEST_MODULE_LOCATION[8]="/updates/net/wireless"
  92. BUILT_MODULE_NAME[9]="wlan_scan_ap"
  93. BUILT_MODULE_LOCATION[9]="net80211"
  94. DEST_MODULE_LOCATION[9]="/updates/net/wireless"
  95. BUILT_MODULE_NAME[10]="wlan_scan_sta"
  96. BUILT_MODULE_LOCATION[10]="net80211"
  97. DEST_MODULE_LOCATION[10]="/updates/net/wireless"
  98. BUILT_MODULE_NAME[11]="wlan_tkip"
  99. BUILT_MODULE_LOCATION[11]="net80211"
  100. DEST_MODULE_LOCATION[11]="/updates/net/wireless"
  101. BUILT_MODULE_NAME[12]="wlan_wep"
  102. BUILT_MODULE_LOCATION[12]="net80211"
  103. DEST_MODULE_LOCATION[12]="/updates/net/wireless"
  104. BUILT_MODULE_NAME[13]="wlan_xauth"
  105. BUILT_MODULE_LOCATION[13]="net80211"
  106. DEST_MODULE_LOCATION[13]="/updates/net/wireless"
  107. MAKE[0]="make KERNELPATH=\${kernel_source_dir} TARGET=%{_arch}-elf modules"
  108. AUTOINSTALL="yes"
  109. EOF
  110. ## KMP.SPEC ##
  111. sed -e 's|##KMOD_NAME##|%{name}|g' \
  112. -e 's|##KMOD_VER##|%{version}-%{release}|g' \
  113. -e 's|##LICENSE##|%{license}|g' \
  114. %{SOURCE10} > \
  115. %{buildroot}/usr/src/%{name}-%{version}-%{release}/%{name}-kmp.spec
  116. %clean
  117. %__rm -rf %{buildroot}
  118. %post -n dkms-%{name}
  119. /usr/sbin/dkms add -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
  120. /usr/sbin/dkms mkkmp -m %{name} -v %{version}-%{release}
  121. /usr/sbin/dkms build -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
  122. /usr/sbin/dkms install -m %{name} -v %{version}-%{release} --rpm_safe_upgrade --force
  123. exit 0
  124. %preun -n dkms-%{name}
  125. /usr/sbin/dkms remove -m %{name} -v %{version}-%{release} --rpm_safe_upgrade --all
  126. exit 0
  127. %files
  128. %defattr(-,root,root)
  129. %doc COPYRIGHT INSTALL README* THANKS
  130. %{_bindir}/*
  131. %{_mandir}/man8/*.8*
  132. %files -n dkms-%{name}
  133. %defattr(-,root,root)
  134. %dir /usr/src/%{name}-%{version}-%{release}
  135. /usr/src/%{name}-%{version}-%{release}/*
  136. %changelog
  137. * Mon Dec 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.10.5.6-5.4100
  138. - updated to new svn snapshot (r4100)
  139. * Wed Sep 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.10.5.6-4.4098
  140. - updated to new svn snapshot (r4098)
  141. * Sat May 16 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.10.5.6-3.4022
  142. - updated to new svn snapshot (r4022)
  143. * Sun Apr 26 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.10.5.6-2.3992
  144. - add Source10 for mkkmp feature
  145. * Thu Apr 9 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.10.5.6-1.3992
  146. - switch to madwifi-hal branch (0.10.5.6)
  147. - updated to new svn snapshot (r3992)
  148. - drop kernel-module-madwifi subpackage; make DKMS-compatible
  149. * Tue Jan 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-2.3813
  150. - add kflavor(pae,smp..) to package name
  151. * Sun Jul 20 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1.3813
  152. - update to new svn snapshot (r3813)
  153. * Wed Mar 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.4-1
  154. - new upstream release
  155. * Mon Oct 22 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.3.3-0vl1
  156. - new upstream release
  157. * Sat Oct 06 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.9.3.1-0vl3
  158. - rebuild
  159. * Fri Sep 28 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.9.3.1-0vl2
  160. - rebuild
  161. * Sun Jun 03 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.3.1-0vl1
  162. - update to 0.9.3.1
  163. * Thu May 24 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  164. - 0.9.3-0vl4.r1770
  165. - add patch120, 130, 140 for fix security issue
  166. * Tue Apr 03 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  167. - 0.9.3-0vl3.r1770
  168. - add patch110 for fix CVE-2006-7178
  169. * Thu Dec 21 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  170. - 0.9.3-0vl2.r1770
  171. - add Vender/Distribution Tag
  172. * Sun Dec 10 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  173. - 0.9.3-0vl1.r1770
  174. - add patch for fix CVE-2006-6332
  175. * Thu Oct 26 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.3-0vl0.r1770
  176. - update to svn 0.9.3.r1770
  177. - fix typo in Changelog
  178. * Wed Oct 25 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.3-0vl0.r1763
  179. - update to svn 0.9.3.r1763
  180. * Wed Sep 06 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.2-0vl2
  181. - fix typo of Group <BTS:VineLinux:148>.
  182. * Tue Aug 01 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.2-0vl1
  183. - initial build for Vine Linux