summaryrefslogtreecommitdiff
blob: 19ac629d3426a55f017abe75838b2de2bd4d4994 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_authenticache/mod_authenticache-2.0.6.ebuild,v 1.6 2004/07/01 22:45:33 eradicator Exp $

DESCRIPTION="A generic Apache2 credential caching module"
HOMEPAGE="http://original.killa.net/infosec/mod_authenticache/"

S=${WORKDIR}/${P}
SRC_URI="http://original.killa.net/infosec/${PN}/${P}.tar.bz2"
DEPEND="virtual/libc"
RDEPEND="${DEPEND} =net-www/apache-2*"
LICENSE="Apache-1.1"
KEYWORDS="x86"
IUSE=""
SLOT="0"

src_compile() {
	#fix version string
	perl -pi -e "s|^#define VERSION .*|#define VERSION \"${PV}\"|g" \
		defines.h
	apxs2 -c ${PN}.c || die
}

src_install() {
	exeinto /usr/lib/apache2-extramodules
	doexe .libs/${PN}.so
	insinto /etc/apache2/conf/modules.d
	doins ${FILESDIR}/28_mod_authenticache.conf
	dodoc ${FILESDIR}/28_mod_authenticache.conf
	newdoc ${FILESDIR}/dot-htaccess .htaccess
	newdoc ${FILESDIR}/dot-htpasswd .htpasswd
}