added my Recipes
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# <type> <owner> <group> <mode> <path> <linksource>
|
||||
d logcheck logcheck 0755 /var/lock/logcheck none
|
||||
@@ -0,0 +1,77 @@
|
||||
SUMMARY = "Analyzes log files and sends noticeable events as email"
|
||||
DESCRIPTION = "\
|
||||
Logcheck is a simple utility which is designed to allow a system administrator \
|
||||
to view the log-files which are produced upon hosts under their control. \
|
||||
It does this by mailing summaries of the log-files to them, after first \
|
||||
filtering out "normal" entries. \
|
||||
Normal entries are entries which match one of the many included regular \
|
||||
expression files contain in the database."
|
||||
SECTION = "Applications/System"
|
||||
HOMEPAGE = "http://logcheck.org/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c93c0550bd3173f4504b2cbd8991e50b"
|
||||
|
||||
SRC_URI = "${DEBIAN_MIRROR}/main/l/${BPN}/${BPN}_${PV}.tar.xz \
|
||||
file://99_logcheck \
|
||||
"
|
||||
SRC_URI[sha256sum] = "0c651deb31dc201f1584ecea292b259932bae6e3e8cef846db3109e89a7f217e"
|
||||
|
||||
inherit useradd
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
USERADD_PARAM:${PN} = "-m -g ${BPN} -G adm -r -d ${localstatedir}/lib/${BPN} \
|
||||
-s /bin/false -c 'logcheck account' ${BPN}"
|
||||
GROUPADD_PARAM:${PN} = "-r ${BPN}"
|
||||
|
||||
do_install() {
|
||||
# Fix QA Issue
|
||||
sed -i '/install -d $(DESTDIR)\/var\/lock\/logcheck/s/^/#/' Makefile
|
||||
|
||||
# "make install" do not install the manpages. Install them manually.
|
||||
install -m 755 -d ${D}${mandir}/man1
|
||||
install -m 755 -d ${D}${mandir}/man8
|
||||
install -m 644 docs/logcheck-test.1 ${D}${mandir}/man1/
|
||||
install -m 644 docs/logtail.8 ${D}${mandir}/man8/
|
||||
install -m 644 docs/logtail2.8 ${D}${mandir}/man8/
|
||||
|
||||
install -m 755 -d ${D}${sysconfdir}/cron.d
|
||||
install -m 644 debian/logcheck.cron.d ${D}${sysconfdir}/cron.d/logcheck
|
||||
install -m 755 -d ${D}/var/lib/logcheck
|
||||
|
||||
oe_runmake install DESTDIR=${D}
|
||||
|
||||
# install header.txt for generated mails
|
||||
install -m 0644 ${S}/debian/header.txt ${D}${sysconfdir}/${BPN}
|
||||
|
||||
chown -R ${BPN}:${BPN} ${D}${localstatedir}/lib/${BPN}
|
||||
chown -R root:${BPN} ${D}${sysconfdir}/${BPN}
|
||||
|
||||
# Don't install /var/lock when populating rootfs. Do it through volatile
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/default/volatiles
|
||||
install -m 0644 ${WORKDIR}/99_logcheck ${D}${sysconfdir}/default/volatiles
|
||||
fi
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
echo "d /var/lock/logcheck 0755 logcheck logcheck -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/logcheck.conf
|
||||
fi
|
||||
}
|
||||
|
||||
VIRTUAL-RUNTIME_syslog ??= "rsyslog"
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
bash \
|
||||
cronie \
|
||||
debianutils-run-parts \
|
||||
grep \
|
||||
lockfile-progs \
|
||||
mime-construct \
|
||||
perl \
|
||||
perl-module-file-basename \
|
||||
perl-module-getopt-std \
|
||||
perl-module-file-glob \
|
||||
${VIRTUAL-RUNTIME_syslog} \
|
||||
"
|
||||
|
||||
FILES:${PN} += "${datadir}/logtail"
|
||||
@@ -0,0 +1,39 @@
|
||||
From 2b9ed06850410d70371b31de5f131e484ba1c851 Mon Sep 17 00:00:00 2001
|
||||
From: Lu Chong <Chong.Lu@windriver.com>
|
||||
Date: Thu, 17 Oct 2013 16:06:04 +0800
|
||||
Subject: [PATCH] fix mime-construct --help return value
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Lu Chong <Chong.Lu@windriver.com>
|
||||
|
||||
---
|
||||
mime-construct | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/mime-construct b/mime-construct
|
||||
index cad7d0e..707ed19 100755
|
||||
--- a/mime-construct
|
||||
+++ b/mime-construct
|
||||
@@ -39,7 +39,7 @@ usage: $Me switch...
|
||||
|
||||
Global settings:
|
||||
--debug turn debugging on
|
||||
- --help show this and then die
|
||||
+ --help show this
|
||||
--output don\'t mail, output to stdout (loses bcc info)
|
||||
--subpart generate subpart rather than whole message (turns
|
||||
on --output, changes other semantics a bit)
|
||||
@@ -150,7 +150,8 @@ sub xwarn {
|
||||
|
||||
sub usage {
|
||||
xwarn @_ if @_;
|
||||
- die $Usage;
|
||||
+ print $Usage;
|
||||
+ exit 0;
|
||||
}
|
||||
|
||||
sub init {
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "Construct and optionally mail MIME messages"
|
||||
DESCRIPTION = "Constructs and (by default) mails MIME messages. \
|
||||
It is entirely driven from the command line, it is \
|
||||
designed to be used by other programs, or people who act \
|
||||
like programs."
|
||||
HOMEPAGE = "http://search.cpan.org/~rosch/mime-construct/mime-construct"
|
||||
SECTION = "mail"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=5e2e5da619ac8ef8c84767ccc4656e96"
|
||||
|
||||
SRC_URI = "${CPAN_MIRROR}/authors/id/R/RO/ROSCH/mime-construct-${PV}.tar.gz \
|
||||
file://fix-mime-construct-help-return-value.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "73834ea780fbea81b89dbd9b2fb54f58"
|
||||
SRC_URI[sha256sum] = "4cd7bb61b51d41192d1498c1051aa6a4ccd75aeb09b71d2ec706a7084a4a9303"
|
||||
|
||||
inherit cpan
|
||||
|
||||
RDEPENDS:${PN} += "libmime-types-perl libproc-waitstat-perl msmtp \
|
||||
perl-module-filehandle perl-module-mime-base64 perl-module-mime-quotedprint perl-module-posix \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
#change the interpreter in file
|
||||
sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl -w|${bindir}/env perl|g" \
|
||||
${D}/${bindir}/mime-construct
|
||||
}
|
||||
Reference in New Issue
Block a user