Update to version 2.0 from upstream

- Convert to use of systemd-rpm macros
- Build with PIE flags
This commit is contained in:
John W. Linville 2013-05-30 14:10:42 -04:00
parent e775a92a3b
commit 0995bfd9e2
3 changed files with 17 additions and 30 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/hostapd-1.0.tar.gz
/hostapd-2.0.tar.gz

View File

@ -1,6 +1,6 @@
Name: hostapd
Version: 1.0
Release: 4%{?dist}
Version: 2.0
Release: 1%{?dist}
Summary: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Group: System Environment/Daemons
License: BSD
@ -17,13 +17,11 @@ BuildRequires: libnl-devel >= 1.1
BuildRequires: openssl-devel
BuildRequires: systemd-units
#Requires(post): chkconfig
#Requires(preun): chkconfig
## This is for /sbin/service
#Requires(preun): initscripts
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%global _hardened_build 1
%description
hostapd is a user space daemon for access point and authentication
@ -132,29 +130,13 @@ rm -rf %{buildroot}
%post
#/sbin/chkconfig --add %{name}
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%systemd_post hostapd.service
%preun
#if [ $1 = 0 ]; then
# /sbin/service %{name} stop >/dev/null 2>&1
# /sbin/chkconfig --del %{name}
#fi
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable hostapd.service > /dev/null 2>&1 || :
/bin/systemctl stop hostapd.service > /dev/null 2>&1 || :
fi
%systemd_preun hostapd.service
%postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart hostapd.service >/dev/null 2>&1 || :
fi
%systemd_postun_with_restart hostapd.service
%triggerun -- hostapd < 0.7.3-5
# Save the current service runlevel info
@ -168,6 +150,11 @@ fi
%changelog
* 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
* 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

View File

@ -1 +1 @@
236247a7bbd4f60d5fa3e99849d1ffc9 hostapd-1.0.tar.gz
ba22e639bc57aa4035d2ea8ffa9bbbee hostapd-2.0.tar.gz