summaryrefslogtreecommitdiffstats
path: root/app-admin/vlogger/vlogger-1.3.ebuild
blob: 63433ee83572558c53f9f0f208748cc92fee4a04 (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Virtual web logfile rotater/parser, similar to cronolog and httplog"
HOMEPAGE="http://n0rp.chemlab.org/vlogger/"
SRC_URI="http://n0rp.chemlab.org/vlogger/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="dbi"

DEPEND=""
RDEPEND="dev-perl/TimeDate
	dbi? ( dev-perl/DBI )"

src_install() {
	doman vlogger.1
	dodoc README
	insinto /etc/vlogger
	dobin vlogger
	if use dbi ; then
		doins vlogger-dbi.conf
		dodoc mysql_create.sql
	fi
}

pkg_postinst() {
	if use dbi ; then
		elog "If you wish to use vlogger with DBI please see /etc/vlogger/vlogger-dbi.conf"
		elog "The SQL to create the tables for DBI can be found in /usr/share/doc/${P}"
	fi
}