ipw3945d-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Summary: Regulatory Daemon for the Intel PRO/Wireless 3945ABG Network Connection
  2. Name: ipw3945d
  3. Version: 1.7.22
  4. Release: 1%{?_dist_release}
  5. License: distributable
  6. Group: System Environment/Daemons
  7. URL: http://bughost.org/ipw3945/
  8. Source0: http://bughost.org/ipw3945/daemon/%{name}-%{version}.tgz
  9. Source1: ipw3945d.init
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. ExclusiveArch: %{ix86} x86_64
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: Daisuke SUZUKI <daisuke@linux.or.jp>
  15. %description
  16. The regulatory daemon is responsible for controlling and configuring
  17. aspects of the hardware required to operate the device within
  18. compliance of various regulatory agencies. This includes controlling
  19. which channels are allowed to do active/passive scanning, transmit
  20. power levels, which channels are allowed to be transmitted on, and
  21. support for IEEE 802.11h (DFS and TPC).
  22. %prep
  23. %setup -q
  24. %install
  25. rm -rf %{buildroot}
  26. mkdir -p %{buildroot}/sbin
  27. %ifarch %{ix86}
  28. install -p x86/ipw3945d %{buildroot}/sbin/
  29. %endif
  30. %ifarch x86_64
  31. install -p x86_64/ipw3945d %{buildroot}/sbin/
  32. %endif
  33. mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
  34. install -p -m 0755 %{SOURCE1} \
  35. %{buildroot}%{_sysconfdir}/rc.d/init.d/ipw3945d
  36. %post
  37. /sbin/chkconfig --add ipw3945d
  38. %preun
  39. if [ $1 -eq 0 ]; then
  40. /sbin/service ipw3945d stop &>/dev/null || :
  41. /sbin/chkconfig --del ipw3945d
  42. fi
  43. %postun
  44. if [ $1 -ge 1 ]; then
  45. /sbin/service ipw3945d condrestart &>/dev/null || :
  46. fi
  47. %clean
  48. rm -rf %{buildroot}
  49. %files
  50. %defattr(-,root,root,-)
  51. %doc LICENSE* README*
  52. %{_sysconfdir}/rc.d/init.d/ipw3945d
  53. /sbin/ipw3945d
  54. %changelog
  55. * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 1.7.22-1vl5
  56. - applied new versioning policy
  57. * Sun Dec 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.22-0vl3
  58. - update initscript
  59. - do not start ipw3945d if 3945ABG device not found.
  60. - do not "killproc" if ipw3945d is not running.
  61. * Mon Apr 02 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.22-0vl2
  62. - modify initscript to start ipw3945d before initializing network.
  63. * Mon Apr 02 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.22-0vl1
  64. - initial build for Vine Linux based on ATrpms package
  65. * Fri Sep 15 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 1.7.22-4
  66. - Update to 1.7.22.
  67. * Thu Jun 15 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
  68. - Update to 1.7.19.
  69. * Fri Mar 24 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
  70. - Initial build.