summaryrefslogtreecommitdiff
blob: 176784bb9c9e57f8b635124dcbfd51e92117424d (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
44
45
46
47
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_layout/mod_layout-3.2.1.ebuild,v 1.3 2004/06/25 01:01:50 agriffis Exp $


DESCRIPTION="An Apache DSO module for adding custom headers and/or footers"
HOMEPAGE="http://software.tangent.org/"
SRC_URI="http://software.tangent.org/download/${P}.tar.gz"
DEPEND="=net-www/apache-1*
		>=sys-apps/sed-4"
RDEPEND=""

LICENSE="Apache-1.1"
KEYWORDS="x86"
IUSE=""
SLOT="0"


src_compile() {
	sed -i -e 's/-DDEBUG//g' Makefile || die "Makefile fixing Failed"
	emake || die "Module building failed."
}

src_install() {
	exeinto /usr/lib/apache-extramodules
	doexe ${PN}.so || die "Module installation failed."
	insinto /etc/apache/conf/addon-modules
	doins ${FILESDIR}/15_mod_layout321.conf
	dodoc ChangeLog INSTALL LICENSE README THANKS TODO VERSION
	dohtml faq.html directives/*
}

pkg_postinst() {
	einfo
	einfo "Execute \"ebuild /var/db/pkg/net-www/${PF}/${PF}.ebuild config\""
	einfo "to have your apache.conf auto-updated for use with this module."
	einfo "You should then edit your /etc/conf.d/apache file to suit."
	einfo
}

pkg_config() {
	${ROOT}/usr/sbin/apacheaddmod \
		${ROOT}/etc/apache/conf/apache.conf \
		extramodules/mod_layout.so mod_layout.c layout_module \
		define=LAYOUT addconf=conf/addon-modules/15_mod_layout321.conf
}