[arch-commits] Commit in logwatch/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Thu Sep 19 11:01:47 UTC 2019


    Date: Thursday, September 19, 2019 @ 11:01:46
  Author: spupykin
Revision: 511160

upgpkg: logwatch 7.5.2-2

Modified:
  logwatch/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-19 10:52:21 UTC (rev 511159)
+++ PKGBUILD	2019-09-19 11:01:46 UTC (rev 511160)
@@ -3,12 +3,13 @@
 
 pkgname=logwatch
 pkgver=7.5.2
-pkgrel=1
+pkgrel=2
 arch=('any')
 pkgdesc="Logwatch is a customizable log analysis system."
 url="http://www.logwatch.org/"
-depends=('perl' 'cron')
-optdepends=('perl-date-manip: human readable dates')
+depends=('perl')
+optdepends=('cron'
+	    'perl-date-manip: human readable dates')
 license=('custom')
 backup=(etc/logwatch/conf/logwatch.conf
 	etc/logwatch/conf/ignore.conf
@@ -72,10 +73,8 @@
 	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
 
@@ -87,6 +86,10 @@
 	install -Dm0644 "$srcdir"/messages.conf "$pkgdir"/usr/share/logwatch/dist.conf/logfiles/messages.conf
 	install -Dm0644 "$srcdir"/secure.conf "$pkgdir"/usr/share/logwatch/dist.conf/logfiles/secure.conf
 
+	# systemd
+	install -Dm0644 scheduler/logwatch.timer "$pkgdir"/usr/lib/systemd/system/logwatch.timer
+	install -Dm0644 scheduler/logwatch.service "$pkgdir"/usr/lib/systemd/system/logwatch.service
+
 	install -m 0755 -d "$pkgdir"/usr/share/licenses/$pkgname/
 	install -m 0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/
 }


More information about the arch-commits mailing list