aboutsummaryrefslogtreecommitdiff
path: root/www/mod_mono
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2009-06-22 07:55:50 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2009-06-22 07:55:50 +0000
commitab4b038114273792b64feb02644f8884bce820a5 (patch)
tree52d874d9c7e8fa1e3470ae9ea43417f4226967fe /www/mod_mono
parente220ab97c2f6f7b42bbc67a0aec7f5f847d5a2ee (diff)
downloadports-ab4b038114273792b64feb02644f8884bce820a5.tar.gz
ports-ab4b038114273792b64feb02644f8884bce820a5.zip
Notes
Diffstat (limited to 'www/mod_mono')
-rw-r--r--www/mod_mono/Makefile45
-rw-r--r--www/mod_mono/distinfo3
-rw-r--r--www/mod_mono/files/patch-Makefile.in11
-rw-r--r--www/mod_mono/files/patch-src_Makefile.in13
-rw-r--r--www/mod_mono/files/patch-src_mod__mono.c18
-rw-r--r--www/mod_mono/pkg-descr3
-rw-r--r--www/mod_mono/pkg-plist3
7 files changed, 96 insertions, 0 deletions
diff --git a/www/mod_mono/Makefile b/www/mod_mono/Makefile
new file mode 100644
index 000000000000..4de42990e073
--- /dev/null
+++ b/www/mod_mono/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: mod_mono
+# Date created: 20040828
+# Whom: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
+#
+# $FreeBSD$
+# $Id: Makefile,v 1.39 2007/12/13 19:35:47 killfill Exp $
+#
+
+PORTNAME= mod_mono
+PORTVERSION= 2.4
+CATEGORIES= www
+MASTER_SITES= http://ftp.novell.com/pub/mono/sources/${PORTNAME}/
+
+MAINTAINER= mono@FreeBSD.org
+COMMENT= Apache module for serving ASP.NET applications
+
+LIB_DEPENDS= apr-1:${PORTSDIR}/devel/apr
+BUILD_DEPENDS= mono:${PORTSDIR}/lang/mono \
+ xsp:${PORTSDIR}/www/xsp
+RUN_DEPENDS= mono:${PORTSDIR}/lang/mono \
+ xsp:${PORTSDIR}/www/xsp
+
+USE_APACHE= 2.0+
+USE_BZIP2= yes
+USE_GNOME= gnometarget
+USE_AUTOTOOLS= libtool:15
+CONFIGURE_ARGS= --man=${PREFIX}/man
+
+MAN8= mod_mono.8
+
+.include <bsd.port.pre.mk>
+.if ${APACHE_VERSION} == 13
+MOD_MONOCONFDIR=${APACHEETCDIR}
+.else
+MOD_MONOCONFDIR=${APACHEETCDIR}/Includes
+.endif
+
+PLIST_SUB+= MOD_MONOCONFDIR=${MOD_MONOCONFDIR}
+
+post-patch:
+ @${REINPLACE_CMD} 's|%%MOD_MONOCONFDIR%%|${PREFIX}/${MOD_MONOCONFDIR}|g' \
+ ${WRKSRC}/Makefile.in
+
+.include "${.CURDIR}/../../lang/mono/bsd.mono.mk"
+.include <bsd.port.post.mk>
diff --git a/www/mod_mono/distinfo b/www/mod_mono/distinfo
new file mode 100644
index 000000000000..fe1b1c1c8ebb
--- /dev/null
+++ b/www/mod_mono/distinfo
@@ -0,0 +1,3 @@
+MD5 (mod_mono-2.4.tar.bz2) = 4dc8e93baa22211e858bff84d3ffabd4
+SHA256 (mod_mono-2.4.tar.bz2) = 10c1c8d339bc35d729d257801f6d235a71ffb23989ff8802646416fc102cc991
+SIZE (mod_mono-2.4.tar.bz2) = 268525
diff --git a/www/mod_mono/files/patch-Makefile.in b/www/mod_mono/files/patch-Makefile.in
new file mode 100644
index 000000000000..4c9e390925f7
--- /dev/null
+++ b/www/mod_mono/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Thu Sep 22 14:04:39 2005
++++ Makefile.in Sun Oct 2 20:24:15 2005
+@@ -192,7 +192,7 @@
+ # Current spec file is obsolete
+ # packaging/redhat/mod_mono.spec \
+ # packaging/redhat/mono.conf
+-modmonoconfdir = $(APXS_SYSCONFDIR)
++modmonoconfdir = %%MOD_MONOCONFDIR%%
+ modmonoconf_DATA = mod_mono.conf
+ all: all-recursive
+
diff --git a/www/mod_mono/files/patch-src_Makefile.in b/www/mod_mono/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..2240fc2eca88
--- /dev/null
+++ b/www/mod_mono/files/patch-src_Makefile.in
@@ -0,0 +1,13 @@
+--- src/Makefile.in.orig Thu Sep 22 14:04:38 2005
++++ src/Makefile.in Sat Oct 22 18:28:32 2005
+@@ -468,8 +468,8 @@
+
+ install: $(lib_LTLIBRARIES)
+ $(mkinstalldirs) "$(DESTDIR)$(APXS_LIBEXECDIR)"
+-@APACHE2_TRUE@ $(APXS) -S LIBEXECDIR="$(DESTDIR)$(APXS_LIBEXECDIR)" -i -n mono mod_mono.la
+-@APACHE2_FALSE@ $(APXS) -S LIBEXECDIR="$(DESTDIR)$(APXS_LIBEXECDIR)" -i -n mono .libs/mod_mono.so
++#@APACHE2_TRUE@ $(APXS) -S LIBEXECDIR="$(DESTDIR)$(APXS_LIBEXECDIR)" -i -n mono mod_mono.la
++ $(APXS) -S LIBEXECDIR="$(DESTDIR)$(APXS_LIBEXECDIR)" -i -n mono .libs/mod_mono.so
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/www/mod_mono/files/patch-src_mod__mono.c b/www/mod_mono/files/patch-src_mod__mono.c
new file mode 100644
index 000000000000..8fec14444592
--- /dev/null
+++ b/www/mod_mono/files/patch-src_mod__mono.c
@@ -0,0 +1,18 @@
+
+$FreeBSD$
+
+--- src/mod_mono.c.orig
++++ src/mod_mono.c
+@@ -1765,8 +1765,12 @@
+
+ /* Unblock signals Mono uses: see bug #472732 */
+ sigemptyset (&sigset);
++#if defined SIGPWR
+ sigaddset (&sigset, SIGPWR);
++#endif /* def SIGPWR */
++#if defined SIGXCPU
+ sigaddset (&sigset, SIGXCPU);
++#endif /* def SIGXCPU */
+ sigaddset (&sigset, 33);
+ sigaddset (&sigset, 35);
+ sigprocmask (SIG_UNBLOCK, &sigset, NULL);
diff --git a/www/mod_mono/pkg-descr b/www/mod_mono/pkg-descr
new file mode 100644
index 000000000000..6bb0698c2e55
--- /dev/null
+++ b/www/mod_mono/pkg-descr
@@ -0,0 +1,3 @@
+An Apache module that ties Mono's XSP and Apache together.
+
+WWW: http://www.mono-project.com
diff --git a/www/mod_mono/pkg-plist b/www/mod_mono/pkg-plist
new file mode 100644
index 000000000000..dd256790f88f
--- /dev/null
+++ b/www/mod_mono/pkg-plist
@@ -0,0 +1,3 @@
+@comment $FreeBSD$
+%%MOD_MONOCONFDIR%%/mod_mono.conf
+%%APACHEMODDIR%%/mod_mono.so