summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/tenshi/tenshi-0.14.ebuild')
-rw-r--r--app-admin/tenshi/tenshi-0.14.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/app-admin/tenshi/tenshi-0.14.ebuild b/app-admin/tenshi/tenshi-0.14.ebuild
new file mode 100644
index 000000000000..402b52d93a91
--- /dev/null
+++ b/app-admin/tenshi/tenshi-0.14.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils user
+
+DESCRIPTION="Log parsing and notification program"
+HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
+SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ dev-perl/IO-BufferedSelect
+ sys-apps/coreutils"
+
+pkg_setup() {
+ enewgroup tenshi
+ enewuser tenshi -1 -1 /var/lib/tenshi tenshi
+}
+
+src_prepare() {
+ # Fix for bug #241254
+ sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \
+ Makefile || die "docdir substitution failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ fowners tenshi:root /etc/tenshi/tenshi.conf
+ dodir /var/lib/tenshi
+ fowners tenshi:root /var/lib/tenshi
+ doman tenshi.8
+ newinitd tenshi.gentoo-init tenshi
+ keepdir /var/lib/tenshi
+}
+
+pkg_postinst() {
+ ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf"
+ ewarn "monitors /var/log/messages which, by default, can not be read"
+ ewarn "by the tenshi user. Make sure that the tenshi user has read"
+ ewarn "permission on all the files that you want tenshi to monitor."
+}