2013-05-30 18:13:36 +00:00
|
|
|
%global _hardened_build 1
|
|
|
|
|
2009-12-21 20:06:43 +00:00
|
|
|
Name: hostapd
|
2013-05-30 18:10:42 +00:00
|
|
|
Version: 2.0
|
2013-07-17 20:59:10 +00:00
|
|
|
Release: 2%{?dist}
|
2009-12-21 20:06:43 +00:00
|
|
|
Summary: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: BSD
|
|
|
|
URL: http://w1.fi/hostapd
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2010-11-24 19:51:31 +00:00
|
|
|
Source0: http://w1.fi/releases/%{name}-%{version}.tar.gz
|
2012-02-28 14:25:16 +00:00
|
|
|
Source1: %{name}.service
|
2009-12-21 20:06:43 +00:00
|
|
|
Source2: %{name}.conf
|
|
|
|
Source3: %{name}.sysconfig
|
|
|
|
Patch0: hostapd-RPM_OPT_FLAGS.patch
|
2012-10-08 17:41:39 +00:00
|
|
|
Patch1: hostapd-EAP-TLS-server-Fix-TLS-Message-Length-validation.patch
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
BuildRequires: libnl-devel >= 1.1
|
|
|
|
BuildRequires: openssl-devel
|
2012-05-30 13:40:36 +00:00
|
|
|
BuildRequires: systemd-units
|
2009-12-21 20:06:43 +00:00
|
|
|
|
2013-05-30 18:10:42 +00:00
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
2009-12-21 20:06:43 +00:00
|
|
|
%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 and RADIUS authentication server.
|
|
|
|
|
|
|
|
hostapd is designed to be a "daemon" program that runs in the back-
|
|
|
|
ground 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.
|
|
|
|
|
|
|
|
%package logwatch
|
|
|
|
Summary: Logwatch scripts for hostapd
|
|
|
|
Requires: %{name} = %{version}-%{release} logwatch perl
|
|
|
|
%description logwatch
|
|
|
|
Logwatch scripts for hostapd
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
# Hack Makefile to allow use of RPM_OPT_FLAGS
|
|
|
|
%patch0 -p1
|
|
|
|
|
2012-10-08 17:41:39 +00:00
|
|
|
# git://w1.fi/srv/git/hostap.git
|
|
|
|
# commit 586c446e0ff42ae00315b014924ec669023bd8de
|
|
|
|
%patch1 -p1
|
|
|
|
|
2012-01-18 19:15:21 +00:00
|
|
|
# Prepare default config file
|
|
|
|
cat %{SOURCE2} | sed -e 's/HOSTAPD_VERSION/'%{version}'/' > hostapd.conf
|
|
|
|
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd hostapd
|
|
|
|
cat defconfig | sed -e '/^#CONFIG_DRIVER_NL80211=y/s/^#//' \
|
2010-11-24 19:51:31 +00:00
|
|
|
-e '/^#CONFIG_RADIUS_SERVER=y/s/^#//' \
|
|
|
|
-e '/^#CONFIG_DRIVER_WIRED=y/s/^#//' \
|
|
|
|
-e '/^#CONFIG_DRIVER_NONE=y/s/^#//' \
|
|
|
|
-e '/^#CONFIG_IEEE80211N=y/s/^#//' > .config
|
2009-12-21 20:06:43 +00:00
|
|
|
make %{?_smp_mflags} EXTRA_CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
# init scripts
|
2012-02-28 14:25:16 +00:00
|
|
|
install -d %{buildroot}/%{_unitdir}
|
|
|
|
install -pm 0755 %{SOURCE1} %{buildroot}/%{_unitdir}/hostapd.service
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
# logwatch files
|
|
|
|
install -d %{buildroot}/%{_sysconfdir}/logwatch/conf/services
|
|
|
|
install -pm 0644 hostapd/logwatch/hostapd.conf \
|
|
|
|
%{buildroot}/%{_sysconfdir}/logwatch/conf/services/hostapd.conf
|
|
|
|
install -d %{buildroot}/%{_sysconfdir}/logwatch/scripts/services
|
|
|
|
install -pm 0755 hostapd/logwatch/hostapd \
|
|
|
|
%{buildroot}/%{_sysconfdir}/logwatch/scripts/services/hostapd
|
|
|
|
|
|
|
|
# config files
|
|
|
|
install -d %{buildroot}/%{_sysconfdir}/%{name}
|
2012-05-25 17:43:53 +00:00
|
|
|
install -pm 0600 hostapd.conf %{buildroot}/%{_sysconfdir}/%{name}/hostapd.conf
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
install -d %{buildroot}/%{_sysconfdir}/sysconfig
|
|
|
|
install -pm 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/hostapd
|
|
|
|
|
|
|
|
# binaries
|
|
|
|
install -d %{buildroot}/%{_sbindir}
|
|
|
|
install -pm 0755 hostapd/hostapd %{buildroot}%{_sbindir}/hostapd
|
|
|
|
install -pm 0755 hostapd/hostapd_cli %{buildroot}%{_sbindir}/hostapd_cli
|
|
|
|
|
|
|
|
# man pages
|
|
|
|
install -d %{buildroot}%{_mandir}/man{1,8}
|
2010-01-19 15:43:16 +00:00
|
|
|
install -pm 0644 hostapd/hostapd_cli.1 %{buildroot}%{_mandir}/man1
|
|
|
|
install -pm 0644 hostapd/hostapd.8 %{buildroot}%{_mandir}/man8
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
# prepare docs
|
|
|
|
cp hostapd/README ./README.hostapd
|
2012-01-18 19:15:21 +00:00
|
|
|
cp hostapd/README-WPS ./README-WPS.hostapd
|
2009-12-21 20:06:43 +00:00
|
|
|
cp hostapd/logwatch/README ./README.logwatch
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-01-18 19:15:21 +00:00
|
|
|
%doc COPYING README README.hostapd README-WPS.hostapd
|
2009-12-21 20:06:43 +00:00
|
|
|
%doc hostapd/hostapd.conf hostapd/wired.conf
|
|
|
|
%doc hostapd/hostapd.accept hostapd/hostapd.deny
|
|
|
|
%doc hostapd/hostapd.eap_user hostapd/hostapd.radius_clients
|
|
|
|
%doc hostapd/hostapd.vlan hostapd/hostapd.wpa_psk
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/hostapd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/hostapd
|
2012-05-30 13:40:36 +00:00
|
|
|
%{_unitdir}/hostapd.service
|
2009-12-21 20:06:43 +00:00
|
|
|
%{_sbindir}/hostapd
|
|
|
|
%{_sbindir}/hostapd_cli
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
%files logwatch
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc hostapd/logwatch/README
|
|
|
|
%config(noreplace) %{_sysconfdir}/logwatch/conf/services/hostapd.conf
|
|
|
|
%{_sysconfdir}/logwatch/scripts/services/hostapd
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
2013-05-30 18:10:42 +00:00
|
|
|
%systemd_post hostapd.service
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
%preun
|
2013-05-30 18:10:42 +00:00
|
|
|
%systemd_preun hostapd.service
|
2012-02-28 14:25:16 +00:00
|
|
|
|
|
|
|
%postun
|
2013-05-30 18:10:42 +00:00
|
|
|
%systemd_postun_with_restart hostapd.service
|
2009-12-21 20:06:43 +00:00
|
|
|
|
2012-02-28 14:25:16 +00:00
|
|
|
%triggerun -- hostapd < 0.7.3-5
|
|
|
|
# Save the current service runlevel info
|
|
|
|
# User must manually run systemd-sysv-convert --apply hostapd
|
|
|
|
# to migrate them to systemd targets
|
|
|
|
/usr/bin/systemd-sysv-convert --save hostapd >/dev/null 2>&1 ||:
|
|
|
|
|
|
|
|
# Run these because the SysV package being removed won't do them
|
|
|
|
/sbin/chkconfig --del hostapd >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl try-restart hostapd.service >/dev/null 2>&1 || :
|
|
|
|
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-07-17 20:59:10 +00:00
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.0-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-05-30 18:10:42 +00:00
|
|
|
* Thu May 30 2013 John W. Linville <linville@redhat.com> - 2.0-1
|
|
|
|
- Update to version 2.0 from upstream
|
|
|
|
- Convert to use of systemd-rpm macros
|
|
|
|
- Build with PIE flags
|
|
|
|
|
2013-02-14 01:11:52 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-08 17:41:39 +00:00
|
|
|
* Mon Oct 8 2012 John W. Linville <linville@redhat.com> - 1.0-3
|
|
|
|
- EAP-TLS: Add extra validation for TLS Message Length
|
|
|
|
|
2012-07-19 13:05:19 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-08 15:43:55 +00:00
|
|
|
* Fri Jun 8 2012 John W. Linville <linville@redhat.com> - 1.0-1
|
|
|
|
- Update to version 1.0 from upstream
|
|
|
|
|
2012-06-08 14:24:44 +00:00
|
|
|
* Fri Jun 8 2012 John W. Linville <linville@redhat.com> - 0.7.3-9
|
|
|
|
- Remove hostapd-specific runtime state directory
|
|
|
|
|
2012-06-06 17:39:03 +00:00
|
|
|
* Wed Jun 6 2012 John W. Linville <linville@redhat.com> - 0.7.3-8
|
|
|
|
- Fixup typo in pid file path in hostapd.service
|
|
|
|
|
2012-05-30 13:40:36 +00:00
|
|
|
* Wed May 30 2012 John W. Linville <linville@redhat.com> - 0.7.3-7
|
|
|
|
- Add BuildRequires for systemd-units
|
|
|
|
|
2012-05-25 17:43:53 +00:00
|
|
|
* Fri May 25 2012 John W. Linville <linville@redhat.com> - 0.7.3-6
|
|
|
|
- Fixup typo in configuration file path in hostapd.service
|
|
|
|
- Tighten-up default permissions for hostapd.conf
|
|
|
|
|
2012-02-28 14:25:16 +00:00
|
|
|
* Tue Feb 28 2012 Jon Ciesla <limburgher@gmail.com> - 0.7.3-5
|
|
|
|
- Migrate to systemd, BZ 770310.
|
|
|
|
|
2012-01-18 19:15:21 +00:00
|
|
|
* Wed Jan 18 2012 John W. Linville <linville@redhat.com> - 0.7.3-4
|
|
|
|
- Add reference to sample hostapd.conf in the default installed version
|
|
|
|
- Include README-WPS from the hostapd distribution as part of the docs
|
|
|
|
|
2012-01-13 04:56:46 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-09 09:20:48 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-23 17:03:29 +00:00
|
|
|
* Thu Dec 23 2010 John W. Linville <linville@redhat.com> - 0.7.3-1
|
|
|
|
- Update to version 0.7.3
|
|
|
|
|
2010-11-24 19:51:31 +00:00
|
|
|
* Wed Nov 24 2010 John W. Linville <linville@redhat.com> - 0.6.10-3
|
|
|
|
- Use ghost directive for /var/run/hostapd
|
|
|
|
- Remove some rpmlint warnings
|
|
|
|
|
2010-05-27 15:28:15 +00:00
|
|
|
* Thu May 27 2010 John W. Linville <linville@redhat.com> - 0.6.10-2
|
|
|
|
- Move DTIM period configuration into Beacon set operation
|
|
|
|
|
2010-05-10 17:29:08 +00:00
|
|
|
* Mon May 10 2010 John W. Linville <linville@redhat.com> - 0.6.10-1
|
|
|
|
- Update to version 0.6.10
|
|
|
|
|
2010-01-19 15:43:16 +00:00
|
|
|
* Tue Jan 19 2010 John W. Linville <linville@redhat.com> - 0.6.9-8
|
|
|
|
- Do not compress man pages manually in spec file
|
|
|
|
- Correct date of previous changelog entry
|
|
|
|
|
|
|
|
* Thu Jan 14 2010 John W. Linville <linville@redhat.com> - 0.6.9-7
|
2010-01-14 19:31:27 +00:00
|
|
|
- Enable 802.11n support
|
|
|
|
|
2009-12-21 20:06:43 +00:00
|
|
|
* Thu Dec 17 2009 John W. Linville <linville@redhat.com> - 0.6.9-6
|
|
|
|
- Enable RADIUS server
|
|
|
|
- Enable "wired" and "none" drivers
|
|
|
|
- Use BSD license option
|
|
|
|
|
|
|
|
* Wed Dec 16 2009 John W. Linville <linville@redhat.com> - 0.6.9-5
|
|
|
|
- Use openssl instead of gnutls (broken)
|
|
|
|
|
|
|
|
* Wed Dec 16 2009 John W. Linville <linville@redhat.com> - 0.6.9-4
|
2010-11-24 19:51:31 +00:00
|
|
|
- Remove wired.conf from doc (not in chosen configuration)
|
2009-12-21 20:06:43 +00:00
|
|
|
- Use $RPM_OPT_FLAGS
|
2010-11-24 19:51:31 +00:00
|
|
|
- Add dist tag
|
2009-12-21 20:06:43 +00:00
|
|
|
|
|
|
|
* Wed Dec 16 2009 John W. Linville <linville@redhat.com> - 0.6.9-3
|
|
|
|
- Use gnutls instead of openssl
|
|
|
|
- Turn-off internal EAP server (broken w/ gnutls)
|
2010-11-24 19:51:31 +00:00
|
|
|
- Remove doc files not applicable to chosen configuration
|
2009-12-21 20:06:43 +00:00
|
|
|
- Un-mangle README filename for logwatch sub-package
|
|
|
|
|
|
|
|
* Wed Dec 16 2009 John W. Linville <linville@redhat.com> - 0.6.9-2
|
|
|
|
- Initial build
|
|
|
|
- Start release at 2 to avoid conflicts w/ previous attempts by others
|