summaryrefslogtreecommitdiff
blob: 222e0169738a4dae094a51c7e8370237fa185368 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_roaming/mod_roaming-2.0.0.ebuild,v 1.2 2003/02/13 15:38:34 vapier Exp $

inherit eutils

DESCRIPTION="Apache2 DSO enabling Netscape Communicator roaming profiles"
HOMEPAGE="http://www.klomp.org/mod_roaming/"

S=${WORKDIR}/${P}
SRC_URI="http://www.klomp.org/${PN}/${P}.tar.gz"
DEPEND="=net-www/apache-2*"
LICENSE="BSD"
KEYWORDS="~x86"
IUSE=""
SLOT="0"

src_unpack() {
	unpack ${A} || die; cd ${S} || die
	epatch ${FILESDIR}/mod_roaming-register.patch
}

src_compile() {
	apxs2 -c ${PN}.c || die
}

src_install() {
	exeinto /usr/lib/apache2-extramodules
	doexe .libs/${PN}.so
	insinto /etc/apache2/conf/modules.d
	doins ${FILESDIR}/18_mod_roaming.conf
	dodoc ${FILESDIR}/18_mod_roaming.conf
	dodoc CHANGES INSTALL LICENSE README
}

pkg_postinst() {
	#empty
	install -d -m 0755 -o apache -g apache ${ROOT}/var/lib/mod_roaming
}