wpa_supplicant-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. Summary: WPA/WPA2/IEEE 802.1X Supplicant
  2. Name: wpa_supplicant
  3. Version: 0.7.3
  4. Release: 1%{?_dist_release}
  5. License: BSD
  6. Group: System Environment/Base
  7. URL: http://w1.fi/wpa_supplicant/
  8. Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
  9. Source1: %{name}.build-config
  10. Source2: %{name}.conf
  11. Source3: %{name}.init.d
  12. Source4: %{name}.sysconfig
  13. Source6: %{name}.logrotate
  14. # import from Fedora package
  15. # distro specific customization and not suitable for upstream,
  16. # works around busted drivers
  17. Patch0: wpa_supplicant-assoc-timeout.patch
  18. # ensures that debug output gets flushed immediately to help diagnose driver
  19. # bugs, not suitable for upstream
  20. Patch1: wpa_supplicant-flush-debug-output.patch
  21. # disto specific customization for log paths, not suitable for upstream
  22. Patch2: wpa_supplicant-dbus-service-file-args.patch
  23. # quiet an annoying and frequent syslog message
  24. Patch3: wpa_supplicant-quiet-scan-results-message.patch
  25. # recover from streams of driver disconnect messages (iwl3945)
  26. Patch4: wpa_supplicant-squelch-driver-disconnect-spam.patch
  27. # allow more private key encryption algorithms
  28. Patch5: wpa_supplicant-openssl-more-algs.patch
  29. # Send PropertyChanged notificationes when the BSS list changes
  30. Patch7: wpa_supplicant-bss-changed-prop-notify.patch
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. BuildRequires: qt4-devel
  33. BuildRequires: openssl-devel
  34. BuildRequires: readline-devel
  35. BuildRequires: dbus-devel
  36. Requires(post): chkconfig
  37. Requires(preun): chkconfig
  38. %description
  39. wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support
  40. for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA
  41. component that is used in the client stations. It implements key negotiation
  42. with a WPA Authenticator and it controls the roaming and IEEE 802.11
  43. authentication/association of the wlan driver.
  44. %package gui
  45. Summary: Graphical User Interface for %{name}
  46. Summary(ja): wpa_supplicant のグラフィカルユーザインタフェース
  47. Group: Applications/System
  48. %description gui
  49. Graphical User Interface for wpa_supplicant written using QT4
  50. %description -l ja gui
  51. QT4 を用いた wpa_supplicant のグラフィカルユーザインタフェース
  52. %prep
  53. %setup -q
  54. %patch0 -p1 -b .assoc-timeout
  55. %patch1 -p1 -b .flush-debug-output
  56. %patch2 -p1 -b .dbus-service-file
  57. %patch3 -p1 -b .quiet-scan-results-msg
  58. %patch4 -p1 -b .disconnect-spam
  59. %patch5 -p1 -b .more-openssl-algs
  60. %patch7 -p1 -b .bss-changed-prop-notify
  61. %build
  62. pushd wpa_supplicant
  63. cp %{SOURCE1} ./.config
  64. CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
  65. CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
  66. make %{_smp_mflags}
  67. PATH=$PATH:%{_libdir}/qt4/bin QTDIR=%{_libdir}/qt4 make wpa_gui-qt4 %{_smp_mflags}
  68. popd
  69. %install
  70. rm -rf %{buildroot}
  71. # init scripts
  72. install -D -m 0755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/rc.d/init.d/%{name}
  73. install -D -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
  74. install -D -m 0644 %{SOURCE6} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
  75. # config
  76. install -D -m 0600 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
  77. # binary
  78. install -d %{buildroot}/%{_sbindir}
  79. install -m 0755 %{name}/wpa_passphrase %{buildroot}/%{_sbindir}
  80. install -m 0755 %{name}/wpa_cli %{buildroot}/%{_sbindir}
  81. install -m 0755 %{name}/wpa_supplicant %{buildroot}/%{_sbindir}
  82. install -D -m 0644 %{name}/dbus/dbus-wpa_supplicant.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
  83. install -D -m 0644 %{name}/dbus/fi.w1.wpa_supplicant1.service %{buildroot}/%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
  84. install -D -m 0644 %{name}/dbus/fi.epitest.hostap.WPASupplicant.service %{buildroot}/%{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
  85. # gui
  86. install -d %{buildroot}/%{_bindir}
  87. install -m 0755 %{name}/wpa_gui-qt4/wpa_gui %{buildroot}/%{_bindir}
  88. # running
  89. mkdir -p %{buildroot}/%{_localstatedir}/run/%{name}
  90. # man pages
  91. install -d %{buildroot}%{_mandir}/man{5,8}
  92. install -m 0644 %{name}/doc/docbook/*.8 %{buildroot}%{_mandir}/man8
  93. install -m 0644 %{name}/doc/docbook/*.5 %{buildroot}%{_mandir}/man5
  94. # some cleanup in docs
  95. rm -f %{name}/doc/.cvsignore
  96. rm -rf %{name}/doc/docbook
  97. %clean
  98. rm -rf %{buildroot}
  99. %post
  100. if [ $1 = 1 ]; then
  101. chkconfig --add %{name}
  102. fi
  103. %preun
  104. if [ $1 = 0 ]; then
  105. service %{name} stop > /dev/null 2>&1
  106. killall -TERM wpa_supplicant >/dev/null 2>&1
  107. /sbin/chkconfig --del %{name}
  108. fi
  109. %files
  110. %defattr(-, root, root)
  111. %doc COPYING %{name}/ChangeLog README %{name}/eap_testing.txt %{name}/todo.txt %{name}/wpa_supplicant.conf %{name}/examples
  112. %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
  113. %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
  114. %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
  115. %{_sysconfdir}/rc.d/init.d/%{name}
  116. %{_sysconfdir}/dbus-1/system.d/%{name}.conf
  117. %{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
  118. %{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
  119. %{_sbindir}/wpa_passphrase
  120. %{_sbindir}/wpa_supplicant
  121. %{_sbindir}/wpa_cli
  122. %dir %{_localstatedir}/run/%{name}
  123. %dir %{_sysconfdir}/%{name}
  124. %{_mandir}/man8/*
  125. %{_mandir}/man5/*
  126. %files gui
  127. %defattr(-, root, root)
  128. %{_bindir}/wpa_gui
  129. %changelog
  130. * Thu Jan 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.3-1
  131. - new upstream release
  132. - update patches
  133. - change License to BSD due to linkage against OpsnSSL since there is no
  134. OpenSSL exception in upstream GPLv2 license text.
  135. - build with qt4
  136. - update build config
  137. * Wed Jan 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.4-1
  138. - new upstream release
  139. - remove hostap/madwifi/prism54 drivers, use 'wext' instead.
  140. - drop upstream patches
  141. - import some fedora patches
  142. - Handle encryption keys correctly when switching 802.11 modes (rh #459399)
  143. - Better scanning behavior on resume from suspend/hibernate
  144. - Better interaction with newer kernels and drivers
  145. * Sun Aug 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.3-2
  146. - start wpa_supplicant by default.
  147. * Sun Aug 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.3-1
  148. - new upstream release
  149. - import some fedora patches
  150. * Thu May 17 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.7-0vl2
  151. - rebuild with new openssl
  152. * Mon May 14 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.7-0vl1
  153. - new upstream release
  154. * Wed Jun 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.8-0vl1
  155. - initial build for Vine Linux based on FC package.
  156. * Thu Apr 27 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-10
  157. - Add fix for madwifi and WEP (wpa_supplicant/hostap bud #140) (#rh190075#)
  158. - Fix up madwifi-ng private ioctl()s for r1331 and later
  159. - Update madwifi headers to r1475
  160. * Tue Apr 25 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-9
  161. - Enable Wired driver, PKCS12, and Smartcard options (#rh189805#)
  162. * Tue Apr 11 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-8
  163. - Fix control interface key obfuscation a bit
  164. * Sun Apr 2 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-7
  165. - Work around older & incorrect drivers that return null-terminated SSIDs
  166. * Mon Mar 27 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-6
  167. - Add patch to make orinoco happy with WEP keys
  168. - Enable Prism54-specific driver
  169. - Disable ipw-specific driver; ipw2x00 should be using WEXT instead
  170. * Fri Mar 3 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-5
  171. - Increase association timeout, mainly for drivers that don't
  172. fully support WPA ioctls yet
  173. * Fri Mar 3 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-4
  174. - Add additional BuildRequires #rh181914#
  175. - Add prereq on chkconfig #rh182905# #rh182906#
  176. - Own /var/run/wpa_supplicant and /etc/wpa_supplicant #rh183696#
  177. * Wed Mar 1 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-3
  178. - Install wpa_passphrase too #rh183480#
  179. * Mon Feb 27 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-2
  180. - Don't expose private data on the control interface unless requested
  181. * Fri Feb 24 2006 Dan Williams <dcbw@redhat.com> - 0.4.8-1
  182. - Downgrade to 0.4.8 stable release rather than a dev release
  183. * Sun Feb 12 2006 Dan Williams <dcbw@redhat.com> - 0.5.1-3
  184. - Documentation cleanup (Terje Rosten <terje.rosten@ntnu.no>)
  185. * Sun Feb 12 2006 Dan Williams <dcbw@redhat.com> - 0.5.1-2
  186. - Move initscript to /etc/rc.d/init.d
  187. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.5.1-1.2
  188. - bump again for double-long bug on ppc(64)
  189. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.5.1-1.1
  190. - rebuilt for new gcc4.1 snapshot and glibc changes
  191. * Sun Feb 5 2006 Dan Williams <dcbw@redhat.com> 0.5.1-1
  192. - Update to 0.5.1
  193. - Add WE auth fallback to actually work with older drivers
  194. * Thu Jan 26 2006 Dan Williams <dcbw@redhat.com> 0.4.7-2
  195. - Bring package into Fedora Core
  196. - Add ap_scan control interface patch
  197. - Enable madwifi-ng driver
  198. * Sun Jan 15 2006 Douglas E. Warner <silfreed@silfreed.net> 0.4.7-1
  199. - upgrade to 0.4.7
  200. - added package w/ wpa_gui in it
  201. * Mon Nov 14 2005 Douglas E. Warner <silfreed@silfreed.net> 0.4.6-1
  202. - upgrade to 0.4.6
  203. - adding ctrl interface changes recommended
  204. by Hugo Paredes <hugo.paredes@e-know.org>
  205. * Sun Oct 9 2005 Douglas E. Warner <silfreed@silfreed.net> 0.4.5-1
  206. - upgrade to 0.4.5
  207. - updated config file wpa_supplicant is built with
  208. especially, the ipw2100 driver changed to just ipw
  209. and enabled a bunch more EAP
  210. - disabled dist tag
  211. * Thu Jun 30 2005 Douglas E. Warner <silfreed@silfreed.net> 0.4.2-3
  212. - fix typo in init script
  213. * Thu Jun 30 2005 Douglas E. Warner <silfreed@silfreed.net> 0.4.2-2
  214. - fixing init script using fedora-extras' template
  215. - removing chkconfig default startup
  216. * Tue Jun 21 2005 Douglas E. Warner <silfreed@silfreed.net> 0.4.2-1
  217. - upgrade to 0.4.2
  218. - new sample conf file that will use any unrestricted AP
  219. - make sysconfig config entry
  220. - new BuildRoot for Fedora Extras
  221. - adding dist tag to Release
  222. * Fri May 06 2005 Douglas E. Warner <silfreed@silfreed.net> 0.3.8-1
  223. - upgrade to 0.3.8
  224. * Thu Feb 10 2005 Douglas E. Warner <silfreed@silfreed.net> 0.3.6-2
  225. - compile ipw driver in
  226. * Wed Feb 09 2005 Douglas E. Warner <silfreed@silfreed.net> 0.3.6-1
  227. - upgrade to 0.3.6
  228. * Thu Dec 23 2004 Douglas E. Warner <silfreed@silfreed.net> 0.2.5-4
  229. - fixing init script
  230. * Mon Dec 20 2004 Douglas E. Warner <silfreed@silfreed.net> 0.2.5-3
  231. - fixing init script
  232. - adding post/preun items to add/remove via chkconfig
  233. * Mon Dec 20 2004 Douglas E. Warner <silfreed@silfreed.net> 0.2.5-2
  234. - adding sysV scripts
  235. * Mon Dec 20 2004 Douglas E. Warner <silfreed@silfreed.net> 0.2.5-1
  236. - Initial RPM release.