hostapd-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define pkg_version 0.7.3
  2. %define pkg_release 3%{?_dist_release}
  3. Summary: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
  4. Name: hostapd
  5. Version: %{pkg_version}
  6. Release: %{pkg_release}
  7. Source0: %{name}-%{version}.tar.gz
  8. Source1: %{name}-init.sh
  9. Source2: %{name}-%{version}.config
  10. Patch0: %{name}-%{version}.patch
  11. License: GPL2
  12. Group: System Environment/Daemons
  13. URL: http://hostap.epitest.fi/hostapd/
  14. Requires: openssl, libnl >= 1.1
  15. Requires(post): chkconfig
  16. Requires(preun): chkconfig
  17. BuildRequires: openssl-devel, libnl-devel
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: miyabi
  22. %description
  23. hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management,
  24. IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS authentication server.
  25. The current version supports Linux (Host AP, madwifi, mac80211-based drivers) and FreeBSD (net80211).
  26. %prep
  27. %setup -q -n %{name}-%{version}
  28. %patch0 -p1
  29. cp %{SOURCE1} .
  30. cp %{SOURCE2} ./%{name}/.config
  31. %build
  32. cd %{name}
  33. %{__make}
  34. %install
  35. [ "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT}
  36. mkdir -p ${RPM_BUILD_ROOT}%{_initdir}
  37. pushd %{name}
  38. %{__make} install DESTDIR="${RPM_BUILD_ROOT}"
  39. popd
  40. install %{SOURCE1} ${RPM_BUILD_ROOT}%{_initdir}/%{name}
  41. %post
  42. if ! /sbin/chkconfig %{name}; then
  43. /sbin/chkconfig --add %{name}
  44. fi
  45. if [ $1 -eq 2 ]; then
  46. %{_initdir}/%{name} condrestart
  47. fi
  48. %preun
  49. if [ $1 -eq 0 ]; then
  50. %{_initdir}/%{name} stop
  51. /sbin/chkconfig --del %{name}
  52. fi
  53. %clean
  54. [ "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT}
  55. %files
  56. %defattr(-, root, root)
  57. %doc hostapd/ChangeLog COPYING README
  58. %dir %{_sysconfdir}/hostapd/
  59. %attr(0755, root, root) %{_sbindir}/hostapd
  60. %attr(0755, root, root) %{_bindir}/hostapd_cli
  61. %{_mandir}/man8/hostapd.8.gz
  62. %{_mandir}/man1/hostapd_cli.1.gz
  63. %attr(0644, root, root) %config %{_sysconfdir}/hostapd/hostapd.conf
  64. %attr(0755, root, root) %{_sysconfdir}/rc.d/init.d/hostapd
  65. %changelog
  66. * Mon Feb 21 2011 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.7.3-3
  67. - merge spec file
  68. * Thu Feb 10 2011 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.7.3-2
  69. - fix daemon script
  70. - change spec file
  71. - separation from patch file
  72. - daemon script
  73. - .config
  74. - add Source1 - hostapd-init.sh
  75. - add Source2 - hostapd-0.7.3.config
  76. - add Requires(post) - chkconfig
  77. - add Requires(preun) - chkconfig
  78. * Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.11-2
  79. - rebuild with openssl-1.0.0c
  80. * Tue Sep 21 2010 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.7.3-1
  81. - new upstream release
  82. * Sat May 08 2010 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.6.10-1
  83. - new upstream release
  84. * Mon Nov 15 2009 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.6.9-1
  85. - new upstream release
  86. * Mon Jan 05 2009 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.11-1
  87. - new upstream release
  88. * Wed Apr 16 2008 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.10-1
  89. - initial build for Vine Linux