summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner>2009-10-27 14:37:13 +0000
committerdrochner <drochner>2009-10-27 14:37:13 +0000
commit689fd953bd6221354f81fcf7b65aa2a135f35da4 (patch)
treef760716558914f756298c5ef2f7ed3fb5a3f0d64
parent9660b1a92a95e0a692b746a67066318450113a5b (diff)
downloadpkgsrc-689fd953bd6221354f81fcf7b65aa2a135f35da4.tar.gz
add a makefile snippet to build a wrapper for "xsltproc" which
makes sure the tool is called with the "--nonet" option, keeping it from using http or ftp to resolve references in xml files (unfortunately it doesn't work as intended yet)
-rw-r--r--textproc/libxslt/xsltproc-nonet.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/textproc/libxslt/xsltproc-nonet.mk b/textproc/libxslt/xsltproc-nonet.mk
new file mode 100644
index 00000000000..ff829585dbc
--- /dev/null
+++ b/textproc/libxslt/xsltproc-nonet.mk
@@ -0,0 +1,9 @@
+# $NetBSD: xsltproc-nonet.mk,v 1.1 2009/10/27 14:37:13 drochner Exp $
+
+pre-configure: create-xsltproc-wrapper
+
+create-xsltproc-wrapper:
+ ${PRINTF} "#! ${SH}\\n\
+ ${LOCALBASE}/bin/xsltproc --nonet \$$*\\n\
+ " > ${BUILDLINK_DIR}/bin/xsltproc
+ ${CHMOD} +x ${BUILDLINK_DIR}/bin/xsltproc