All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] logwatch: Add new recipe
@ 2014-12-01  9:14 Qian Lei
  2014-12-01 15:29 ` Otavio Salvador
  2014-12-09 10:18 ` Martin Jansa
  0 siblings, 2 replies; 6+ messages in thread
From: Qian Lei @ 2014-12-01  9:14 UTC (permalink / raw)
  To: openembedded-devel

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.

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



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [meta-oe][PATCH] logwatch: Add new recipe
  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-09 10:18 ` Martin Jansa
  1 sibling, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2014-12-01 15:29 UTC (permalink / raw)
  To: OpenEmbedded Devel List

On Mon, Dec 1, 2014 at 7:14 AM, Qian Lei <qianl.fnst@cn.fujitsu.com> 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.
>
> Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>

Doesn't it have a  'make install' ?


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-oe][PATCH] logwatch: Add new recipe
  2014-12-01 15:29 ` Otavio Salvador
@ 2014-12-02  1:26   ` Qian Lei
  2014-12-02 10:35     ` Otavio Salvador
  0 siblings, 1 reply; 6+ messages in thread
From: Qian Lei @ 2014-12-02  1:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: otavio

On Mon, 1 Dec 2014 13:29:33 -0200
Otavio Salvador <otavio@ossystems.com.br> wrote:

> On Mon, Dec 1, 2014 at 7:14 AM, Qian Lei <qianl.fnst@cn.fujitsu.com> 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.
> >
> > Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
> 
> Doesn't it have a  'make install' ?
> 
> 

No, there's only a shell script to install some lib/script/conf files
to the host, so I have to implement do_install myself to do the same work. 

-- 
Qian Lei


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-oe][PATCH] logwatch: Add new recipe
  2014-12-02  1:26   ` Qian Lei
@ 2014-12-02 10:35     ` Otavio Salvador
  0 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2014-12-02 10:35 UTC (permalink / raw)
  To: Qian Lei; +Cc: OpenEmbedded Devel List

On Mon, Dec 1, 2014 at 11:26 PM, Qian Lei <qianl.fnst@cn.fujitsu.com> wrote:
> On Mon, 1 Dec 2014 13:29:33 -0200
> Otavio Salvador <otavio@ossystems.com.br> wrote:
>
>> On Mon, Dec 1, 2014 at 7:14 AM, Qian Lei <qianl.fnst@cn.fujitsu.com> 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.
>> >
>> > Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
>>
>> Doesn't it have a  'make install' ?
>>
>>
>
> No, there's only a shell script to install some lib/script/conf files
> to the host, so I have to implement do_install myself to do the same work.

Well so wouldn't be better to reuse the shell script? adding DESTDIR
support might reduce a lot the recipe size and easy maintenance.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-oe][PATCH] logwatch: Add new recipe
  2014-12-01  9:14 [meta-oe][PATCH] logwatch: Add new recipe Qian Lei
  2014-12-01 15:29 ` Otavio Salvador
@ 2014-12-09 10:18 ` Martin Jansa
  2014-12-10  7:14   ` [meta-oe][PATCH v2] " Qian Lei
  1 sibling, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2014-12-09 10:18 UTC (permalink / raw)
  To: openembedded-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [meta-oe][PATCH v2] logwatch: Add new recipe
  2014-12-09 10:18 ` Martin Jansa
@ 2014-12-10  7:14   ` Qian Lei
  0 siblings, 0 replies; 6+ messages in thread
From: Qian Lei @ 2014-12-10  7:14 UTC (permalink / raw)
  To: openembedded-devel

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.

Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
---
 .../recipes-extended/logwatch/logwatch_7.4.1.bb    | 58 ++++++++++++++++++++++
 1 file changed, 58 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..650d6f8
--- /dev/null
+++ b/meta-oe/recipes-extended/logwatch/logwatch_7.4.1.bb
@@ -0,0 +1,58 @@
+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"
+RDEPENDS_${PN} = "perl"
+
+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



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-10  7:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-12-10  7:14   ` [meta-oe][PATCH v2] " Qian Lei

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.