[6961] | 1 | %define base_name hostapd |
---|
[10921] | 2 | %define pkg_version 2.6 |
---|
[11211] | 3 | %define pkg_release 2%{?_dist_release} |
---|
[521] | 4 | |
---|
[6961] | 5 | Summary: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator |
---|
| 6 | Summary(ja): IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS 認証局 |
---|
| 7 | Name: %{base_name} |
---|
| 8 | Version: %{pkg_version} |
---|
| 9 | Release: %{pkg_release} |
---|
| 10 | Source0: %{base_name}-%{version}.tar.gz |
---|
| 11 | Source1: %{base_name}-init.sh |
---|
| 12 | Source2: %{base_name}-%{version}.config |
---|
[11211] | 13 | |
---|
| 14 | Patch11: 0001-hostapd-Avoid-key-reinstallation-in-FT-handshake.patch |
---|
| 15 | Patch12: 0002-Prevent-reinstallation-of-an-already-in-use-group-ke.patch |
---|
| 16 | Patch13: 0003-Extend-protection-of-GTK-IGTK-reinstallation-of-WNM-.patch |
---|
| 17 | Patch14: 0004-Prevent-installation-of-an-all-zero-TK.patch |
---|
| 18 | Patch15: 0005-Fix-PTK-rekeying-to-generate-a-new-ANonce.patch |
---|
| 19 | Patch16: 0006-TDLS-Reject-TPK-TK-reconfiguration.patch |
---|
| 20 | Patch18: 0008-FT-Do-not-allow-multiple-Reassociation-Response-fram.patch |
---|
| 21 | |
---|
[6961] | 22 | License: GPL2 |
---|
| 23 | Group: System Environment/Daemons |
---|
| 24 | URL: http://hostap.epitest.fi/hostapd/ |
---|
[521] | 25 | |
---|
[6961] | 26 | Requires: openssl, libnl >= 1.1 |
---|
| 27 | Requires(post): %{_syssbindir}/chkconfig |
---|
| 28 | Requires(preun): %{_syssbindir}/chkconfig |
---|
| 29 | BuildRequires: openssl-devel, libnl-devel |
---|
| 30 | BuildRoot: %{_tmppath}/%{base_name}-%{version}-root |
---|
[521] | 31 | |
---|
[6961] | 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
| 34 | Packager: miyabi |
---|
[2732] | 35 | |
---|
[521] | 36 | %description |
---|
[2732] | 37 | hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management, |
---|
| 38 | IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS authentication server. |
---|
| 39 | The current version supports Linux (Host AP, madwifi, mac80211-based drivers) and FreeBSD (net80211). |
---|
[521] | 40 | |
---|
[6961] | 41 | %description -l ja |
---|
| 42 | hostapd はアクセスポイントと認証サーバのためのユーザスペースデーモンです。 |
---|
| 43 | IEEE 802.11 アクセスポイント管理、IEEE 802.1X/WPA/WPA2/EAP 認証局、RADIUS クライアント、EAP サーバ、および RADIUS 認証サーバを実装します。 |
---|
| 44 | 最新版は、Linux(Host AP、madwifi、mac80211ベースのドライバー)とFreeBSD(net80211)をサポートします。 |
---|
| 45 | |
---|
[521] | 46 | %prep |
---|
[6961] | 47 | %setup -q |
---|
[11211] | 48 | %patch11 -p1 -b .0001-hostapd-Avoid-key-reinstallation-in-FT-handshake |
---|
| 49 | %patch12 -p1 -b .0002-Prevent-reinstallation-of-an-already-in-use-group-ke |
---|
| 50 | %patch13 -p1 -b .0003-Extend-protection-of-GTK-IGTK-reinstallation-of-WNM |
---|
| 51 | %patch14 -p1 -b .0004-Prevent-installation-of-an-all-zero-TK |
---|
| 52 | %patch15 -p1 -b .0005-Fix-PTK-rekeying-to-generate-a-new-ANonce |
---|
| 53 | %patch16 -p1 -b .0006-TDLS-Reject-TPK-TK-reconfiguration |
---|
| 54 | %patch18 -p1 -b .0008-FT-Do-not-allow-multiple-Reassociation-Response-fram |
---|
| 55 | |
---|
[2732] | 56 | cp %{SOURCE1} . |
---|
[6961] | 57 | cp %{SOURCE2} ./%{base_name}/.config |
---|
[521] | 58 | |
---|
| 59 | %build |
---|
[6961] | 60 | cd %{base_name} |
---|
| 61 | %{__make} %{?_smp_mflags} |
---|
[521] | 62 | |
---|
| 63 | %install |
---|
[2732] | 64 | [ "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 65 | |
---|
[6961] | 66 | pushd %{base_name} |
---|
[9455] | 67 | %{__make} install DESTDIR="${RPM_BUILD_ROOT}" BINDIR="%{_sbindir}" |
---|
[2732] | 68 | popd |
---|
[521] | 69 | |
---|
[9455] | 70 | %{__install} -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_initdir}/%{base_name} |
---|
[2732] | 71 | |
---|
[9455] | 72 | %{__install} -D %{base_name}/hostapd.conf ${RPM_BUILD_ROOT}%{_sysconfdir}/%{base_name}/%{base_name}.conf.sample |
---|
| 73 | %{__install} -D %{base_name}/hostapd.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/hostapd.8 |
---|
| 74 | %{__install} -D %{base_name}/hostapd_cli.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/hostapd_cli.1 |
---|
[6961] | 75 | |
---|
[521] | 76 | %post |
---|
[6961] | 77 | if ! /sbin/chkconfig %{base_name}; then |
---|
| 78 | /sbin/chkconfig --add %{base_name} |
---|
[521] | 79 | fi |
---|
| 80 | |
---|
[6961] | 81 | if [ "$1" -eq "2" ]; then |
---|
| 82 | %{_initdir}/%{base_name} condrestart |
---|
[2732] | 83 | fi |
---|
| 84 | |
---|
[521] | 85 | %preun |
---|
[6961] | 86 | if [ "$1" -eq "0" ]; then |
---|
| 87 | %{_initdir}/%{base_name} stop |
---|
| 88 | /sbin/chkconfig --del %{base_name} |
---|
[521] | 89 | fi |
---|
| 90 | |
---|
| 91 | %clean |
---|
[2732] | 92 | [ "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[521] | 93 | |
---|
| 94 | %files |
---|
| 95 | %defattr(-, root, root) |
---|
[6961] | 96 | |
---|
| 97 | # Directory |
---|
| 98 | %dir %{_sysconfdir}/%{base_name}/ |
---|
| 99 | |
---|
| 100 | # Program Files |
---|
[9455] | 101 | %attr(0755, root, root) %{_sbindir}/hostapd |
---|
| 102 | %attr(0755, root, root) %{_sbindir}/hostapd_cli |
---|
[6961] | 103 | |
---|
| 104 | %attr(0755, root, root) %{_initdir}/%{base_name} |
---|
| 105 | |
---|
| 106 | # Config Files |
---|
[7751] | 107 | %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/%{base_name}/%{base_name}.conf.sample |
---|
[6961] | 108 | |
---|
| 109 | # Document Files |
---|
| 110 | %doc %{base_name}/ChangeLog COPYING README |
---|
| 111 | %{_mandir}/man8/%{base_name}.8.gz |
---|
[521] | 112 | %{_mandir}/man1/hostapd_cli.1.gz |
---|
| 113 | |
---|
| 114 | %changelog |
---|
[11211] | 115 | * Fri Oct 20 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6-2 |
---|
| 116 | - add patch11-18 for fix "KRACK" issue |
---|
| 117 | |
---|
[10921] | 118 | * Sat Feb 04 2017 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.6-1 |
---|
| 119 | - new upstream release |
---|
| 120 | |
---|
[9954] | 121 | * Sat Jan 02 2016 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.5-1 |
---|
| 122 | - new upstream release |
---|
| 123 | |
---|
[9455] | 124 | * Sat Mar 21 2015 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.4-1 |
---|
| 125 | - new upstream release |
---|
| 126 | - change hostapd_cli install path /usr/bin -> /usr/sbin |
---|
| 127 | |
---|
[9443] | 128 | * Sat Dec 06 2014 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.3-1 |
---|
| 129 | - new upstream release |
---|
| 130 | |
---|
[8773] | 131 | * Wed Jul 09 2014 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.2-1 |
---|
| 132 | - new upstream release |
---|
| 133 | |
---|
[8379] | 134 | * Wed Apr 23 2014 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.1-2 |
---|
| 135 | - add patch - hostapd-2.1.334ec001bbd31c5bc83d6593e58dfbbf6b8785a2.patch |
---|
| 136 | - fix segfault |
---|
| 137 | |
---|
[8305] | 138 | * Sat Mar 15 2014 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.1-1 |
---|
| 139 | - new upstream release |
---|
| 140 | - change .config |
---|
| 141 | - add ACS support(Supported ACS drivers: ath5k, ath9k, ath10k) |
---|
| 142 | |
---|
[7751] | 143 | * Sun Mar 17 2013 Masahiro INOUE <miyabi.-.inoue@nifty.com> 2.0-1 |
---|
| 144 | - new upstream release |
---|
| 145 | - change filename hostapd.conf -> hostapd.conf.sample |
---|
| 146 | - change .config |
---|
| 147 | - add WPS support |
---|
| 148 | |
---|
[7207] | 149 | * Sun Dec 2 2012 Masahiro INOUE <miyabi.-.inoue@nifty.com> 1.1-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
[6961] | 152 | * Fri Oct 19 2012 Masahiro INOUE <miyabi.-.inoue@nifty.com> 1.0.0-1 |
---|
| 153 | - new upstream release |
---|
| 154 | - add Summary(ja) |
---|
| 155 | - add section - %description -l ja |
---|
| 156 | - add parameter noreplace to %config |
---|
| 157 | - change spec file |
---|
[2732] | 158 | |
---|
[6961] | 159 | * Tue Oct 9 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-3 |
---|
| 160 | - add patch100 for fix CVE-2012-4445 (EPA-TLS message) |
---|
| 161 | |
---|
[2732] | 162 | * Thu Feb 10 2011 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.7.3-2 |
---|
| 163 | - fix daemon script |
---|
| 164 | - change spec file |
---|
| 165 | - separation from patch file |
---|
| 166 | - daemon script |
---|
| 167 | - .config |
---|
| 168 | - add Source1 - hostapd-init.sh |
---|
| 169 | - add Source2 - hostapd-0.7.3.config |
---|
| 170 | - add Requires(post) - chkconfig |
---|
| 171 | - add Requires(preun) - chkconfig |
---|
| 172 | |
---|
[2653] | 173 | * Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.11-2 |
---|
| 174 | - rebuild with openssl-1.0.0c |
---|
| 175 | |
---|
[2732] | 176 | * Tue Sep 21 2010 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.7.3-1 |
---|
| 177 | - new upstream release |
---|
| 178 | |
---|
| 179 | * Sat May 08 2010 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.6.10-1 |
---|
| 180 | - new upstream release |
---|
| 181 | |
---|
[7751] | 182 | * Sun Nov 15 2009 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.6.9-1 |
---|
[2732] | 183 | - new upstream release |
---|
| 184 | |
---|
[521] | 185 | * Mon Jan 05 2009 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.11-1 |
---|
| 186 | - new upstream release |
---|
| 187 | |
---|
| 188 | * Wed Apr 16 2008 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.10-1 |
---|
| 189 | - initial build for Vine Linux |
---|