# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description an Apache plug-in for hosting the Mono System.Web classes
long_description An Apache web server plug-in that hosts the Mono System.Web classes \
for running what is commonly known as ASP.NET
homepage http://www.mono-project.com/Mod_mono
master_sites https://download.mono-project.com/sources/mod_mono/
checksums rmd160 c8f26e196fc796c8ab07fdcb5400bf67ba653ad4 \
sha256 bb18dd59efe56c719df7c89b353327dd30dddb87f395d60b188f92b911c9f04b
depends_build port:gsed \
set apxs ${prefix}/bin/apxs
variant apache22 description "use apache22 instead of apache2" {
# remove after 2020-05-05
ui_error "Please do not install this variant since Apache 2.2 is obsolete."
configure.args --with-mono-prefix=${prefix} \
--with-apr-config=${prefix}/bin/apr-1-config \
--mandir=${prefix}/share/man
ui_msg "To finish the configuration of this Apache module, you must add"
ui_msg "the following (modulo site variations) to your httpd.conf file:"
ui_msg "AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx"
ui_msg "LoadModule mono_module libexec/httpd/mod_mono.so"
ui_msg "MonoUnixSocket /tmp/mod_mono_server"
ui_msg {Alias /mono "/usr/share/doc/xsp/test"}
ui_msg "Then do the following:"
ui_msg "cd ${prefix}/share/doc/xsp/test"
ui_msg "mono ${prefix}/bin/mod-mono-server.exe --root . --applications /mono:."
ui_msg "Finally, restart apache (if running) and point a browser at:"
ui_msg "http://127.0.0.1/mono/index.aspx to test ASP page-serving ability"