1 | %define base_name hostapd |
---|
2 | %define pkg_version 1.1 |
---|
3 | %define pkg_release 1%{?_dist_release} |
---|
4 | |
---|
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 |
---|
13 | Patch0: %{base_name}-%{version}.patch |
---|
14 | License: GPL2 |
---|
15 | Group: System Environment/Daemons |
---|
16 | URL: http://hostap.epitest.fi/hostapd/ |
---|
17 | |
---|
18 | Requires: openssl, libnl >= 1.1 |
---|
19 | Requires(post): %{_syssbindir}/chkconfig |
---|
20 | Requires(preun): %{_syssbindir}/chkconfig |
---|
21 | BuildRequires: openssl-devel, libnl-devel |
---|
22 | BuildRoot: %{_tmppath}/%{base_name}-%{version}-root |
---|
23 | |
---|
24 | Vendor: Project Vine |
---|
25 | Distribution: Vine Linux |
---|
26 | Packager: miyabi |
---|
27 | |
---|
28 | %description |
---|
29 | hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management, |
---|
30 | IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS authentication server. |
---|
31 | The current version supports Linux (Host AP, madwifi, mac80211-based drivers) and FreeBSD (net80211). |
---|
32 | |
---|
33 | %description -l ja |
---|
34 | hostapd はアクセスポイントと認証サーバのためのユーザスペースデーモンです。 |
---|
35 | IEEE 802.11 アクセスポイント管理、IEEE 802.1X/WPA/WPA2/EAP 認証局、RADIUS クライアント、EAP サーバ、および RADIUS 認証サーバを実装します。 |
---|
36 | 最新版は、Linux(Host AP、madwifi、mac80211ベースのドライバー)とFreeBSD(net80211)をサポートします。 |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q |
---|
40 | %patch0 -p1 |
---|
41 | cp %{SOURCE1} . |
---|
42 | cp %{SOURCE2} ./%{base_name}/.config |
---|
43 | |
---|
44 | %build |
---|
45 | cd %{base_name} |
---|
46 | %{__make} %{?_smp_mflags} |
---|
47 | |
---|
48 | %install |
---|
49 | [ "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
50 | |
---|
51 | pushd %{base_name} |
---|
52 | %{__make} install DESTDIR="${RPM_BUILD_ROOT}" |
---|
53 | popd |
---|
54 | |
---|
55 | mkdir -p ${RPM_BUILD_ROOT}%{_initdir} |
---|
56 | |
---|
57 | install %{SOURCE1} ${RPM_BUILD_ROOT}%{_initdir}/%{base_name} |
---|
58 | |
---|
59 | %post |
---|
60 | if ! /sbin/chkconfig %{base_name}; then |
---|
61 | /sbin/chkconfig --add %{base_name} |
---|
62 | fi |
---|
63 | |
---|
64 | if [ "$1" -eq "2" ]; then |
---|
65 | %{_initdir}/%{base_name} condrestart |
---|
66 | fi |
---|
67 | |
---|
68 | %preun |
---|
69 | if [ "$1" -eq "0" ]; then |
---|
70 | %{_initdir}/%{base_name} stop |
---|
71 | /sbin/chkconfig --del %{base_name} |
---|
72 | fi |
---|
73 | |
---|
74 | %clean |
---|
75 | [ "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
76 | |
---|
77 | %files |
---|
78 | %defattr(-, root, root) |
---|
79 | |
---|
80 | # Directory |
---|
81 | %dir %{_sysconfdir}/%{base_name}/ |
---|
82 | |
---|
83 | # Program Files |
---|
84 | %attr(0755, root, root) %{_sbindir}/%{base_name} |
---|
85 | %attr(0755, root, root) %{_bindir}/hostapd_cli |
---|
86 | |
---|
87 | %attr(0755, root, root) %{_initdir}/%{base_name} |
---|
88 | |
---|
89 | # Config Files |
---|
90 | %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/%{base_name}/%{base_name}.conf |
---|
91 | |
---|
92 | # Document Files |
---|
93 | %doc %{base_name}/ChangeLog COPYING README |
---|
94 | %{_mandir}/man8/%{base_name}.8.gz |
---|
95 | %{_mandir}/man1/hostapd_cli.1.gz |
---|
96 | |
---|
97 | %changelog |
---|
98 | * Sun Dec 2 2012 Masahiro INOUE <miyabi.-.inoue@nifty.com> 1.1-1 |
---|
99 | - new upstream release |
---|
100 | |
---|
101 | * Fri Oct 19 2012 Masahiro INOUE <miyabi.-.inoue@nifty.com> 1.0.0-1 |
---|
102 | - new upstream release |
---|
103 | - add Summary(ja) |
---|
104 | - add section - %description -l ja |
---|
105 | - add parameter noreplace to %config |
---|
106 | - change spec file |
---|
107 | |
---|
108 | * Tue Oct 9 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.3-3 |
---|
109 | - add patch100 for fix CVE-2012-4445 (EPA-TLS message) |
---|
110 | |
---|
111 | * Thu Feb 10 2011 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.7.3-2 |
---|
112 | - fix daemon script |
---|
113 | - change spec file |
---|
114 | - separation from patch file |
---|
115 | - daemon script |
---|
116 | - .config |
---|
117 | - add Source1 - hostapd-init.sh |
---|
118 | - add Source2 - hostapd-0.7.3.config |
---|
119 | - add Requires(post) - chkconfig |
---|
120 | - add Requires(preun) - chkconfig |
---|
121 | |
---|
122 | * Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.11-2 |
---|
123 | - rebuild with openssl-1.0.0c |
---|
124 | |
---|
125 | * Tue Sep 21 2010 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.7.3-1 |
---|
126 | - new upstream release |
---|
127 | |
---|
128 | * Sat May 08 2010 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.6.10-1 |
---|
129 | - new upstream release |
---|
130 | |
---|
131 | * Mon Nov 15 2009 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.6.9-1 |
---|
132 | - new upstream release |
---|
133 | |
---|
134 | * Mon Jan 05 2009 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.11-1 |
---|
135 | - new upstream release |
---|
136 | |
---|
137 | * Wed Apr 16 2008 Masahiro INOUE <miyabi.-.inoue@nifty.com> 0.5.10-1 |
---|
138 | - initial build for Vine Linux |
---|