Remove hostapd-specific runtime state directory

This commit is contained in:
John W. Linville 2012-06-08 10:24:44 -04:00
parent 05a3aac9bd
commit d283ee2b22
2 changed files with 6 additions and 7 deletions

View File

@ -4,8 +4,8 @@ After=network.target
[Service] [Service]
Type=forking Type=forking
PIDFile=/run/hostapd/hostapd.pid PIDFile=/run/hostapd.pid
ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd/hostapd.pid -B ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -1,6 +1,6 @@
Name: hostapd Name: hostapd
Version: 0.7.3 Version: 0.7.3
Release: 8%{?dist} Release: 9%{?dist}
Summary: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator Summary: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Group: System Environment/Daemons Group: System Environment/Daemons
License: BSD License: BSD
@ -88,9 +88,6 @@ install -d %{buildroot}/%{_sbindir}
install -pm 0755 hostapd/hostapd %{buildroot}%{_sbindir}/hostapd install -pm 0755 hostapd/hostapd %{buildroot}%{_sbindir}/hostapd
install -pm 0755 hostapd/hostapd_cli %{buildroot}%{_sbindir}/hostapd_cli install -pm 0755 hostapd/hostapd_cli %{buildroot}%{_sbindir}/hostapd_cli
# runtime state directory
install -d %{buildroot}/%{_localstatedir}/run/%{name}
# man pages # man pages
install -d %{buildroot}%{_mandir}/man{1,8} install -d %{buildroot}%{_mandir}/man{1,8}
install -pm 0644 hostapd/hostapd_cli.1 %{buildroot}%{_mandir}/man1 install -pm 0644 hostapd/hostapd_cli.1 %{buildroot}%{_mandir}/man1
@ -119,7 +116,6 @@ rm -rf %{buildroot}
%{_sbindir}/hostapd %{_sbindir}/hostapd
%{_sbindir}/hostapd_cli %{_sbindir}/hostapd_cli
%dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}
%ghost %{_localstatedir}/run/%{name}
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man8/* %{_mandir}/man8/*
@ -167,6 +163,9 @@ fi
%changelog %changelog
* Fri Jun 8 2012 John W. Linville <linville@redhat.com> - 0.7.3-9
- Remove hostapd-specific runtime state directory
* Wed Jun 6 2012 John W. Linville <linville@redhat.com> - 0.7.3-8 * Wed Jun 6 2012 John W. Linville <linville@redhat.com> - 0.7.3-8
- Fixup typo in pid file path in hostapd.service - Fixup typo in pid file path in hostapd.service