blob: 5e6408a4f568eec63e8ad82eb481e8c0ddf82e74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/tenshi/tenshi-0.9.1-r1.ebuild,v 1.6 2008/03/27 01:35:29 jokey Exp $
inherit eutils
DESCRIPTION="Log parsing and notification program"
HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
SRC_URI="mirror://gentoo/${P}.tar.gz
http://dev.inversepath.com/tenshi/${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
RDEPEND="dev-lang/perl
sys-apps/coreutils"
pkg_setup() {
enewgroup tenshi
enewuser tenshi -1 -1 /var/lib/tenshi tenshi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-create-mandir.patch"
# Fix for bug #212213
epatch "${FILESDIR}/${P}-fix-tail_pids-array-length.patch"
}
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
}
|