Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tmpwatch for openSUSE:Factory checked in at 2023-10-17 20:24:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tmpwatch (Old) and /work/SRC/openSUSE:Factory/.tmpwatch.new.20540 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tmpwatch" Tue Oct 17 20:24:42 2023 rev:29 rq:1118119 version:2.11 Changes: -------- --- /work/SRC/openSUSE:Factory/tmpwatch/tmpwatch.changes 2019-08-22 10:52:15.293700832 +0200 +++ /work/SRC/openSUSE:Factory/.tmpwatch.new.20540/tmpwatch.changes 2023-10-17 20:24:48.690889597 +0200 @@ -1,0 +2,17 @@ +Fri Oct 13 03:31:05 UTC 2023 - Martin Jungblut Schreiner <martinjungb...@gmail.com> + +- Remove tmpwatch.daily cron script, replace it with systemd timer. +- Remove cron as a dependency. +- Add tmpwatch.service, tmpwatch.timer, rename tmpwatch.daily as + /usr/sbin/tmpwatch-autoclean. The systemd timer/service triggers + this newly named script. +- This change is related to bsc#1115430. + +------------------------------------------------------------------- +Wed Aug 21 08:19:38 UTC 2019 - Jan Engelhardt <jeng...@inai.de> + +- The cron software is not required for building the tmpwatch + proper; avoid pulling it in and ship cron file directories. +- Enable parallel build. Upgrade old macros. + +------------------------------------------------------------------- Old: ---- tmpwatch.daily New: ---- tmpwatch-autoclean tmpwatch.service tmpwatch.timer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tmpwatch.spec ++++++ --- /var/tmp/diff_new_pack.2sGvFK/_old 2023-10-17 20:24:49.478917183 +0200 +++ /var/tmp/diff_new_pack.2sGvFK/_new 2023-10-17 20:24:49.482917324 +0200 @@ -1,7 +1,7 @@ # # spec file for package tmpwatch # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,13 +22,12 @@ Group: Productivity/Security Version: 2.11 Release: 0 -Url: https://pagure.io/tmpwatch -#Source0: https://pagure.io/tmpwatch/archive/%{name}-%{version}/%{name}-%{name}-%{version}.tar.gz +URL: https://pagure.io/tmpwatch Source0: %{name}-%{version}.tar.bz2 -Source1: %{name}.daily -BuildRequires: cron +Source1: %{name}.service +Source2: %{name}.timer +Source3: %{name}-autoclean BuildRequires: psmisc -Requires: cron Requires: psmisc %description @@ -47,16 +46,33 @@ %build %configure -%{__make} +make %{?_smp_mflags} %install -%makeinstall -%{__install} -D -m755 %{S:1} %{buildroot}%{_sysconfdir}/cron.daily/%{name} +%make_install +install -D -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service +install -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/%{name}.timer +install -D -m 0755 %{SOURCE3} %{buildroot}/%{_sbindir}/%{name}-autoclean + +%pre +%service_add_pre %{name}.service %{name}.timer + +%post +%service_add_post tmpwatch.service tmpwatch.timer + +%preun +%service_del_preun %{name}.service %{name}.timer + +%postun +%service_del_postun %{name}.service %{name}.timer %files %defattr(-,root,root) -%doc ChangeLog NEWS README COPYING -%config(noreplace) %{_sysconfdir}/cron.daily/%{name} +%doc ChangeLog NEWS README +%license COPYING %{_sbindir}/%{name} +%{_sbindir}/%{name}-autoclean +%{_unitdir}/%{name}.service +%{_unitdir}/%{name}.timer %{_mandir}/man8/%{name}.8* ++++++ tmpwatch-autoclean ++++++ #! /bin/sh flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 10d /tmp /usr/sbin/tmpwatch "$flags" 30d /var/tmp for d in /var/cache/man /var/catman; do [ -d $d ] || continue for c in cat X11R6/cat local/cat; do for D in $d/${c}?; do [ -d $D ] || continue /usr/sbin/tmpwatch "$flags" -f 30d "$D" done done done ++++++ tmpwatch.service ++++++ [Unit] Description=Automatic clean-up execution of tmpwatch [Service] # added automatically, for details please see # https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort ProtectSystem=full ProtectHome=true ProtectHostname=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictRealtime=true # end of automatic additions Type=oneshot ExecStart=/bin/bash -ce "/usr/sbin/tmpwatch-autoclean" ++++++ tmpwatch.timer ++++++ [Unit] Description=Automatic clean-up execution of tmpwatch [Timer] OnCalendar=Daily AccuracySec=1h Persistent=true [Install] WantedBy=timers.target