blob: dad4124cce504e6483ecff4b5d1e257fe581b86f (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils
DESCRIPTION="A tool to analyze qmail activity with the goal to graph everything through MRTG"
HOMEPAGE="http://dev.publicshout.org/qmrtg"
SRC_URI="${HOMEPAGE}/download/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="net-analyzer/mrtg"
src_prepare() {
sed -i \
-e 's|^CFLAGS =|CFLAGS ?=|g' \
analyzers/Makefile.in filters/Makefile.in || die
epatch "${FILESDIR}"/mrtg.cfg.patch
epatch "${FILESDIR}"/qmrtg.conf.sample.patch
epatch "${FILESDIR}"/${P}-TAI_STR_LEN.patch
}
DOCS=( INSTALL.txt )
src_install () {
default
keepdir /var/lib/qmrtg
if use doc ; then
docinto txt
dodoc doc/*.txt
docinto html
dohtml -r html/*
fi
insinto /usr/share/qmrtg2
doins examples/*
}
pkg_postinst () {
elog
elog "You need to configure manually qmrtg in order to run it."
elog "The configuration templates in /usr/share/qmrtg2/ and"
elog "the INSTALL file in /usr/share/doc/qmrtg-2.1/"
elog "will be useful."
elog
}
|