# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Apache module for Mono" HOMEPAGE="http://www.go-mono.com/" SRC_URI="http://www.go-mono.com/archive/${P}.tar.gz" LICENSE="Apache-1.1" SLOT="0" KEYWORDS="~x86" IUSE="apache2" DEPEND=">=dev-dotnet/mono-0.30 =dev-dotnet/xsp-0.9 =net-www/apache-2*" src_compile() { ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --libexecdir=/usr/lib/apache2-extramodules \ --with-apxs=/usr/sbin/apxs2 || die "./configure failed" emake || die "emake failed" } src_install() { insinto /usr/lib/apache2-extramodules doins src/.libs/libmod_mono.so insinto /etc/apache2/conf/modules.d doins ${FILESDIR}/70_mod_mono.conf insinto /etc/conf.d; newins ${FILESDIR}/mod-mono-server.conf mod-mono-server exeinto /etc/init.d; newexe ${FILESDIR}/mod-mono-server.init mod-mono-server einfo "To view the samples, uncomment the commented blocks in" einfo "/etc/conf.d/mod-mono-server and /etc/apache2/conf/modules.d/70_mod_mono.conf" }