# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
distname logwatch-${version}
maintainers {khindenburg @kurthindenburg} openmaintainer
description system log analyzer and reporter
Logwatch is a customizable log analysis system. Logwatch \
parses through your system's logs for a given period of \
time and creates a report analyzing areas that you \
specify, in as much detail as you require. Logwatch is \
easy to use and will work right out of the package on most \
homepage http://logwatch.sourceforge.net
master_sites sourceforge:project/logwatch/logwatch-${version}
depends_lib path:bin/perl:perl5
checksums rmd160 c143ea6e187b3fd41f4dd52006e91873ec0ec5ea \
sha256 5d9c1a6eaf082b880c61895914824e347c6d63ad2a31cfc150f384a3e68ce5fb \
patchfiles patch-scripts.logwatch.pl.diff \
patch-conf.logwatch.conf.diff \
patch-zz-disk_space.conf.diff
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/scripts/logwatch.pl
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/conf/logwatch.conf
reinplace s|#!/usr/bin/perl|#!${prefix}/bin/perl| ${worksrcpath}/scripts/logwatch.pl
reinplace s|messages|system|g ${worksrcpath}/conf/logfiles/messages.conf
reinplace s|/usr/share/logwatch/default.conf|${prefix}/share/${name}/default.conf| ${worksrcpath}/logwatch.conf.5
reinplace s|/etc/logwatch/conf/ignore.conf|${prefix}/share/${name}/conf/ignore.conf| ${worksrcpath}/logwatch.conf.5
reinplace s|/etc/logwatch|${prefix}/etc/${name}| ${worksrcpath}/logwatch.conf.5
reinplace s|/usr/share|${prefix}/share| ${worksrcpath}/logwatch.8
reinplace s|/etc/${name}|${prefix}/etc/${name}| ${worksrcpath}/logwatch.8
destroot.keepdirs ${destroot}${prefix}/var/cache/${name} \
${destroot}${prefix}/etc/${name} \
${destroot}${prefix}/etc/${name}/scripts \
${destroot}${prefix}/etc/${name}/conf/logfiles \
${destroot}${prefix}/etc/${name}/conf/services
file mkdir ${destroot}${prefix}/var/cache/${name}