Index: logwatch/repos/community-any/PKGBUILD =================================================================== --- logwatch/repos/community-any/PKGBUILD (revision 267080) +++ logwatch/repos/community-any/PKGBUILD (working copy) @@ -4,11 +4,11 @@ pkgname=logwatch pkgver=7.4.3 -pkgrel=3 +pkgrel=4 arch=('any') pkgdesc="Logwatch is a customizable log analysis system." url="http://www.logwatch.org/" -depends=('perl' 'cron') +depends=('perl') optdepends=('perl-date-manip: human readable dates') license=('custom') backup=(etc/logwatch/conf/logwatch.conf @@ -17,11 +17,15 @@ source=(http://downloads.sourceforge.net/project/logwatch/logwatch-$pkgver/logwatch-$pkgver.tar.gz https://src.fedoraproject.org/cgit/rpms/logwatch.git/plain/logwatch-journald-source.patch https://src.fedoraproject.org/cgit/rpms/logwatch.git/plain/logwatch-journal.patch - logwatch-xz-support.patch) + logwatch-xz-support.patch + logwatch.timer + logwatch.service) sha256sums=('1dbdc48d65e150f2dbb43f1e4f4700d94166e053b1c7bbbdedf4ad670283720e' '12704561991f1775dcf7751628ef8c12f8b4e822f523c095f57a5bbb6d4217e9' 'bef20eb3b68ee665c4c2ef6e794f59c50049605ec055a07b75fda055c70e4356' - '3da549a147c16eae38ec19c221205dfdf3467ed9f17ad14767ebf292880c6e31') + '3da549a147c16eae38ec19c221205dfdf3467ed9f17ad14767ebf292880c6e31' + 'e8d78befe292fa60aa0385864aef5f9bb4efdfd9c549a8525452a6aa1debfe8c' + 'd64d67c0c165db2c63e87066be3dbe3e4d256583a73ea2d37a54750a4fefcb80') prepare() { cd "$srcdir"/$pkgname-$pkgver @@ -78,13 +82,18 @@ install -m 0755 -d "$pkgdir"/usr/share/man/man8/ install -m 0644 logwatch.8 "$pkgdir"/usr/share/man/man8/ - install -m 0755 -d "$pkgdir"/etc/cron.daily/ install -m 0755 -d "$pkgdir"/usr/bin/ ln -s /usr/share/logwatch/scripts/logwatch.pl "$pkgdir"/usr/bin/logwatch - ln -s /usr/share/logwatch/scripts/logwatch.pl "$pkgdir"/etc/cron.daily/0logwatch install -m 0755 -d "$pkgdir"/var/cache/logwatch install -m 0755 -d "$pkgdir"/usr/share/licenses/$pkgname/ install -m 0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/ + + install -m 0755 -d "$pkgdir"/usr/lib/systemd/system + install -m 0644 ../logwatch.timer "$pkgdir"/usr/lib/systemd/system/logwatch.timer + install -m 0644 ../logwatch.service "$pkgdir"/usr/lib/systemd/system/logwatch.service + install -m 0755 -d "$pkgdir"/usr/lib/systemd/system/multi-user.target.wants + ln -s ../logwatch.timer "$pkgdir"/usr/lib/systemd/system/multi-user.target.wants + } Index: logwatch/repos/community-any/logwatch.service =================================================================== --- logwatch/repos/community-any/logwatch.service (nonexistent) +++ logwatch/repos/community-any/logwatch.service (working copy) @@ -0,0 +1,6 @@ +[Unit] +Description=Run logwatch + +[Service] +Type=oneshot +ExecStart=/usr/bin/logwatch Index: logwatch/repos/community-any/logwatch.timer =================================================================== --- logwatch/repos/community-any/logwatch.timer (nonexistent) +++ logwatch/repos/community-any/logwatch.timer (working copy) @@ -0,0 +1,7 @@ +[Unit] +Description=Daily logwatch run + +[Timer] +OnCalendar=daily +AccuracySec=1d +Persistent=true Index: logwatch/trunk/PKGBUILD =================================================================== --- logwatch/trunk/PKGBUILD (revision 267080) +++ logwatch/trunk/PKGBUILD (working copy) @@ -4,11 +4,11 @@ pkgname=logwatch pkgver=7.4.3 -pkgrel=3 +pkgrel=4 arch=('any') pkgdesc="Logwatch is a customizable log analysis system." url="http://www.logwatch.org/" -depends=('perl' 'cron') +depends=('perl') optdepends=('perl-date-manip: human readable dates') license=('custom') backup=(etc/logwatch/conf/logwatch.conf @@ -17,11 +17,15 @@ source=(http://downloads.sourceforge.net/project/logwatch/logwatch-$pkgver/logwatch-$pkgver.tar.gz https://src.fedoraproject.org/cgit/rpms/logwatch.git/plain/logwatch-journald-source.patch https://src.fedoraproject.org/cgit/rpms/logwatch.git/plain/logwatch-journal.patch - logwatch-xz-support.patch) + logwatch-xz-support.patch + logwatch.timer + logwatch.service) sha256sums=('1dbdc48d65e150f2dbb43f1e4f4700d94166e053b1c7bbbdedf4ad670283720e' '12704561991f1775dcf7751628ef8c12f8b4e822f523c095f57a5bbb6d4217e9' 'bef20eb3b68ee665c4c2ef6e794f59c50049605ec055a07b75fda055c70e4356' - '3da549a147c16eae38ec19c221205dfdf3467ed9f17ad14767ebf292880c6e31') + '3da549a147c16eae38ec19c221205dfdf3467ed9f17ad14767ebf292880c6e31' + 'e8d78befe292fa60aa0385864aef5f9bb4efdfd9c549a8525452a6aa1debfe8c' + 'd64d67c0c165db2c63e87066be3dbe3e4d256583a73ea2d37a54750a4fefcb80') prepare() { cd "$srcdir"/$pkgname-$pkgver @@ -78,13 +82,18 @@ install -m 0755 -d "$pkgdir"/usr/share/man/man8/ install -m 0644 logwatch.8 "$pkgdir"/usr/share/man/man8/ - install -m 0755 -d "$pkgdir"/etc/cron.daily/ install -m 0755 -d "$pkgdir"/usr/bin/ ln -s /usr/share/logwatch/scripts/logwatch.pl "$pkgdir"/usr/bin/logwatch - ln -s /usr/share/logwatch/scripts/logwatch.pl "$pkgdir"/etc/cron.daily/0logwatch install -m 0755 -d "$pkgdir"/var/cache/logwatch install -m 0755 -d "$pkgdir"/usr/share/licenses/$pkgname/ install -m 0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/ + + install -m 0755 -d "$pkgdir"/usr/lib/systemd/system + install -m 0644 ../logwatch.timer "$pkgdir"/usr/lib/systemd/system/logwatch.timer + install -m 0644 ../logwatch.service "$pkgdir"/usr/lib/systemd/system/logwatch.service + install -m 0755 -d "$pkgdir"/usr/lib/systemd/system/multi-user.target.wants + ln -s ../logwatch.timer "$pkgdir"/usr/lib/systemd/system/multi-user.target.wants + } Index: logwatch/trunk/logwatch.service =================================================================== --- logwatch/trunk/logwatch.service (nonexistent) +++ logwatch/trunk/logwatch.service (working copy) @@ -0,0 +1,6 @@ +[Unit] +Description=Run logwatch + +[Service] +Type=oneshot +ExecStart=/usr/bin/logwatch Index: logwatch/trunk/logwatch.timer =================================================================== --- logwatch/trunk/logwatch.timer (nonexistent) +++ logwatch/trunk/logwatch.timer (working copy) @@ -0,0 +1,7 @@ +[Unit] +Description=Daily logwatch run + +[Timer] +OnCalendar=daily +AccuracySec=1d +Persistent=true