All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] logwatch: Add new recipe
Date: Tue, 9 Dec 2014 11:18:37 +0100	[thread overview]
Message-ID: <20141209101837.GC2470@jama> (raw)
In-Reply-To: <1417425246-30891-1-git-send-email-qianl.fnst@cn.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 4441 bytes --]

On Mon, Dec 01, 2014 at 05:14:06PM +0800, Qian Lei wrote:
> Logwatch is a customizable, pluggable log-monitoring system. It will go
> through your logs for a given period of time and make a report in the areas
> that you wish with the detail that you wish. Easy to use - works right out of
> the package on many systems.

Causes new QA warning:

logwatch-7.4.1: logwatch requires /usr/bin/perl, but no providers in its
RDEPENDS [file-rdeps]

> 
> Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
> ---
>  .../recipes-extended/logwatch/logwatch_7.4.1.bb    | 57 ++++++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/logwatch/logwatch_7.4.1.bb
> 
> diff --git a/meta-oe/recipes-extended/logwatch/logwatch_7.4.1.bb b/meta-oe/recipes-extended/logwatch/logwatch_7.4.1.bb
> new file mode 100644
> index 0000000..ee35efe
> --- /dev/null
> +++ b/meta-oe/recipes-extended/logwatch/logwatch_7.4.1.bb
> @@ -0,0 +1,57 @@
> +SUMMARY = "A log file analysis program"
> +DESCRIPTION = "\
> +Logwatch is a customizable, pluggable log-monitoring system. It will go \
> +through your logs for a given period of time and make a report in the areas \
> +that you wish with the detail that you wish. Easy to use - works right out of \
> +the package on many systems.\
> +"
> +SECTION = "devel"
> +HOMEPAGE = "http://www.logwatch.org/"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=f2566bb12b16d2d80d90ebc533261aa7"
> +
> +SRC_URI = "http://jaist.dl.sourceforge.net/project/${BPN}/${BP}/${BP}.tar.gz"
> +SRC_URI[md5sum] = "a0c3d8721f877bdcd4a9089eb1b4691b"
> +SRC_URI[sha256sum] = "35ec31f9fe981aaa727b144ab3ff2eb655997d8ccabaf66586458f5dfc3a56eb"
> +
> +do_install() {
> +    install -m 0755 -d ${D}${sysconfdir}/logwatch/scripts
> +    install -m 0755 -d ${D}${datadir}/logwatch/dist.conf/logfiles
> +    install -m 0755 -d ${D}${datadir}/logwatch/dist.conf/services
> +    install -m 0755 -d ${D}${localstatedir}/cache/logwatch
> +    mv conf/ ${D}${datadir}/logwatch/default.conf
> +    mv scripts/ ${D}${datadir}/logwatch/scripts
> +    mv lib ${D}${datadir}/logwatch/lib
> +
> +    install -m 0755 -d ${D}${mandir}/man1
> +    install -m 0755 -d ${D}${mandir}/man5
> +    install -m 0755 -d ${D}${mandir}/man8
> +    install -m 0644 amavis-logwatch.1 ${D}${mandir}/man1
> +    install -m 0644 postfix-logwatch.1 ${D}${mandir}/man1
> +    install -m 0644 ignore.conf.5 ${D}${mandir}/man5
> +    install -m 0644 override.conf.5 ${D}${mandir}/man5
> +    install -m 0644 logwatch.conf.5 ${D}${mandir}/man5
> +    install -m 0644 logwatch.8 ${D}${mandir}/man8
> +
> +    install -m 0755 -d ${D}${sysconfdir}/cron.daily
> +    install -m 0755 -d ${D}${sbindir}
> +    ln -sf ../..${datadir}/logwatch/scripts/logwatch.pl ${D}${sysconfdir}/cron.daily/0logwatch
> +    ln -sf ../..${datadir}/logwatch/scripts/logwatch.pl ${D}${sbindir}/logwatch
> +    cat > ${D}${sysconfdir}/cron.daily/0logwatch <<EOF
> +    DailyReport=\`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"\`
> +    if [ "\$DailyReport" != "No" ] && [ "\$DailyReport" != "no" ]
> +    then
> +            logwatch
> +    fi
> +EOF
> +    chmod 755 ${D}${sysconfdir}/cron.daily/0logwatch
> +
> +    install -m 0755 -d ${D}${sysconfdir}/logwatch/conf/logfiles
> +    install -m 0755 -d ${D}${sysconfdir}/logwatch/conf/services
> +    touch ${D}${sysconfdir}/logwatch/conf/logwatch.conf
> +    touch ${D}${sysconfdir}/logwatch/conf/ignore.conf
> +    touch ${D}${sysconfdir}/logwatch/conf/override.conf
> +    echo "# Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf)" > ${D}${sysconfdir}/logwatch/conf/logwatch.conf
> +    echo "###### REGULAR EXPRESSIONS IN THIS FILE WILL BE TRIMMED FROM REPORT OUTPUT #####" > ${D}${sysconfdir}/logwatch/conf/ignore.conf
> +    echo "# Configuration overrides for specific logfiles/services may be placed here." > ${D}${sysconfdir}/logwatch/conf/override.conf
> +}
> -- 
> 1.8.3.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  parent reply	other threads:[~2014-12-09 10:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-01  9:14 [meta-oe][PATCH] logwatch: Add new recipe Qian Lei
2014-12-01 15:29 ` Otavio Salvador
2014-12-02  1:26   ` Qian Lei
2014-12-02 10:35     ` Otavio Salvador
2014-12-09 10:18 ` Martin Jansa [this message]
2014-12-10  7:14   ` [meta-oe][PATCH v2] " Qian Lei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141209101837.GC2470@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.