summaryrefslogtreecommitdiff
blob: c1de7898d7ca543104e440751ce7eb5cbb674a1c (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
# 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="memcache"
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]
	memcache? ( www-apache/mod_memcache )"
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"

if use memcache ; then
	APXS2_ARGS="-DWITH_MEMCACHE -c ${PN}.c"
else
	APXS2_ARGS="-c ${PN}.c"
fi

DOCFILES="mod_dbd.conf mod_memcache.conf mod_mirrorbrain.conf"

need_apache2