[packages/wpa_supplicant] - added systemd macros - release 3

baggins baggins at pld-linux.org
Wed Sep 5 20:36:54 CEST 2012


commit c299b6ab86f7c314192ea0ede3af7a37c1b1d94a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Sep 5 20:36:39 2012 +0200

    - added systemd macros
    - release 3

 wpa_supplicant.spec | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/wpa_supplicant.spec b/wpa_supplicant.spec
index bdc8708..28a4f79 100644
--- a/wpa_supplicant.spec
+++ b/wpa_supplicant.spec
@@ -16,8 +16,7 @@ Summary:	Linux WPA/WPA2/RSN/IEEE 802.1X supplicant
 Summary(pl.UTF-8):	Suplikant WPA/WPA2/RSN/IEEE 802.1X dla Linuksa
 Name:		wpa_supplicant
 Version:	1.0
-# TODO: systemd post macros
-Release:	2.2
+Release:	3
 License:	GPL v2
 Group:		Networking
 Source0:	http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
@@ -40,7 +39,7 @@ BuildRequires:	libnl-devel >= 1:3.2
 BuildRequires:	ncurses-devel
 BuildRequires:	openssl-devel
 BuildRequires:	pkgconfig
-BuildRequires:	rpmbuild(macros) >= 1.644
+BuildRequires:	rpmbuild(macros) >= 1.647
 %if %{with gui}
 BuildRequires:	QtGui-devel
 BuildRequires:	qt4-build
@@ -228,6 +227,16 @@ cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%systemd_reload
+%systemd_service_restart wpa_supplicant.service
+
+%preun
+%systemd_preun wpa_supplicant.service
+
+%postun
+%systemd_reload
+
 %post	-n libeap -p /sbin/ldconfig
 %postun	-n libeap -p /sbin/ldconfig
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wpa_supplicant.git/commitdiff/c299b6ab86f7c314192ea0ede3af7a37c1b1d94a



More information about the pld-cvs-commit mailing list