mod_mono is an Apache module for the XSP server. This ebuild currently only works with Apache 2. I suggest dev-dotnet/mod_mono. Also, this ebuild depends on dev-dotnet/xsp submitted earlier. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 25657 [details] mod_mono-0.7.ebuild
Created attachment 25658 [details] 70_mod_mono.conf
Created attachment 25659 [details] mod-mono-server.init
Created attachment 25660 [details] mod-mono-server.conf
Created attachment 26106 [details] mod-mono-server.init Runs as unprivileged user aspnet (created by xsp)
Created attachment 29786 [details] 70_mod_mono.conf Updating for mod_mono-0.8
Created attachment 29787 [details] mod_mono-0.8.ebuild new version
The init.d and conf.d script are unnecessary in 0.8 as mod_mono can spawn its own mod_mono_server and all of the configuration is in the mod_mono.conf file now...
While installing it on my main box, I found a problem I can't figure out how to fix within the ebuild/70_mod_mono.conf file: The permissions of /tmp/mod_mono_server socket needs to be chmodded to 0666 after Apache starts, the default permissions are not enough for it to work. Also, 70_mod_mono.conf needs a little bit more work to fix the MIME type associations with mono as it has apparently changed again o_O I'll work on fixing that tomorrow...
Created attachment 29936 [details] mod_mono-0.8.ebuild Adds man page
Great! Got mod_mono-0.8 to work with xsp-0.12 (your ebuild). Fixed two things: 1. As you said, mod_mono depends on xsp. You should add the line >=dev-dotnet/xsp-0.11 to the DEPEND section in mod_mono-0.8 ebuild! 2. In 70_mod_mono.conf, there has to be a new line above the <Directory> line: # SetHandler Mono The examples (and every other mono script) won't work otherwise! This will have to be set for every directory which should be served by mod_mono. Overall, thanks for your work! That said, I didn't get Web Services to work until now ;( Same error every time: System.Configuration.ConfigurationException: Cannot load type 'DumpExtension, extensions' (node name: add) () Removing DumpExtension from the file web.config doesn't help. This extension is really needed, I suppose. Martin
Created attachment 30651 [details] mod_mono-0.8.ebuild fixed xsp dependency!
Created attachment 30652 [details] 70_mod_mono.conf fixed examples configuration (added Mono as handler)
Created attachment 30979 [details] 70_mod_mono.conf Added AddHandler, removed SetHandler... now .aspx .ashx .asmx .ascx .asax .config .ascx are all associated with mod_mono...
Had a play with this over the weekednd - and works fine for me as long as I stick with mono 0.31 and don't upgrade to 0.91.
I just had a look at the most recent ebuild and I dont think the dependsis right. Since there is no xsp. Could you please double check your depends then I would have no problem adding this to cvs. thanks chuck
Created attachment 31132 [details] mod_mono-0.9.ebuild This is the new version! Dependencies should be right. mod_mono-0.9 belongs to xsp-0.13, which belongs to mono-0.91 (everything from beta1).
Created attachment 31447 [details] mod_mono-0.9.ebuild It doesn't USE apache2 (yet anyways), it depends on it... I removed it from IUSE... Chuck: XSP's ebuild needs to be added before this one, its in bug #41652
Added thanks for the ebuild.