Accepting request 180207 from Base:System
- at.sleep move away from pm-utils to systemd-sleep (forwarded request 180075 from elvigia) OBS-URL: https://build.opensuse.org/request/show/180207 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/at?expand=0&rev=53
This commit is contained in:
commit
907b28b475
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 20 01:52:46 UTC 2013 - crrodriguez@opensuse.org
|
||||
|
||||
- at.sleep move away from pm-utils to systemd-sleep
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 18 15:09:18 UTC 2013 - schwab@suse.de
|
||||
|
||||
|
23
at.sleep
23
at.sleep
@ -1,16 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
. $PM_UTILS_LIBDIR/functions
|
||||
|
||||
case "$1" in
|
||||
hibernate|suspend)
|
||||
stopservice atd
|
||||
;;
|
||||
thaw|resume)
|
||||
restartservice atd
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
#!/bin/sh
|
||||
case $1/$2 in
|
||||
pre/*)
|
||||
systemctl --quiet is-enabled atd && systemctl stop atd
|
||||
;;
|
||||
post/*)
|
||||
systemctl --quiet is-enabled atd && systemctl restart atd
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
8
at.spec
8
at.spec
@ -66,7 +66,7 @@ Recommends: smtp_daemon
|
||||
%if 0%{?suse_version} > 1140
|
||||
BuildRequires: libHX-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: systemd
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
%{?systemd_requires}
|
||||
%define has_systemd 1
|
||||
%endif
|
||||
@ -119,9 +119,9 @@ install %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/atd
|
||||
ln -sf ../../etc/init.d/atd $RPM_BUILD_ROOT%{_sbindir}/rcatd
|
||||
install -m644 %SOURCE2 $RPM_BUILD_ROOT/etc/pam.d/atd
|
||||
install -m644 %SOURCE3 $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||
%{__install} -D -m 0755 %{S:4} %{buildroot}%{_sysconfdir}/pm/sleep.d/99%{name}
|
||||
%if 0%{?has_systemd}
|
||||
install -D -m 0644 %{S:5} %{buildroot}%{_unitdir}/atd.service
|
||||
%{__install} -D -m 0755 %{S:4} %{buildroot}%{_prefix}/lib/systemd/system-sleep/atd.sh
|
||||
%endif
|
||||
|
||||
%pre
|
||||
@ -163,9 +163,6 @@ fi
|
||||
%defattr(-,root,root)
|
||||
%doc Problems Copyright COPYING README ChangeLog timespec
|
||||
%config(noreplace) /etc/at.deny
|
||||
%dir %{_sysconfdir}/pm
|
||||
%dir %{_sysconfdir}/pm/sleep.d
|
||||
%config %{_sysconfdir}/pm/sleep.d/99%{name}
|
||||
%{_sbindir}/rcatd
|
||||
%config /etc/init.d/atd
|
||||
%config %attr(644,root,root) /etc/pam.d/atd
|
||||
@ -182,6 +179,7 @@ fi
|
||||
/var/adm/fillup-templates/sysconfig.atd
|
||||
%if 0%{?has_systemd}
|
||||
%{_unitdir}/atd.service
|
||||
%{_prefix}/lib/systemd/system-sleep/atd.sh
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user