Hello community, here is the log from the commit of package rfkill for openSUSE:Factory checked in at 2015-08-05 06:49:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rfkill (Old) and /work/SRC/openSUSE:Factory/.rfkill.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rfkill" Changes: -------- --- /work/SRC/openSUSE:Factory/rfkill/rfkill.changes 2015-01-15 15:59:24.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rfkill.new/rfkill.changes 2015-08-05 06:49:56.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Jul 13 15:23:18 UTC 2015 - [email protected] + +- Add rfkill-{un,}[email protected] unit files + Example: + Use `systemctl {start,stop} block@bluetooth` to block or unblock + (disable or enable) the bluetooth device + +------------------------------------------------------------------- New: ---- [email protected] [email protected] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rfkill.spec ++++++ --- /var/tmp/diff_new_pack.qTrmw5/_old 2015-08-05 06:49:57.000000000 +0200 +++ /var/tmp/diff_new_pack.qTrmw5/_new 2015-08-05 06:49:57.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package rfkill # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,8 @@ Group: Productivity/Networking/Other Url: http://wireless.kernel.org/en/users/Documentation/rfkill Source0: https://www.kernel.org/pub/software/network/%{name}/%{name}-%{version}.tar.bz2 +Source1: [email protected] +Source2: [email protected] BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -40,11 +42,26 @@ %install install -Dm755 rfkill %{buildroot}%{_sbindir}/rfkill install -Dm644 rfkill.8 %{buildroot}%{_mandir}/man8/rfkill.8 +install -Dm644 %{S:1} %{buildroot}%{_unitdir}/[email protected] +install -Dm644 %{S:2} %{buildroot}%{_unitdir}/[email protected] + +%pre +%service_add_pre [email protected] [email protected] + +%post +%service_add_post [email protected] [email protected] + +%preun +%service_del_preun [email protected] [email protected] + +%postun +%service_del_postun [email protected] [email protected] %files %defattr(-,root,root) %doc COPYING README %{_sbindir}/rfkill %{_mandir}/man8/rfkill.8* +%{_unitdir}/* %changelog ++++++ [email protected] ++++++ [Unit] Description=RFKill-Block %I [email protected] [Service] Type=oneshot ExecStart=/usr/sbin/rfkill block %I [Install] WantedBy=multi-user.target ++++++ [email protected] ++++++ [Unit] Description=RFKill-Unblock %I [email protected] [Service] Type=oneshot ExecStart=/usr/sbin/rfkill unblock %I [Install] WantedBy=multi-user.target
