Hello community,

here is the log from the commit of package hylafax+ for openSUSE:Factory 
checked in at 2019-01-24 14:14:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hylafax+ (Old)
 and      /work/SRC/openSUSE:Factory/.hylafax+.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hylafax+"

Thu Jan 24 14:14:50 2019 rev:26 rq:667905 version:5.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/hylafax+/hylafax+.changes        2018-11-29 
22:59:24.631579619 +0100
+++ /work/SRC/openSUSE:Factory/.hylafax+.new.28833/hylafax+.changes     
2019-01-24 14:14:51.923261933 +0100
@@ -1,0 +2,21 @@
+Wed Jan 23 00:45:23 UTC 2019 - Jan Engelhardt <[email protected]>
+
+- Reduce boilerplate generated from %service_* by calling it just
+  once.
+
+-------------------------------------------------------------------
+Fri Jan 18 14:10:13 UTC 2019 - Axel Braun <[email protected]>
+
+- faxgetty@ service removed from %pre section, as it is only a placeholder
+
+-------------------------------------------------------------------
+Wed Jan 16 17:11:37 UTC 2019 - Axel Braun <[email protected]>
+
+- Dependency on hylafax-hfaxd for timers added
+
+-------------------------------------------------------------------
+Tue Jan  8 19:53:15 UTC 2019 - Axel Braun <[email protected]>
+
+- migrate from cron to systemd timers (boo#1115442)
+
+-------------------------------------------------------------------

Old:
----
  hylafax+_daily.cron
  hylafax+_hourly.cron

New:
----
  hylafax-faxqclean.service
  hylafax-faxqclean.timer
  hylafax-usage.service
  hylafax-usage.timer

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hylafax+.spec ++++++
--- /var/tmp/diff_new_pack.ZAIY8p/_old  2019-01-24 14:14:53.007260680 +0100
+++ /var/tmp/diff_new_pack.ZAIY8p/_new  2019-01-24 14:14:53.011260675 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hylafax+
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -26,14 +26,18 @@
 Group:          Productivity/Telephony/Servers
 URL:            http://hylafax.sourceforge.net
 Source0:        
http://downloads.sourceforge.net/hylafax/hylafax-%{version}.tar.gz
-Source2:        hylafax+_daily.cron
-Source3:        hylafax+_hourly.cron
 Source4:        hylafax-hfaxd.service
 Source5:        hylafax-faxq.service
 Source6:        [email protected]
 Source7:        hylafax.target
 Source8:        README.SUSE
 Source9:        sendonly.conf
+# systemd-timer
+Source10:       hylafax-usage.timer
+Source11:       hylafax-usage.service
+Source12:       hylafax-faxqclean.timer
+Source13:       hylafax-faxqclean.service
+
 BuildRequires:  gcc-c++
 BuildRequires:  ghostscript
 BuildRequires:  libjbig-devel
@@ -47,8 +51,8 @@
 BuildRequires:  tiff
 BuildRequires:  pkgconfig(lcms2)
 BuildRequires:  pkgconfig(libtiff-4)
+BuildRequires:  pkgconfig(systemd)
 BuildRequires:  pkgconfig(zlib)
-Requires:       cron
 Requires:       gawk
 Requires:       ghostscript
 Requires:       ghostscript-fonts
@@ -133,7 +137,6 @@
 
 %install
 # install: make some dirs...
-mkdir -p -m 755 %{buildroot}%{_sysconfdir}/{cron.daily,cron.hourly}
 mkdir -p -m 755 %{buildroot}%{_sysconfdir}/hylafax
 mkdir -p -m 755 %{buildroot}%{_unitdir}
 mkdir -p -m 755 %{buildroot}%{_initddir}
@@ -161,12 +164,14 @@
         MAN=%{buildroot}%{_mandir} \
         INSTALL_ROOT=%{buildroot}
 
-install -p -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily/hylafax
-install -p -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.hourly/hylafax
 install -p -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/hylafax-hfaxd.service
 install -p -m 644 %{SOURCE5} %{buildroot}%{_unitdir}/hylafax-faxq.service
 install -p -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/[email protected]
 install -p -m 644 %{SOURCE7} %{buildroot}%{_unitdir}/hylafax.target
+install -D -m 0644 %{SOURCE10} %{buildroot}%{_unitdir}/hylafax-usage.timer
+install -D -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/hylafax-usage.service
+install -D -m 0644 %{SOURCE12} %{buildroot}%{_unitdir}/hylafax-faxqclean.timer
+install -D -m 0644 %{SOURCE13} 
%{buildroot}%{_unitdir}/hylafax-faxqclean.service
 
 for lnk in hylafax-hfaxd hylafax-faxq; do
     ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc$lnk
@@ -184,26 +189,18 @@
 rm -f %{buildroot}%{faxspool}/COPYRIGHT
 
 %pre
-%service_add_pre hylafax-faxq.service
-%service_add_pre [email protected]
-%service_add_pre hylafax-hfaxd.service
+%service_add_pre hylafax-faxq.service hylafax-hfaxd.service 
hylafax-usage.timer hylafax-faxqclean.timer
 
 %post
 /sbin/ldconfig
-%service_add_post hylafax-faxq.service
-%service_add_post [email protected]
-%service_add_post hylafax-hfaxd.service
+%service_add_post hylafax-faxq.service hylafax-hfaxd.service 
hylafax-usage.timer hylafax-faxqclean.timer
 
 %preun
-%service_del_preun hylafax-faxq.service
-%service_del_preun [email protected]
-%service_del_preun hylafax-hfaxd.service
+%service_del_preun hylafax-faxq.service hylafax-hfaxd.service 
hylafax-usage.timer hylafax-faxqclean.timer
 
 %postun
 /sbin/ldconfig
-%service_del_postun hylafax-faxq.service
-%service_del_postun [email protected]
-%service_del_postun hylafax-hfaxd.service
+%service_del_postun hylafax-faxq.service hylafax-hfaxd.service 
hylafax-usage.timer hylafax-faxqclean.timer
 
 %post -n libfaxutil%{lib_version} -p /sbin/ldconfig
 %postun -n libfaxutil%{lib_version} -p /sbin/ldconfig
@@ -213,6 +210,10 @@
 %{_unitdir}/hylafax-faxq.service
 %{_unitdir}/[email protected]
 %{_unitdir}/hylafax.target
+%{_unitdir}/hylafax-usage.timer
+%{_unitdir}/hylafax-usage.service
+%{_unitdir}/hylafax-faxqclean.timer
+%{_unitdir}/hylafax-faxqclean.service
 %{_sbindir}/rchylafax-faxq
 %{_sbindir}/rchylafax-hfaxd
 %{_sbindir}/rchylafax
@@ -298,8 +299,6 @@
 %{faxspool}%{_sysconfdir}/LiberationSans-25.pcf
 %config(noreplace) %{faxspool}%{_sysconfdir}/dialrules*
 %defattr(755,root,root,-)
-%config(noreplace) %{_sysconfdir}/cron.daily/hylafax
-%config(noreplace) %{_sysconfdir}/cron.hourly/hylafax
 %{_sbindir}/choptest
 %{_sbindir}/cqtest
 %{_sbindir}/dialtest

++++++ README.SUSE ++++++
--- /var/tmp/diff_new_pack.ZAIY8p/_old  2019-01-24 14:14:53.039260643 +0100
+++ /var/tmp/diff_new_pack.ZAIY8p/_new  2019-01-24 14:14:53.039260643 +0100
@@ -26,6 +26,18 @@
 systemctl enable hylafax-hfaxd.service
 systemctl enable hylafax-faxq.service
 
+
+systemd-timers
+--------------
+
+openSUSE has moved from cron to systemd-timers. By default we ship 2 timers, 
+for cleaning the faxqueue and for usage statistics. You need to enable them in 
+case you want to make use of these features:
+
+systemctl enable hylafax-faxqclean.timer
+systemctl enable hylafax-usage.timer
+
+
 Receiving faxes
 ---------------
 
@@ -40,6 +52,7 @@
 systemctl enable [email protected]
 systemctl enable [email protected]
 
+
 Send-only environment
 ---------------------
 

++++++ hylafax-faxqclean.service ++++++
#
# Hylafax usage timers for systemd-timers - service 
# Copyright (c) 2019 Dr. Axel Braun <[email protected]>
#

[Unit]
Description=Faxqueue cleaner process
Documentation=man:faxqclean(8) 

[Service]
Type=oneshot
ExecStart=/usr/sbin/faxqclean
++++++ hylafax-faxqclean.timer ++++++
#
# Hylafax cleaner timer for systemd-timers
# Copyright (c) 2019 Dr. Axel Braun <[email protected]>
#

[Unit]
Description=Faxqueue cleaner process
Documentation=man:faxqclean(8) 
Requires=hylafax-hfaxd.service

[Timer]
OnCalendar=hourly
AccuracySec=30m
Persistent=true

[Install]
WantedBy=timers.target
++++++ hylafax-usage.service ++++++
#
# Hylafax usage file for systemd-timers - service 
# Copyright (c) 2019 Dr. Axel Braun <[email protected]>
#

[Unit]
Description=Daily usage statistics for hylafax
Documentation=man:faxcron(8) 

[Service]
Type=oneshot
ExecStart=/bin/bash -c '/usr/sbin/faxcron | mail -s "HylaFAX Usage Report" 
faxmaster'
++++++ hylafax-usage.timer ++++++
#
# Hylafax usage file for systemd-timers
# Copyright (c) 2019 Dr. Axel Braun <[email protected]>
#

[Unit]
Description=Daily usage statistics for hylafax
Documentation=man:faxcron(8) 
Requires=hylafax-hfaxd.service

[Timer]
OnCalendar=daily
AccuracySec=12h
Persistent=true

[Install]
WantedBy=timers.target

Reply via email to