[oe] [meta-oe][PATCH] logwatch: Add new recipe
Martin Jansa
martin.jansa at gmail.com
Tue Dec 9 10:18:37 UTC 2014
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 at 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 at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20141209/9cb9e752/attachment-0002.sig>
More information about the Openembedded-devel
mailing list