hostapd-vl.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. %define pkg_version 0.5.11
  2. %define pkg_release 1%{?_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. Patch0: %{name}-%{version}.patch
  9. License: GPL2
  10. Group: System Environment/Daemons
  11. URL: http://hostap.epitest.fi/hostapd/
  12. BuildRequires: openssl-devel
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %description
  15. hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management,
  16. IEEE 802.1X/WPA/WPA2/EAP Authenticators and RADIUS authentication server. The current version supports Linux (Host AP, madwifi,
  17. Prism54 drivers) and FreeBSD (net80211).
  18. %prep
  19. %setup -q -n %{name}-%{version}
  20. %patch -p1
  21. %build
  22. %{__make}
  23. %install
  24. %{__rm} -rf ${RPM_BUILD_ROOT}
  25. %{__make} install DESTDIR="${RPM_BUILD_ROOT}"
  26. %post
  27. if [ $1 = 1 ] ; then
  28. /sbin/chkconfig --add hostapd
  29. fi
  30. %preun
  31. if [ $1 = 0 ] ; then
  32. /etc/rc.d/init.d/hostapd stop
  33. /sbin/chkconfig --del hostapd
  34. fi
  35. %clean
  36. %__rm -rf ${RPM_BUILD_ROOT}
  37. %files
  38. %defattr(-, root, root)
  39. %doc ChangeLog COPYING README
  40. %dir %{_sysconfdir}/hostapd/
  41. %{_sbindir}/hostapd
  42. %{_bindir}/hostapd_cli
  43. %{_mandir}/man8/hostapd.8.gz
  44. %{_mandir}/man1/hostapd_cli.1.gz
  45. %attr(0644, root, root) %config %{_sysconfdir}/hostapd/hostapd.conf
  46. %attr(0755, root, root) %{_sysconfdir}/rc.d/init.d/hostapd
  47. %changelog
  48. * Mon Jan 05 2009 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.11-1
  49. - new upstream release
  50. * Wed Apr 16 2008 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.10-1
  51. - initial build for Vine Linux