summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-admin/logcheck/ChangeLog12
-rw-r--r--app-admin/logcheck/Manifest6
-rw-r--r--app-admin/logcheck/files/logcheck-makefile.patch11
-rw-r--r--app-admin/logcheck/files/logcheck.cron5
-rw-r--r--app-admin/logcheck/logcheck-1.3.4.ebuild54
-rw-r--r--app-admin/logcheck/metadata.xml9
6 files changed, 97 insertions, 0 deletions
diff --git a/app-admin/logcheck/ChangeLog b/app-admin/logcheck/ChangeLog
new file mode 100644
index 000000000000..fe456b119af3
--- /dev/null
+++ b/app-admin/logcheck/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-admin/logcheck
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/logcheck/ChangeLog,v 1.1 2009/12/20 10:05:08 phajdan.jr Exp $
+
+*logcheck-1.3.4 (20 Dec 2009)
+
+ 20 Dec 2009; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ +logcheck-1.3.4.ebuild, +files/logcheck.cron,
+ +files/logcheck-makefile.patch, +metadata.xml:
+ New ebuild for app-admin/logcheck. Implemented suggestions by Fritella
+ Laurento <mrfree@infinito.it>. Bug #105816.
+
diff --git a/app-admin/logcheck/Manifest b/app-admin/logcheck/Manifest
new file mode 100644
index 000000000000..8756df96e904
--- /dev/null
+++ b/app-admin/logcheck/Manifest
@@ -0,0 +1,6 @@
+AUX logcheck-makefile.patch 270 RMD160 fba0fc444839216ae2be6a9f605e37142d6f1484 SHA1 9b9de695c723ae93cbb4b6e15b5ad71d9967c94e SHA256 2f5cbd31a22f4ad8093d6b9ba1ead798cd7a3fae97e1d72623bc9804af0617aa
+AUX logcheck.cron 132 RMD160 4fd5eca518461f0aad73cefa5f1e9a65cae41092 SHA1 6b45cd323a791f05fb5a726db9e6a59f4e3dc341 SHA256 b97037a595d531add68d42154849c6a2361e00185a03886583d5b76172b7369d
+DIST logcheck_1.3.4.tar.gz 153387 RMD160 6222f1df90255dde7052b74ef81e1fa7ec1d1ca2 SHA1 683fab32f26c57bc56f54c783d5e451a71a47906 SHA256 08a6404a7447f51b303b7fb15619bb6b882471001a4c5b441d4163a5c67205ef
+EBUILD logcheck-1.3.4.ebuild 1538 RMD160 ad76b9e3f9f53204448dfa20f3b6cabb1f65c4aa SHA1 dc3bb8e46d4697627c211cbd3c0208972cd67c90 SHA256 55c3fd43e5049963da7d166eb20eb7ad38e3f5bde57e0e88c38e2514248aef12
+MISC ChangeLog 516 RMD160 7bc6ca493c5dae0fbb204a901cec346f297f2bb0 SHA1 6ad9679dd354b1a7621625cb68aa3a6997aa33f7 SHA256 bda83acc1113b3d71ec7d7eb43b6da9c536644a034ff8281786adb06bd691e5a
+MISC metadata.xml 260 RMD160 e9437033b7df4bdb32fdef6e886a1ed321a6f462 SHA1 f008d84bacf2428dafd6f33263898961dacf8c5e SHA256 c7f8354174de834aa476ee81d3412d85e1352a6647415dbeee403461b99ea19c
diff --git a/app-admin/logcheck/files/logcheck-makefile.patch b/app-admin/logcheck/files/logcheck-makefile.patch
new file mode 100644
index 000000000000..2e2037f3e526
--- /dev/null
+++ b/app-admin/logcheck/files/logcheck-makefile.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2009-12-19 19:56:23.000000000 +0100
++++ Makefile 2009-12-19 19:56:32.000000000 +0100
+@@ -4,6 +4,8 @@
+ BINDIR = usr/sbin
+ SHAREDIR = usr/share/logtail/detectrotate
+
++all:
++
+ install:
+ # Create the directories
+ install -m 750 -d $(DESTDIR)/$(CONFDIR)
diff --git a/app-admin/logcheck/files/logcheck.cron b/app-admin/logcheck/files/logcheck.cron
new file mode 100644
index 000000000000..992eb7178920
--- /dev/null
+++ b/app-admin/logcheck/files/logcheck.cron
@@ -0,0 +1,5 @@
+#!/bin/bash
+#
+# Please uncomment the following if you want logcheck to run hourly.
+
+#su -s /bin/bash -c /usr/sbin/logcheck logcheck
diff --git a/app-admin/logcheck/logcheck-1.3.4.ebuild b/app-admin/logcheck/logcheck-1.3.4.ebuild
new file mode 100644
index 000000000000..c04f0260f697
--- /dev/null
+++ b/app-admin/logcheck/logcheck-1.3.4.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/logcheck/logcheck-1.3.4.ebuild,v 1.1 2009/12/20 10:05:08 phajdan.jr Exp $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="Mails anomalies in the system logfiles to the administrator."
+HOMEPAGE="http://packages.debian.org/sid/logcheck"
+SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="!app-admin/logsentry
+ app-misc/lockfile-progs
+ dev-lang/perl
+ virtual/mailx
+ ${DEPEND}"
+
+pkg_setup() {
+ enewgroup logcheck
+ enewuser logcheck -1 -1 -1 logcheck
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-makefile.patch"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ keepdir /var/{lib,lock}/logcheck
+ dodoc AUTHORS CHANGES CREDITS TODO docs/README.* || die "dodoc failed"
+ doman docs/logtail.8 docs/logtail2.8 || die "doman failed"
+
+ exeinto /etc/cron.hourly
+ doexe "${FILESDIR}/${PN}.cron" || die "doexe failed"
+}
+
+pkg_postinst() {
+ chown -R logcheck:logcheck /etc/logcheck /var/{lib,lock}/logcheck \
+ || die "chown failed"
+
+ elog "The configuration files are located in /etc/logcheck. The most"
+ elog "important files are /etc/logcheck/logcheck.conf"
+ elog "and /etc/logcheck/logcheck.logfiles. Also, make sure that"
+ elog "the logcheck user has access to your log files."
+ elog "Finally, uncomment the logcheck line"
+ elog "/etc/cron.hourly/logcheck.cron to enable periodic log checks."
+}
diff --git a/app-admin/logcheck/metadata.xml b/app-admin/logcheck/metadata.xml
new file mode 100644
index 000000000000..9ca372f9b46f
--- /dev/null
+++ b/app-admin/logcheck/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>phajdan.jr@gentoo.org</email>
+ <name>Pawel Hajdan jr</name>
+ </maintainer>
+</pkgmetadata>