summaryrefslogtreecommitdiff
path: root/lang/mono/bsd.mono.mk
diff options
context:
space:
mode:
authorTom McLaughlin <tmclaugh@FreeBSD.org>2006-10-07 17:39:36 +0000
committerTom McLaughlin <tmclaugh@FreeBSD.org>2006-10-07 17:39:36 +0000
commitda532990da38c09b7f01d548b4a862702569dabf (patch)
treee274b618cba3a08240a64355f30862239fdeac80 /lang/mono/bsd.mono.mk
parent- change MASTER_SITES (diff)
Update to 1.1.13.8.1
- fix CVE-2006-5072: Sebastian Krahmer of the SuSE security team discovered that the System.CodeDom.Compiler classes used temporary files in an insecure way. This could allow a symbolic link attack to create or overwrite arbitrary files with the privileges of the user invoking the program. Under some circumstances, a local attacker could also exploit this to inject arbitrary code into running Mono processes. vuxml id: 5a39a22e-5478-11db-8f1a-000a48049292 - Add USE_NANT to bsd.mono.mk for those ports I have hanging around which require NANT to build. Release notes: - 1.1.13.8.1: http://go-mono.com/archive/1.1.13.8.1/ - 1.1.13.8: http://go-mono.com/archive/1.1.13.8/ Project by: BSD# http://www.mono-project.com/Mono:FreeBSD
Notes
Notes: svn path=/head/; revision=174817
Diffstat (limited to 'lang/mono/bsd.mono.mk')
-rw-r--r--lang/mono/bsd.mono.mk40
1 files changed, 38 insertions, 2 deletions
diff --git a/lang/mono/bsd.mono.mk b/lang/mono/bsd.mono.mk
index 5c0f24f58281..7b20be853f3c 100644
--- a/lang/mono/bsd.mono.mk
+++ b/lang/mono/bsd.mono.mk
@@ -6,16 +6,20 @@
# the FreeBSD ports system.
#
# $FreeBSD$
-# $Id: bsd.mono.mk,v 1.12 2006/04/05 02:38:44 tmclau02 Exp $
+# $Id: bsd.mono.mk,v 1.15 2006/07/05 04:22:22 tmclau02 Exp $
#
+# USE_NANT - If set, the port uses nant.
+# USE_NANT - If set "contrib", the port uses nantcontrib.
+# NANT - Set to path of Nant.
+
# Set the location of the .wapi directory so we write to a location we
# can always assume to be writable.
MONO_SHARED_DIR=${WRKDIR}
CONFIGURE_ENV+=MONO_SHARED_DIR="${MONO_SHARED_DIR}"
MAKE_ENV+=MONO_SHARED_DIR="${MONO_SHARED_DIR}"
-# Set the location that webaps served bp XSP should use.
+# Set the location that webaps served by XSP should use.
XSP_DOCROOT=${PREFIX}/www/xsp
# Clean up the semaphore produced by the .wapi
@@ -24,3 +28,35 @@ pre-clean: mono-semdel
mono-semdel:
@${SETENV} G_DEBUG="" MONO_SHARED_DIR="${MONO_SHARED_DIR}" ${LOCALBASE}/bin/mono-semdel 2> /dev/null || true
+
+
+# Dependencies
+
+.if defined(USE_NANT)
+BUILD_DEPENDS+= nant:${PORTSDIR}/devel/nant
+.if ${USE_NANT}=="contrib"
+BUILD_DEPENDS+= ${LOCALBASE}/share/NAnt/bin/NAnt.Contrib.Tests.dll:${PORTSDIR}/devel/nantcontrib
+.endif
+.endif
+
+# Miscellaneous overridable commands:
+
+NANT?= nant
+NANT_INSTALL_TARGET?= install
+
+# Build
+.if defined(USE_NANT)
+.if !target(do-build)
+do-build:
+ @(cd ${BUILD_WRKSRC}; ${SETENV} MONO_SHARED_DIR="${MONO_SHARED_DIR}" ${NANT} ${NANT_FLAGS})
+.endif
+.endif
+
+
+# Install
+.if defined(USE_NANT)
+.if !target(do-install)
+do-install:
+ @(cd ${INSTALL_WRKSRC}; ${SETENV} MONO_SHARED_DIR="${MONO_SHARED_DIR}" ${NANT} ${NANT_FLAGS} -D:prefix="${PREFIX}" ${NANT_INSTALL_TARGET})
+.endif
+.endif