# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-dotnet/xsp/xsp-1.0.8.ebuild,v 1.2 2005/08/23 13:30:23 ramereth Exp $ inherit mono eutils DESCRIPTION="XSP ASP.NET host" HOMEPAGE="http://www.go-mono.com/" SRC_URI="http://www.go-mono.com/archive/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" IUSE="" DEPEND=">=dev-lang/mono-1.0" pkg_preinst() { enewgroup aspnet # Give aspnet home dir of /tmp since it must create ~/.wapi enewuser aspnet -1 -1 /tmp aspnet } src_unpack() { unpack ${A} cd ${S} sed -i -e "s:mkinstalldirs) \$(data:mkinstalldirs) \$(DESTDIR)\$(data:" \ -e "s:gif \$(data:gif \$(DESTDIR)\$(data:" \ ${S}/test/2.0/treeview/Makefile.am automake } src_compile() { econf || die "./configure failed!" emake || { echo eerror "If xsp fails to build, try unmerging and re-emerging it." die "make failed" } } src_install() { make DESTDIR=${D} install || die exeinto /etc/init.d ; newexe ${FILESDIR}/xsp.initd xsp newexe ${FILESDIR}/mod-mono-server.initd insinto /etc/conf.d ; newins ${FILESDIR}/xsp.confd xsp newins ${FILESDIR}/mod-mono-server.confd keepdir /var/run/aspnet dodoc README ChangeLog AUTHORS INSTALL NEWS } pkg_postinst() { chown aspnet:aspnet /var/run/aspnet }