hostapd/hostapd.spec
Andreas Jaeger 3d4bc5ec64 Accepting request 164011 from home:xandry:branches:Base:System
update to version 2.0;
fix corrected file name hostapd.dif to hostapd.diff;
in default config includes all features (IEEE 802.11w, Hotspot 2.0, IEEE 802.11ac, WPS, etc.) except VLAN_NETLINK. To build with support VLAN_NETLINK we need libnl-3_1-devel from "security:netfilter" repo.

OBS-URL: https://build.opensuse.org/request/show/164011
OBS-URL: https://build.opensuse.org/package/show/Base:System/hostapd?expand=0&rev=18
2013-04-17 09:44:46 +00:00

117 lines
3.4 KiB
RPMSpec

#
# spec file for package hostapd
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: hostapd
%if 0%{?suse_version} > 1140
BuildRequires: libnl-1_1-devel
%else
BuildRequires: libnl-devel
%endif
BuildRequires: sqlite3-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig(systemd)
Summary: Turns Your WLAN Card into a WPA capable Access Point
License: BSD-3-Clause
Group: Hardware/Wifi
Version: 2.0
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://hostap.epitest.fi/
PreReq: %insserv_prereq
Source: http://hostap.epitest.fi/releases/hostapd-%{version}.tar.gz
Source1: hostapd.init
Source2: hostapd.service
Patch: hostapd.diff
Patch1: hostapd-tmp.diff
%{?systemd_requires}
%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. Currently, hostapd supports HostAP,
madwifi, and prism54 drivers. It also supports wired IEEE 802.1X
authentication via any ethernet driver.
Authors:
--------
Jouni Malinen <jkmaline@cc.hut.fi>
%prep
%setup -n hostapd-%{version}
%patch -p1
%patch1 -p1
cd hostapd
cp defconfig .config
%build
cd hostapd
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE $(getconf LFS_CFLAGS)" CC="%{__cc}" make %{?_smp_mflags} V=1
%install
cd hostapd
mkdir -p %{buildroot}/%{_sbindir}
mkdir %{buildroot}/etc
mkdir -p %{buildroot}/%{_mandir}/man8
install -m 755 hostapd %{buildroot}/%{_sbindir}
install -D -m 755 %{SOURCE1} %{buildroot}/etc/init.d/hostapd
ln -s /etc/init.d/hostapd %{buildroot}/%{_sbindir}/rchostapd
install -m 755 hostapd_cli %{buildroot}/%{_sbindir}
install -m 600 hostapd.conf %{buildroot}/etc
install -m 644 hostapd.accept %{buildroot}/etc
install -m 644 hostapd.deny %{buildroot}/etc
install -m 600 hostapd.eap_user %{buildroot}/etc
install -m 600 hostapd.radius_clients %{buildroot}/etc
install -m 644 hostapd.sim_db %{buildroot}/etc
install -m 644 hostapd.vlan %{buildroot}/etc
install -m 600 hostapd.wpa_psk %{buildroot}/etc
install -m 644 hostapd.8 %{buildroot}/%{_mandir}/man8
install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/hostapd.service
%pre
%service_add_pre hostapd.service
%post
%service_add_post hostapd.service
%insserv_cleanup
%preun
%service_del_preun hostapd.service
%{stop_on_removal hostapd}
%postun
%service_del_postun hostapd.service
%{restart_on_update hostapd}
%insserv_cleanup
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%config(noreplace) /etc/*
/etc/init.d/hostapd
%{_sbindir}/*
%doc hostapd/ChangeLog COPYING hostapd/README hostapd/wired.conf hostapd/hostapd.conf
%doc %{_mandir}/man8/*
%{_unitdir}/hostapd.service
%changelog