blob: b8b2f569a748c6d26095ff9e095e540e4a05a3e0 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/qmrtg/qmrtg-2.1.ebuild,v 1.1 2006/10/08 17:20:08 jokey Exp $
inherit eutils
DESCRIPTION="A tool to analyze qmail's activity with the goal to graph everything through MRTG."
HOMEPAGE="http://dev.publicshout.org/qmrtg"
SRC_URI="${HOMEPAGE}/download/${PN}-${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="virtual/libc"
RDEPEND="net-analyzer/mrtg"
src_unpack() {
unpack ${A}
cd "${S}/examples"
epatch "${FILESDIR}/mrtg.cfg.patch"
epatch "${FILESDIR}/qmrtg.conf.sample.patch"
}
src_compile () {
econf || die "econf failed"
emake || die "emake failed"
}
src_install () {
emake install DESTDIR=${D} || die "emake install failed"
keepdir /var/lib/qmrtg
dodoc INSTALL.txt
if use doc ; then
docinto txt
dodoc doc/*.txt
docinto html
dohtml -r html/*
fi
insinto /usr/share/qmrtg2
doins examples/*
}
pkg_postinst () {
einfo
einfo "You need to configure manually qmrtg in order to run it."
einfo "The configuration templates in /usr/share/qmrtg2/ and"
einfo "the file in /usr/share/doc/qmrtg-2.1/INSTALL.txt.gz"
einfo "will be useful."
einfo
}
|