Hello community, here is the log from the commit of package geoipupdate for openSUSE:Factory checked in at 2019-06-20 18:56:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/geoipupdate (Old) and /work/SRC/openSUSE:Factory/.geoipupdate.new.4811 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "geoipupdate" Thu Jun 20 18:56:34 2019 rev:8 rq:711034 version:3.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/geoipupdate/geoipupdate.changes 2019-06-19 21:14:37.390876146 +0200 +++ /work/SRC/openSUSE:Factory/.geoipupdate.new.4811/geoipupdate.changes 2019-06-20 18:56:35.920944324 +0200 @@ -1,0 +2,6 @@ +Thu Jun 20 05:35:01 UTC 2019 - Wolfgang Rosenauer <[email protected]> + +- added systemd timer for weekly updates + (needs to be enabled by admin) + +------------------------------------------------------------------- New: ---- geoipupdate.service geoipupdate.timer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ geoipupdate.spec ++++++ --- /var/tmp/diff_new_pack.xpv5dE/_old 2019-06-20 18:56:37.276946182 +0200 +++ /var/tmp/diff_new_pack.xpv5dE/_new 2019-06-20 18:56:37.280946187 +0200 @@ -24,12 +24,16 @@ Group: Productivity/Networking/System URL: https://www.maxmind.com Source0: https://github.com/maxmind/geoipupdate-legacy/archive/v%{version}/%{name}-legacy-%{version}.tar.gz +Source1: geoipupdate.timer +Source2: geoipupdate.service BuildRequires: autoconf BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(zlib) Conflicts: GeoIP < 1.6.0 +%{?systemd_requires} %description The GeoIP Update program performs automatic updates of GeoIP2 and GeoIP @@ -51,10 +55,24 @@ install -D -p -m 0644 conf/GeoIP.conf.default \ %{buildroot}%{_sysconfdir}/GeoIP.conf.default rm -rf %{buildroot}%{_datadir}/doc/geoipupdate +install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.timer +install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service %check make %{?_smp_mflags} check +%pre +%service_add_pre %{name}.service + +%post +%service_add_post %{name}.service + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service + %files %license LICENSE %doc README.md ChangeLog.md @@ -62,6 +80,8 @@ %config %{_sysconfdir}/GeoIP.conf.default %dir %{_localstatedir}/lib/GeoIP %{_bindir}/geoipupdate +%{_unitdir}/%{name}.service +%{_unitdir}/%{name}.timer %{_mandir}/man1/geoipupdate.1%{?ext_man} %{_mandir}/man5/GeoIP.conf.5%{?ext_man} ++++++ geoipupdate.service ++++++ [Unit] Description=Update GeoIP databases Documentation=man:geoipupdate(1) man:GeoIP.conf(5) [Service] Type=oneshot WorkingDirectory=/var/lib/GeoIP ExecStart=/usr/bin/geoipupdate ++++++ geoipupdate.timer ++++++ [Unit] Description=Weekly update of GeoLite2 databases Documentation=man:geoipupdate(1) man:GeoIP.conf(5) [Timer] OnUnitInactiveSec=1w OnStartupSec=1h AccuracySec=1h [Install] WantedBy=timers.target
