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