2007-03-19 04:30:50 +01:00
|
|
|
#
|
2011-09-17 09:53:33 +02:00
|
|
|
# spec file for package hostapd
|
2007-03-19 04:30:50 +01:00
|
|
|
#
|
2020-04-27 12:18:42 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-03-19 04:30:50 +01:00
|
|
|
#
|
2008-09-24 01:04:23 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-17 15:45:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-03-19 04:30:50 +01:00
|
|
|
#
|
|
|
|
|
2008-09-24 01:04:23 +02:00
|
|
|
|
2007-03-19 04:30:50 +01:00
|
|
|
Name: hostapd
|
2019-09-06 12:50:39 +02:00
|
|
|
Version: 2.9
|
2018-12-17 09:48:14 +01:00
|
|
|
Release: 0
|
2019-01-07 17:56:39 +01:00
|
|
|
Summary: Daemon for running a WPA capable Access Point
|
2018-12-17 09:48:14 +01:00
|
|
|
License: GPL-2.0-only OR BSD-3-Clause
|
|
|
|
Group: Hardware/Wifi
|
|
|
|
URL: https://w1.fi/
|
|
|
|
Source: https://w1.fi/releases/hostapd-%{version}.tar.gz
|
|
|
|
Source1: https://w1.fi/releases/hostapd-%{version}.tar.gz.asc
|
|
|
|
# https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2B6EF432EFC895FA#/%%{name}.keyring
|
|
|
|
Source2: %{name}.keyring
|
2018-12-17 15:45:28 +01:00
|
|
|
Source3: config
|
|
|
|
Source4: hostapd.service
|
2020-04-27 12:18:42 +02:00
|
|
|
Patch1: CVE-2019-16275.patch
|
2015-05-07 23:29:29 +02:00
|
|
|
BuildRequires: libnl3-devel
|
2015-05-08 00:42:21 +02:00
|
|
|
BuildRequires: openssl-devel
|
2018-12-17 09:48:14 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-05-08 00:42:21 +02:00
|
|
|
BuildRequires: sqlite3-devel
|
2014-06-01 11:22:07 +02:00
|
|
|
BuildRequires: pkgconfig(libnl-3.0) >= 3.0
|
2012-11-06 15:06:54 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
%{?systemd_requires}
|
2007-03-19 04:30:50 +01:00
|
|
|
|
|
|
|
%description
|
2007-07-30 21:23:14 +02:00
|
|
|
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. Currently, hostapd supports HostAP,
|
|
|
|
madwifi, and prism54 drivers. It also supports wired IEEE 802.1X
|
|
|
|
authentication via any ethernet driver.
|
2007-03-19 04:30:50 +01:00
|
|
|
|
|
|
|
%prep
|
2018-12-17 09:48:14 +01:00
|
|
|
%setup -q
|
2018-12-17 15:45:28 +01:00
|
|
|
cp %{SOURCE3} hostapd/.config
|
2020-04-27 12:18:42 +02:00
|
|
|
%autopatch -p1
|
2007-03-19 04:30:50 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-12 15:23:57 +02:00
|
|
|
cd hostapd
|
2018-12-17 09:48:14 +01:00
|
|
|
CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)" CC="gcc" make %{?_smp_mflags} V=1
|
2007-03-19 04:30:50 +01:00
|
|
|
|
|
|
|
%install
|
2011-10-12 15:23:57 +02:00
|
|
|
cd hostapd
|
2018-12-17 09:48:14 +01:00
|
|
|
install -d %{buildroot}/%{_sbindir}
|
|
|
|
install -d %{buildroot}%{_sysconfdir}
|
|
|
|
install -d %{buildroot}/%{_mandir}/man8
|
2007-03-19 04:30:50 +01:00
|
|
|
install -m 755 hostapd %{buildroot}/%{_sbindir}
|
2018-12-17 09:48:14 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rchostapd
|
2007-03-19 04:30:50 +01:00
|
|
|
install -m 755 hostapd_cli %{buildroot}/%{_sbindir}
|
2018-12-17 09:48:14 +01:00
|
|
|
install -m 600 hostapd.conf %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 644 hostapd.accept %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 644 hostapd.deny %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 600 hostapd.eap_user %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 600 hostapd.radius_clients %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 644 hostapd.sim_db %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 644 hostapd.vlan %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 600 hostapd.wpa_psk %{buildroot}%{_sysconfdir}
|
2010-06-09 17:09:33 +02:00
|
|
|
install -m 644 hostapd.8 %{buildroot}/%{_mandir}/man8
|
2018-12-17 15:45:28 +01:00
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/hostapd.service
|
2007-03-19 04:30:50 +01:00
|
|
|
|
2012-11-06 15:06:54 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre hostapd.service
|
2013-04-21 17:58:58 +02:00
|
|
|
|
2011-10-12 15:23:57 +02:00
|
|
|
%post
|
2012-11-06 15:06:54 +01:00
|
|
|
%service_add_post hostapd.service
|
2011-10-12 15:23:57 +02:00
|
|
|
|
|
|
|
%preun
|
2012-11-06 15:06:54 +01:00
|
|
|
%service_del_preun hostapd.service
|
2011-10-12 15:23:57 +02:00
|
|
|
|
|
|
|
%postun
|
2012-11-06 15:06:54 +01:00
|
|
|
%service_del_postun hostapd.service
|
2007-03-19 04:30:50 +01:00
|
|
|
|
|
|
|
%files
|
2018-12-17 09:48:14 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/hostapd.*
|
2007-03-19 04:30:50 +01:00
|
|
|
%{_sbindir}/*
|
2018-12-17 09:48:14 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc hostapd/ChangeLog hostapd/README hostapd/wired.conf hostapd/hostapd.conf
|
|
|
|
%{_mandir}/man8/*
|
2012-11-06 15:06:54 +01:00
|
|
|
%{_unitdir}/hostapd.service
|
2007-03-19 04:30:50 +01:00
|
|
|
|
|
|
|
%changelog
|