Hello community, here is the log from the commit of package at for openSUSE:Factory checked in at 2011-12-06 13:51:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/at (Old) and /work/SRC/openSUSE:Factory/.at.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "at", Maintainer is "vci...@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/at/at.changes 2011-09-23 01:52:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.at.new/at.changes 2011-12-06 13:51:51.000000000 +0100 @@ -1,0 +2,10 @@ +Mon Dec 5 19:19:40 UTC 2011 - crrodrig...@opensuse.org + +- Fix rpmlint warnings + +------------------------------------------------------------------- +Mon Dec 5 19:05:48 UTC 2011 - crrodrig...@opensuse.org + +- Support systemd. + +------------------------------------------------------------------- New: ---- atd.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ at.spec ++++++ --- /var/tmp/diff_new_pack.pvkiMQ/_old 2011-12-06 13:51:52.000000000 +0100 +++ /var/tmp/diff_new_pack.pvkiMQ/_new 2011-12-06 13:51:52.000000000 +0100 @@ -31,6 +31,7 @@ Source2: atd.pamd Source3: sysconfig.atd Source4: at.sleep +Source5: http://0pointer.de/public/systemd-units/atd.service Patch0: %{name}-%{version}.patch Patch1: %{name}-%{version}-bison.patch Patch2: %{name}-%{version}-delete_r.patch @@ -60,7 +61,13 @@ Patch19: %{name}-%{version}-jobdir-mtime.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %{_sbindir}/useradd %{_sbindir}/groupadd %fillup_prereq %insserv_prereq +PreReq: permissions Recommends: smtp_daemon +%if 0%{?suse_version} > 1140 +BuildRequires: systemd +%{?systemd_requires} +%define has_systemd 1 +%endif %description This program allows you to run jobs at specified times. @@ -115,13 +122,22 @@ 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 +%endif %pre %{_sbindir}/groupadd -g 25 -o -r at 2> /dev/null || : %{_sbindir}/useradd -r -o -g at -u 25 -s /bin/bash -c "Batch jobs daemon" -d /var/spool/atjobs at 2> /dev/null || : +%if 0%{?has_systemd} +%service_add_pre atd.service +%endif %preun %stop_on_removal atd +%if 0%{?has_systemd} +%service_del_preun atd.service +%endif %post # update hack @@ -131,11 +147,19 @@ %{insserv_cleanup} fi %{fillup_and_insserv -n atd atd } -%run_permissions +%set_permissions /usr/bin/at +%verifyscript +%verify_permissions -e /usr/bin/at +%if 0%{?has_systemd} +%service_add_post atd.service +%endif %postun %restart_on_update atd %insserv_cleanup +%if 0%{?has_systemd} +%service_del_postun atd.service +%endif %files %defattr(-,root,root) @@ -158,5 +182,8 @@ %attr(700,at,at) %dir /var/spool/atjobs %attr(600,at,at) /var/spool/atjobs/.SEQ /var/adm/fillup-templates/sysconfig.atd +%if 0%{?has_systemd} +%{_unitdir}/atd.service +%endif %changelog ++++++ atd.service ++++++ [Unit] Description=Execution Queue Daemon After=syslog.target [Service] ExecStart=/usr/sbin/atd -f [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org