summaryrefslogtreecommitdiff
blob: 7ca652cbcdacf5b3045aead947010085fedbd5c6 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bw/mod_bw-0.5.ebuild,v 1.1 2005/02/25 12:45:00 hollow Exp $

inherit eutils apache-module

MYP="bw_mod-${PV}"

DESCRIPTION="Bandwidth Management Module for Apache 2.0"
HOMEPAGE="http://www.ivn.cl/apache/"
SRC_URI="http://www.ivn.cl/apache/${MYP/_rc/rc}.tgz"

KEYWORDS="~x86"
DEPEND=""
LICENSE="Apache-1.1"
SLOT="1"
IUSE=""

APACHE2_MOD_CONF="11_${PN}"
APACHE2_MOD_DEFINE="BW"

need_apache2

S=${WORKDIR}/${MYP/_rc*}

src_unpack() {
	unpack ${A} || die "unpack failed"
	mv ${S}/{${MYP/_rc/rc}.c,${PN}.c} || die "cannot move source file"
}