apache2 httpd 2.4.2 - mod_mono @2.10

Bjarne D Mathiesen macintosh at mathiesen.info
Sat Apr 28 08:32:52 PDT 2012


fails to compile

      port install mod_mono @2.10
--->  Computing dependencies for mod_mono
--->  Dependencies to be installed: mono libgdiplus libexif xsp

the dependencies install without any problems

revbump mod_ mono  1.1.16.1 -> 2.10
revbump mono       2.10.6   -> 2.10.8

fix issues in mod_mono

unixd_config
    This has been renamed to ap_unixd_config.

conn_rec->remote_ip and conn_rec->remote_addr
    These fields have been renamed in order to distinguish between the
client IP address of the connection and the useragent IP address of the
request (potentially overridden by a load balancer or proxy). References
to either of these fields must be updated with one of the following
options, as appropriate for the module:
        When you require the IP address of the user agent, which might
be connected directly to the server, or might optionally be separated
from the server by a transparent load balancer or proxy, use
request_rec->useragent_ip and request_rec->useragent_addr.
        When you require the IP address of the client that is connected
directly to the server, which might be the useragent or might be the
load balancer or proxy itself, use conn_rec->client_ip and
conn_rec->client_addr.

-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3

-------------- next part --------------
--- /macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/www/mod_mono/Portfile	2012-04-28 17:25:24.000000000 +0200
+++ portfiles/www/mod_mono/Portfile	2012-04-28 17:25:19.000000000 +0200
@@ -2,31 +2,43 @@
 
 PortSystem 1.0
 
-name		mod_mono
-version		1.1.16.1
-categories	www mono
-platforms	darwin
-maintainers	nomaintainer
-description	an Apache plug-in for hosting the Mono System.Web classes
+name                mod_mono
+version             2.10
+categories          www mono
+platforms           darwin
+maintainers         nomaintainer
+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	http://www.go-mono.com/sources/mod_mono/
-checksums	md5 7f50123fdb8fb669bdc42d1b3c498190
-
-depends_build	port:pkgconfig
-
-depends_lib	port:mono port:apache2
-
-depends_run	port:xsp
+homepage            http://www.mono-project.com/Mod_mono
+master_sites        http://download.mono-project.com/sources/mod_mono/
+use_bzip2           yes
+
+checksums           rmd160  6f2b6df968a529af116eff67b4c98a7f5c82a899 \
+                    sha256  a8ba3a8785f2deb13b4c0b1dedb4aa9405077309c9c42d99694cedfcc0f9e3f7
+
+depends_build       port:pkgconfig
+depends_lib         port:mono   port:apache2
+depends_run         port:xsp
 
 # mono is not universal
 universal_variant   no
 
-configure.args	--with-mono-prefix=${prefix} \
-		--with-apxs=${prefix}/apache2/bin/apxs \
-		--with-apr-config=${prefix}/bin/apr-1-config \
-		--mandir=${prefix}/share/man
+configure.args      --with-mono-prefix=${prefix} \
+                    --with-apxs=${prefix}/apache2/bin/apxs \
+                    --with-apr-config=${prefix}/bin/apr-1-config \
+                    --mandir=${prefix}/share/man
+
+post-patch {
+    reinplace   "s|->remote_ip|->client_ip|g" \
+                ${worksrcpath}/src/mod_mono.c
+    reinplace   "s|->remote_addr|->client_addr|g" \
+                ${worksrcpath}/src/mod_mono.c
+    reinplace   "s|unixd_config|ap_unixd_config|g" \
+                ${worksrcpath}/src/mod_mono.c
+}
+
+destroot.violate_mtree	yes
 
 post-install {
 	ui_msg ""
@@ -50,4 +62,4 @@
 
 livecheck.type          regex
 livecheck.url           [lindex ${master_sites} 0]
-livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
+livecheck.regex         ${name}-(\[0-9.\]+)\\.bz2
-------------- next part --------------
--- /macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/mono/Portfile	2012-04-28 16:17:36.000000000 +0200
+++ portfiles/devel/mono/Portfile	2012-04-28 16:16:23.000000000 +0200
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name             mono
-version          2.10.6
+version          2.10.8
 categories       devel lang mono
 platforms        darwin
 license          {GPL-2 LGPL-2 MIT}
@@ -18,8 +18,8 @@
 use_bzip2        yes
 universal_variant no
 
-checksums           sha1    c17d211475a321680b4772dd3b8cadde7eaa60aa \
-                    rmd160  ca4037531046f60348350e7ab5a760ddbc152bc4
+checksums           sha1    eb10aacc2648102eacf8c1f2da8c989be90be2aa \
+                    rmd160  ca2ac8053119f3322d06112c2533abece8dab69b
 
 depends_build    port:pkgconfig port:gawk
 depends_lib      port:gettext path:lib/pkgconfig/glib-2.0.pc:glib2 \


More information about the macports-dev mailing list