summaryrefslogtreecommitdiff
blob: 1aacf96d8ad45822be6397b99ab36599f180f317 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit apache-module

MY_PN="mirrorbrain"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="An Apache module Download Redirector and Metalink Generator"
HOMEPAGE="http://mirrorbrain.org"
SRC_URI="http://mirrorbrain.org/files/releases/${MY_P}.tar.gz"
LICENSE="Apache-2.0"

KEYWORDS="~x86 ~amd64"
IUSE=""
SLOT="0"

# require postgres for now, may get mysql support later from upstream
DEPEND="www-apache/mod_form
	dev-libs/apr-util[postgres]
	www-servers/apache[apache2_modules_dbd]"
RDEPEND="${DEPEND}"
PDEPEND="=www-misc/mirrorbrain-${PV}"

S="${WORKDIR}/${MY_P}/${PN}"

# See apache-module.eclass for more information.
APACHE2_MOD_CONF="70_${PN}"
APACHE2_MOD_DEFINE="MIRRORBRAIN"

APXS2_ARGS="-c ${PN}.c"

DOCFILES="mod_dbd.conf mod_mirrorbrain.conf"

need_apache2