# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit mono DESCRIPTION="XSP is a simple web server written in C# that can be used to run your ASP.NET applications" HOMEPAGE="http://www.go-mono.com/" SRC_URI="http://www.go-mono.com/archive/${P}.tar.gz" LICENSE="GPL-2 | Apache-1.1" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-dotnet/mono-0.30" src_compile() { econf || die "configure failed" emake || die "emake failed" } src_install() { enewgroup aspnet # Give aspnet home dir of /tmp since it must create ~/.wapi enewuser aspnet -1 /bin/bash /tmp aspnet einstall DESTDIR=${D} || die exeinto /etc/init.d ; newexe ${FILESDIR}/xsp.initd xsp insinto /etc/conf.d ; newins ${FILESDIR}/xsp.confd xsp keepdir /var/run/aspnet } pkg_postinst() { chown aspnet.aspnet /var/run/aspnet }