summaryrefslogtreecommitdiff
blob: a43ef0ed5c92ee9adf6cbe5e12d22e41d0088a2d (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/wasabi/wasabi-0.2.1-r1.ebuild,v 1.3 2004/06/29 19:51:44 agriffis Exp $

inherit eutils

DESCRIPTION="Log parsing and notification program"
HOMEPAGE="http://www.gentoo.org/~lcars/wasabi"
SRC_URI="http://www.gentoo.org/~lcars/wasabi/${P}.tar.gz"
DEPEND=">=sys-apps/sed-4"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"
IUSE=""

RDEPEND="dev-lang/perl
		sys-apps/coreutils"

pkg_preinst() {
	enewgroup wasabi
	enewuser  wasabi -1 /bin/false /var/lib/wasabi wasabi
	fowners wasabi:root /etc/wasabi/wasabi.conf
	fowners wasabi:root /var/lib/wasabi
}

src_install() {
	sed -i -e "s:-o wasabi::" Makefile
	emake DESTDIR=${D} install
	doman wasabi.8
	exeinto /etc/init.d
	newexe wasabi.gentoo-init wasabi
	keepdir /var/lib/wasabi
}