2024-01-05 23:42:24 +01:00
|
|
|
Name: hostapd
|
2024-01-05 23:42:25 +01:00
|
|
|
Version: 2.10
|
|
|
|
Release: 1mamba
|
2024-01-05 23:42:24 +01:00
|
|
|
Summary: A user space daemon for access point and authentication servers
|
|
|
|
Group: Applications/Networking
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 23:42:25 +01:00
|
|
|
URL: https://w1.fi/hostapd/
|
|
|
|
Source: https://w1.fi/releases/hostapd-%{version}.tar.gz
|
2024-01-05 23:42:24 +01:00
|
|
|
Source1: hostapd-config
|
2024-01-05 23:42:25 +01:00
|
|
|
Source2: hostapd.service
|
|
|
|
# Patches from https://w1.fi/security/
|
2024-01-05 23:42:24 +01:00
|
|
|
Patch0: hostapd-2.6-hostapd-Avoid-key-reinstallation-in-FT-handshake.patch.patch
|
2024-01-05 23:42:25 +01:00
|
|
|
Patch1: hostapd-2.9-WPS-UPnP-Do-not-allow-event-subscriptions-with-URLs.patch
|
|
|
|
Patch2: hostapd-2.9-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch
|
|
|
|
Patch3: hostapd-2.9-WPS-UPnP-Handle-HTTP-initiation-failures-for-events.patch
|
|
|
|
Patch4: hostapd-2.9-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch
|
|
|
|
Patch5: hostapd-2.9-P2P-Fix-a-corner-case-in-peer-addition-based-on-PD-R.patch
|
2024-01-05 23:42:24 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 23:42:25 +01:00
|
|
|
BuildRequires: libnl-devel
|
2024-01-05 23:42:24 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-05 23:42:25 +01:00
|
|
|
BuildRequires: libsqlite-devel
|
2024-01-05 23:42:24 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management, IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS authentication server. The current version supports Linux (Host AP, madwifi, mac80211-based drivers) and FreeBSD (net80211).
|
|
|
|
hostapd is designed to be a "daemon" program that runs in the background and acts as the backend component controlling authentication. hostapd supports separate frontend programs and an example text-based frontend, hostapd_cli, is included with hostapd.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 23:42:25 +01:00
|
|
|
#%patch1 -p1
|
|
|
|
#%patch2 -p1
|
|
|
|
#%patch3 -p1
|
|
|
|
#%patch4 -p1
|
|
|
|
#%patch5 -p1
|
2024-01-05 23:42:24 +01:00
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
install %{SOURCE1} hostapd/.config
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make -C hostapd
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
install -D -m0755 hostapd/hostapd %{buildroot}%{_bindir}/hostapd
|
|
|
|
install -D -m0755 hostapd/hostapd_cli %{buildroot}%{_bindir}/hostapd_cli
|
|
|
|
install -D -m0644 hostapd/hostapd.conf %{buildroot}%{_sysconfdir}/hostapd.conf
|
|
|
|
install -D -m0644 hostapd/wired.conf %{buildroot}%{_sysconfdir}/hostapd-wired.conf
|
|
|
|
|
|
|
|
%makeinstall -C src
|
|
|
|
|
2024-01-05 23:42:25 +01:00
|
|
|
# install service
|
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/hostapd.service
|
|
|
|
|
|
|
|
# install man pages
|
|
|
|
install -D -m0644 hostapd/hostapd.8 %{buildroot}%{_mandir}/man8/hostapd.8
|
|
|
|
install -D -m0644 hostapd/hostapd_cli.1 %{buildroot}%{_mandir}/man1/hostapd_cli.1
|
|
|
|
|
|
|
|
# create state dir
|
|
|
|
install -d -m0750 %{buildroot}/var/lib/hostapd
|
|
|
|
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 23:42:25 +01:00
|
|
|
%post
|
|
|
|
%systemd_post hostapd
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun hostapd
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart hostapd
|
|
|
|
:
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 23:42:25 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/hostapd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/hostapd-wired.conf
|
2024-01-05 23:42:24 +01:00
|
|
|
%{_bindir}/hostapd
|
|
|
|
%{_bindir}/hostapd_cli
|
2024-01-05 23:42:25 +01:00
|
|
|
%{_unitdir}/hostapd.service
|
|
|
|
%{_mandir}/man1/hostapd_cli.1*
|
|
|
|
%{_mandir}/man8/hostapd.8*
|
|
|
|
%dir /var/lib/hostapd
|
2024-01-05 23:42:24 +01:00
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:42:25 +01:00
|
|
|
* Tue Jan 25 2022 Automatic Build System <autodist@mambasoft.it> 2.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:25 +01:00
|
|
|
* Wed Mar 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9-2mamba
|
|
|
|
- provide systemd service, fix configuration, add upstream security patches
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Fri Aug 09 2019 Automatic Build System <autodist@mambasoft.it> 2.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Thu Apr 25 2019 Automatic Build System <autodist@mambasoft.it> 2.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Sat Dec 08 2018 Automatic Build System <autodist@mambasoft.it> 2.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Mon Oct 16 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-2mamba
|
|
|
|
- patched against 'krack' vulnerability
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Tue Oct 04 2016 Automatic Build System <autodist@mambasoft.it> 2.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Thu Oct 01 2015 Automatic Build System <autodist@mambasoft.it> 2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Mon Mar 16 2015 Automatic Build System <autodist@mambasoft.it> 2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Tue Oct 14 2014 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Fri Jun 06 2014 Automatic Build System <autodist@mambasoft.it> 2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:42:24 +01:00
|
|
|
* Sun Mar 02 2014 Automatic Build System <autodist@mambasoft.it> 2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Aug 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-1mamba
|
|
|
|
- package created by silvan using the webbuild interface
|