SHA256
1
0
forked from pool/hostapd

Accepting request 658888 from home:kbabioch:branches:Base:System

- Applied spec-cleaner
- Added bug reference
- Use defconfig file as template for configuration instead of patching it
  during build. This is easier to maintain in the long run. 
- Enabled CLI editing and history support.

    [http://w1.fi/security/2017-1/] (CVE-2017-13082) (bsc#1056061)

OBS-URL: https://build.opensuse.org/request/show/658888
OBS-URL: https://build.opensuse.org/package/show/Base:System/hostapd?expand=0&rev=46
This commit is contained in:
Karol Babioch
2018-12-17 14:45:28 +00:00
committed by Git OBS Bridge
parent 4f037ffde3
commit 1623467161
4 changed files with 390 additions and 191 deletions

View File

@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -27,8 +27,8 @@ 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
Source3: hostapd.service
Patch0: hostapd-2.7-defconfig.patch
Source3: config
Source4: hostapd.service
BuildRequires: libnl3-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
@@ -47,10 +47,7 @@ authentication via any ethernet driver.
%prep
%setup -q
%patch0 -p1
cd hostapd
cp defconfig .config
cp %{SOURCE3} hostapd/.config
%build
cd hostapd
@@ -73,7 +70,7 @@ install -m 644 hostapd.sim_db %{buildroot}%{_sysconfdir}
install -m 644 hostapd.vlan %{buildroot}%{_sysconfdir}
install -m 600 hostapd.wpa_psk %{buildroot}%{_sysconfdir}
install -m 644 hostapd.8 %{buildroot}/%{_mandir}/man8
install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/hostapd.service
install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/hostapd.service
%pre
%service_add_pre hostapd.service