diff --git a/srcpkgs/chrony/files/chrony.logrotate b/srcpkgs/chrony/files/chrony.logrotate new file mode 100644 index 00000000000..d3d947d4c51 --- /dev/null +++ b/srcpkgs/chrony/files/chrony.logrotate @@ -0,0 +1,7 @@ +/var/log/chrony/* { + missingok + sharedscripts + postrotate + systemctl try-restart chronie.service >/dev/null 2>&1 || true + endscript +} diff --git a/srcpkgs/chrony/template b/srcpkgs/chrony/template index 434aec34243..2a39489f3c0 100644 --- a/srcpkgs/chrony/template +++ b/srcpkgs/chrony/template @@ -1,7 +1,7 @@ # Template file for 'chrony' pkgname=chrony version=1.26 -revision=2 +revision=3 homepage="http://chrony.tuxfamily.org/" distfiles="http://download.tuxfamily.org/chrony/$pkgname-$version.tar.gz" build_style=gnu_configure @@ -35,5 +35,6 @@ Add_dependency build readline-devel post_install() { vinstall ${FILESDIR}/chrony.conf 644 etc vinstall ${FILESDIR}/chrony.service 644 lib/systemd/system + vinstall ${FILESDIR}/chrony.logrotate 644 etc/logrotate.d chrony rm -rf ${DESTDIR}/usr/share/doc }