You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild

52 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild,v 1.1 2012/09/15 12:46:53 pacho Exp $
EAPI="4"
inherit eutils go-mono mono user
PATCHDIR="${FILESDIR}/2.2/"
DESCRIPTION="XSP is a small web server that can host ASP.NET pages"
HOMEPAGE="http://www.mono-project.com/ASP.NET"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="dev-db/sqlite:3"
DEPEND="${RDEPEND}"
MAKEOPTS="${MAKEOPTS} -j1"
src_prepare() {
# Added try/catch around EndRequest Record sending, bug #432750
epatch "${FILESDIR}/${PN}-2.10.2-endrequest.patch"
}
src_configure() {
default
}
pkg_preinst() {
enewgroup aspnet
# Give aspnet home dir of /tmp since it must create ~/.wapi
enewuser aspnet -1 -1 /tmp aspnet
}
src_install() {
mv_command="cp -ar" go-mono_src_install
newinitd "${PATCHDIR}"/xsp.initd xsp
newinitd "${PATCHDIR}"/mod-mono-server-r1.initd mod-mono-server
newconfd "${PATCHDIR}"/xsp.confd xsp
newconfd "${PATCHDIR}"/mod-mono-server.confd mod-mono-server
keepdir /var/run/aspnet
}
pkg_postinst() {
chown aspnet:aspnet /var/run/aspnet
}