summaryrefslogtreecommitdiff
blob: 4b9bd6bf3562132d8ae2aa63e0cb403e200717df (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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_qos/mod_qos-8.18.ebuild,v 1.2 2012/10/12 08:29:44 patrick Exp $

EAPI="2"

inherit apache-module

DESCRIPTION="A QOS module for the apache webserver"
HOMEPAGE="http://mod-qos.sourceforge.net/"
SRC_URI="mirror://sourceforge/mod-qos/${P}-src.tar.gz"

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

DEPEND="dev-libs/openssl"
RDEPEND="${DEPEND}"

APXS2_S="${S}/apache2"
APACHE2_MOD_CONF="10_${PN}"
APACHE2_MOD_DEFINE="QOS"

need_apache2_2

src_prepare() {
	sed -i -e '/strip/d' tools/Makefile
}

src_compile() {
	apache-module_src_compile
	emake -C "${S}/tools"
}

src_install() {
	apache-module_src_install
	dobin tools/qslog
	dodoc doc/CHANGES.txt
	rm doc/*.txt
	dohtml doc/*
}